Register Members List Search Today's Posts Mark Forums Read

Reply
 
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)
Mod Version: 1.00, by Erwin (Coder) Erwin is offline
Developer Last Online: Feb 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.3.x Rating: (1 vote - 5.00 average) Installs: 64
Released: 08 Aug 2002 Last Update: Never Downloads: 12
Supported  

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 08 Aug 2002, 02:18
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Also, this doesn't add any additional queries to your forums.
Reply With Quote
  #3  
Old 08 Aug 2002, 03:00
Deska's Avatar
Deska Deska is offline
 
Join Date: Aug 2002
Nice hack man, thank's...
__________________
Regards,

Deska.
Reply With Quote
  #4  
Old 08 Aug 2002, 04:20
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Thank you Erwin!!

useful hack and very easy installation

cu
Schorsch
Reply With Quote
  #5  
Old 08 Aug 2002, 04:21
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
I updated the code - there was a bug in the original installation file - please clear your cache and view the new code now.
Reply With Quote
  #6  
Old 08 Aug 2002, 06:23
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Real name: A.K.
Awesome hack. Installed it, works like a charm
Reply With Quote
  #7  
Old 08 Aug 2002, 07:45
Floris Floris is offline
 
Join Date: Jan 2002
Installed, works very nice. So easy to add. And I am happy it doesn't add another query.
__________________
My community; http://wetalknation.net
Reply With Quote
  #8  
Old 08 Aug 2002, 08:19
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Real name: Marcus
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
Reply With Quote
  #9  
Old 08 Aug 2002, 08:34
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
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.
Reply With Quote
  #10  
Old 08 Aug 2002, 09:22
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Real name: A.K.
Originally posted by [D]Vincent
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.
Good point, but in that case, couldn't you say the same thing about a users post count, location, etc?
Reply With Quote
  #11  
Old 08 Aug 2002, 14:39
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
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.
Reply With Quote
  #12  
Old 08 Aug 2002, 15:00
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
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.

Last edited by Erwin : 08 Aug 2002 at 21:04.
Reply With Quote
  #13  
Old 08 Aug 2002, 15:04
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
can you tell us which dates causes this errors?
Reply With Quote
  #14  
Old 08 Aug 2002, 15:09
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
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.
Reply With Quote
  #15  
Old 08 Aug 2002, 19:21
Sketch Sketch is offline
 
Join Date: Apr 2002
I can see the older folks on my board going crazy on me if I installed this. It's a great idea though.

Aaron
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 21:54.

Layout Options | Width: Wide Color: