We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How Do You Hide Age On Profile Header? | Forum

Mark
Mark Apr 29 '19
I have had several users ask me to hide their age,

is there a way to make it a check box whether the user wants or does not want their age displayed on their profile header?


for the time being, where can I delete/comment out that line ?

Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19
Is this what you are looking for?


Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19

In the listings, you can avoid being shown by commenting on these lines as shown in the image. It is the file

yoursite.com/ow_system_plugins/base/controllers/user_list.php

Requires that you put the web in DEBUG mode, see a list of members and go back to normal mode.

I do not know if there are more sites where it is shown, tell me and I will find the right file to edit



Mark
Mark Apr 29 '19
Not really, I still want them to put in the birthday, but would like the option to hide the age on their profile page and members list/page... 
Mark
Mark Apr 29 '19

Quote from Patricia Zorrilla Bcn

In the listings, you can avoid being shown by commenting on these lines as shown in the image. It is the file

yoursite.com/ow_system_plugins/base/controllers/user_list.php

Requires that you put the web in DEBUG mode, see a list of members and go back to normal mode.

I do not know if there are more sites where it is shown, tell me and I will find the right file to edit



I think this is what I am looking for... I will try it.... it would be great if there was an checkbox option in the user profile to show/hide age


Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19
To show or hide it at all is this check


But to make it show up for one if and others does not require adding that option to yoursite.com/profile/preference, that's not the privacy plugin https://developers.oxwall.com/store/item/68 ...

There would be what to modify it There are many developers who can do it for you or provide other ideas.


Mark
Mark Apr 29 '19
that didn't work... age still shows up in profile header and user list :/
Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19
This plugin Profile Cover https://developers.oxwall.com/store/item/483 also shows it, I do not know if you use it

it would have to be modified too


Mark
Mark Apr 29 '19

Quote from Patricia Zorrilla Bcn To show or hide it at all is this check


But to make it show up for one if and others does not require adding that option to yoursite.com/profile/preference, that's not the privacy plugin https://developers.oxwall.com/store/item/68 ...

There would be what to modify it There are many developers who can do it for you or provide other ideas.


From what I am seeing and reading, most developers have abandoned the site and plugins... I am willing to pay for someone to do this... any suggestions?  do you know anyone that is actively supporting the base of Oxwall?
Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19

You already followed these steps:

https://wiki.oxwall.com/plugin-tuts:enable-debug

or used the Cache Cleaner plugin https://developers.oxwall.com/store/item/579

If you have not done so, the changes you make in the files. PHP does not work.

Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19
There are two types of developers, amateurs like me who make a plugin from time to time and professionals who live from this, like ArtMedia https://developers.oxwall.com/user/toar which is the best I know and the fastest he will do it.

It is not a complicated modification and you can take advantage of it to show another field of the profile instead of this one.


Mark
Mark Apr 29 '19
I unchecked the "view" in properties.... 

The birthdate is now hidden, but the profile header still shows the age.... 

Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19
Are you using this plugin?
Quote from Patricia Zorrilla Bcn This plugin Profile Cover https://developers.oxwall.com/store/item/483 also shows it, I do not know if you use it

it would have to be modified too



Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19

If you have text edits like this one:

http://www.pspad.com/es/

that allows you to search in all files in a folder tree, search getAge( in all PHP files, but be careful when editing them that can ruin the entire web.

Make a copy of all the PHP you edit just in case it does not work

Mark
Mark Apr 29 '19

Quote from Patricia Zorrilla Bcn Are you using this plugin?
Quote from Patricia Zorrilla Bcn This plugin Profile Cover https://developers.oxwall.com/store/item/483 also shows it, I do not know if you use it

it would have to be modified too



yes - that is where the age is showing up... 
Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19
No problem, we can show other data, such as the town
Patricia Zorrilla Leader
Patricia Zorrilla Apr 29 '19

I already have these modifications done.

You can try it at http: /somoscd.es/testsite

free user: TestUser pwd: TestUser

paid user: TestUserPremium pwd: TestUser

You will need the two accounts to see how it works

You can enter both accounts at the same time using two browsers, for example Chrome and Explorer. If you use the same browser you can only enter one account at a time.

One thing to keep in mind is that Cron in this testsite I have it every 20 minutes, and the Privacy plugin updates the permissions with Cron.

So you do not have to wait, you can trigger the cron manually by clicking on this link. somoscd.es/testsite/ow_cron/run.php

(does not show anything on the screen)

I have left the Admin account with the hidden age "Only Me" too.

Patricia Zorrilla Leader
Patricia Zorrilla May 3 '19

What I wanted is that EVERY user could show this information or not according to "preferences".

I did it in a couple of hours but I should have lost interest ...

I was providing some passwords that were not valid, I was slow in answering the messages and in the end I closed the FTP half transfer files.

It made me lose a full day and at the end of this work nobody takes advantage.


Oxwall Germany Club
Oxwall Germany May 3 '19
Topic was moved from General Chat.
Pages: 1 2 »