![]() |
|
Thread Tools |
#1
|
||||
|
||||
Code to output users age based on birthdate
This is most likely very simple and easy to do but I can't figure out how to output the users age in vbulletin based on their registration birth date. There does not seem to be a variable built in for it. Any help would be appreciated.
Thanks. --------------- Added 06 Apr 2008 at 23:28 --------------- I think all the code needs to do is subtract the birth date year from the current year to get the age. Could anyone help me? --------------- Added 07 Apr 2008 at 00:44 --------------- Oh, after much hunting and pulling my hair out I figured out how to get the age of the user. Hope other people searching around find this of help. The variable that holds the birthdate is $vbulletin->userinfo['birthday'] To then turn it into an age I used this function.
No members have liked this post.
Last edited by arkkhoax; 07 Apr 2008 at 00:44. Reason: Auto-Merged DoublePost |
#2
|
||||
|
||||
Showing a user's age is already a feature. However, many members disable it for various reasons.
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:01.