Version: 1.00, by Erwin
Developer Last Online: May 2013
Version: 2.3.x
Rating:
Released: 08-07-2002
Last Update: Never
Installs: 64
No support by the author.
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).
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.
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.
Originally posted by Birdie501 can you tell us which dates causes this errors?
I suspected it was certain months, but it appeared to be fairly random - I tried to find a pattern with my members, but couldn't. Whatever date they had trouble with, when I applied it to my profile, it still worked for me with my old code, but not for them.
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.
Good point, but in that case, couldn't you say the same thing about a users post count, location, etc?
I don't display location either, I only display Posts, Online Stats, and Member ID, everything else is RPG related. Posts because members like to see how many posts they have and compete with their friends on the board sometimes. Online Stats because I belief people would like to see if someone is online or not. Member ID because I like to be able to see that I was the first person registered XD no not really I just like to see each member's ID.
Nice man, that was the first hack I have ever installed. I got it to work with very little effort. I have been studying the actual PHP that goes in the functions.php but I dont understand it. Im trying to learn but im so confused. Well, thanks for the hack, its awesome