![]() |
|
|
Mod Options |
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: Feb 2013
This modification is in the archives.
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: Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Also, this doesn't add any additional queries to your forums.
![]() No members have liked this post.
|
|
#3
|
||||
|
||||
|
Nice hack man, thank's...
__________________
Regards, Deska. No members have liked this post.
|
|
#4
|
||||
|
||||
|
Thank you Erwin!!
useful hack and very easy installation ![]() cu Schorsch No members have liked this post.
|
|
#5
|
||||
|
||||
|
I updated the code - there was a bug in the original installation file - please clear your cache and view the new code now.
![]() No members have liked this post.
|
|
#6
|
||||
|
||||
|
Awesome hack. Installed it, works like a charm
![]() No members have liked this post.
|
|
#7
|
|||
|
|||
|
Installed, works very nice. So easy to add. And I am happy it doesn't add another query.
__________________
My community; http://wetalknation.net No members have liked this post.
|
|
#8
|
||||
|
||||
|
Awesome hack man. *installed*
__________________
6 bored kids = melody-aggression-emotion-energy-intelligence Lostprophets:bassdrumsguitarsvocalskeysturntablesloops such a shame, my defense have become my own restrictions Ian Watkins, Jamie Oliver, Lee Gaze, Mike Lewis, Stu Richardson, and Mike Chiplin -Lostprophets No members have liked this post.
|
|
#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.
No members have liked this post.
|
|
#10
|
||||
|
||||
![]() No members have liked this post.
|
|
#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. No members have liked this post.
|
|
#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.No members have liked this post.
Last edited by Erwin : 08 Aug 2002 at 21:04. |
|
#13
|
||||
|
||||
|
can you tell us which dates causes this errors?
__________________
Regards Birdie501 --------------------------------------- My hacks: 1) MySQL Database Backup/Restore Hack 2) Add on for Xmenu Hack (target) 3) Forumhomelinks Mini-Hack 1.0 4) Hide Post Delete Option Hack Ver. 1.0 5) Show userage in getinfo Hack Ver. 1.0 6) Check user password hack Ver. 1.0 No members have liked this post.
|
|
#14
|
||||
|
||||
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. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 21:54.






It's a great idea though.
