The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Member's Age in Postbit & Getinfo Profile (automatically calculated from birthday) Details »» | |||||||||||||||||||||||||||
Member's Age in Postbit & Getinfo Profile (automatically calculated from birthday)
Developer Last Online: May 2013
Member's Age in Postbit & Getinfo Profile - by Dr. Erwin Loh
-------------------------------------------------------------------------- I requested this a while back. Since no one has released a hack like this, I worked out how to do it. NOTE: This hack automatically shows the age of the person calculated from the birthday entered (it's not a separate input). If there is no birthdate or birthyear, the age doesn't show up automatically. 1) Postbit hack ------------------- This hack basically places the member's age underneath his join date (or wherever you want) in the postbit, like this: Registered: July 2000 Age: 18 Location: USA Posts: 102 If the member has not entered his birth-year, then the age will NOT show up at all, like this: Registered: July 2000 Location: USA Posts: 102 This hack requires 1 file edit (functions.php), and 1 template edit (postbit). 2) Getinfo Profile hack ---------------------------- This adds the member's age in their profile. I've added this to the installation text file. It's a matter of editing members.php and the getinfo template. Installation text file here: Show Your Support
|
Comments |
#2
|
||||
|
||||
Also, this doesn't add any additional queries to your forums.
|
#3
|
||||
|
||||
Nice hack man, thank's...
|
#4
|
||||
|
||||
Thank you Erwin!!
useful hack and very easy installation cu Schorsch |
#5
|
||||
|
||||
I updated the code - there was a bug in the original installation file - please clear your cache and view the new code now.
|
#6
|
||||
|
||||
Awesome hack. Installed it, works like a charm
|
#7
|
|||
|
|||
Installed, works very nice. So easy to add. And I am happy it doesn't add another query.
|
#8
|
||||
|
||||
Awesome hack man. *installed*
|
#9
|
||||
|
||||
I wouldn't say it's awesome, I don't see what's so great about displaying the user's age, of course I'm admin of a FF site so that wouldn't interest me. Nice job though.
|
#10
|
||||
|
||||
Quote:
|
#11
|
||||
|
||||
Okay, I've updated the hack again, this time for the LAST time. I had to modify the hack because certain members had their ages off by 1 year.
Thanks to Boofo, who PMed me with a suggestion - I have incorporated his suggestion into my hack, and this has fixed up the age problem for certain members. The hack should be working 100% now. To upgrade, just download the text installation file, and replace the code in the functions.php with the new code. |
#12
|
||||
|
||||
I had to fix 2 small bugs to do with birthdates with my update - The bug concerns members' birthdays which fall before 1970. I was wondering why there was a 54 year old on my site who insisted he was 53. According to Boofo, someone posted a fix on vb.com, and he PMed it to me. I've fixed this.
|
#13
|
||||
|
||||
can you tell us which dates causes this errors?
|
#14
|
||||
|
||||
Quote:
Anyway, the latest code in my hack works with no problems at all - whatever it is, the new code fixed it. So just use the latest installation text file, and there should be no more problems. |
#15
|
|||
|
|||
I can see the older folks on my board going crazy on me if I installed this. It's a great idea though.
Aaron |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|