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

Add fields manually | Forum

anthony
anthony Jul 28 '18
New to Oxwall.
How do I add profile field results manually? For example, if I wanted to put the user's age in a certain spot.

thanks




dave Leader
dave Jul 28 '18
Hi anthony,  


Welcome to Oxwall.


Go to admin->users->profile questions


you can drag and drop questions where you would like them to be, also make new sections and lots of other options.

anthony
anthony Jul 28 '18
Thanks for answering.

That's not what I'm looking to do.
Basically I want to hardcode the member's age after the name in the user list like (attached) I know the page to edit but not sure what code to use (PHP novice)

In a previous script I could just use something like
<?=$user['data_birthday_age']?>

and call
<? session::toString(); ?> to see other values
Attachments:
  Capturesss.JPG (9Kb)
dave Leader
dave Jul 28 '18
Your talking about a global variable, these are the only global variables i know of.  


https://developers.oxwall.com/forum/topic/35576
As suggested in this post you could try using get_defined_vars() to see what is loaded but it will take some searching. 



You can check out 


php file:


ow_system_plugins/base/controllers/user_list.php 


and  html file


ow_system_plugins/base/views/controllers/user_list_index.html 


Check this out... 


Go to Admin -> Profile Questions -> For birthday, you edit it and go to 'Answer Type' -> choose 'Date (Age) -> then show age on your users profiles.


I know its not on the members list but at least its somewhere. 






The Forum post is edited by dave Jul 28 '18
dave Leader
dave Jul 28 '18
So now we have to find the age code and plug it into that file. 


Took awhile, sorry but i am not feeling too good today.   But i did find in 


ow_system_plugins/base/bol/user_service.php 


the function starts on line 1647


and the age code is on line 1805 


im not sure about its full process but it could be what we are looking for.   


remember that any changes you make will need to be redone after a update





The Forum post is edited by dave Jul 28 '18