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 |
#42
|
||||
|
||||
Well, I can guarantee that this error is not from my hack, but from your mistake, either in applying this hack, or in upgrading to 2.2.7 or some other thing you did. Like you said, this hack is as simple as it gets. You can basically uninstall this hack, and do it again, or try this.
Find this bit of code (basically what you posted in your post at the end): PHP Code:
PHP Code:
|
#43
|
|||
|
|||
thanks erwin... naw, it's closed up... i just posted those three lines to show which line had the error.
i know it's not your hack (it's unbelievably easy), but thought that maybe you (or someone else) might know. thanks anyway. edit... did the file modifications at home and it worked. must have had something to do with the browser based cp that i was using to do the hack at work, cause i did it three times (being very careful) and each time got the same result... ah well, works now... that's all that mattters. thanks. *clicks installed* |
#44
|
|||
|
|||
It worked just fine for me (the users age and all) Except I lost the profile button in my postbit.
For those of you that may run into the same problem here is what I did instead of what was stated to do with the admin/functions.php to solve this issue, I did the following and all is working great on my 2.2.7 Board! ### Open admin/functions.php ### ### Find ### PHP Code:
PHP Code:
|
#45
|
||||
|
||||
I've found a simple script to echo Roman numbers, i'll attach it.
maybe you can let this work with this mod, would be great. |
#46
|
||||
|
||||
Mmm... I'll have a look... but wouldn't it be a hassle for members to have to work out what the Roman numerals stand for? My age is VIIVMXCII... ???
|
#47
|
||||
|
||||
Fun Erwin
|
#48
|
||||
|
||||
I noticed something, with the Age in the profile thingy, it says
Age: Age:16 How can I make it say Age: 16 ? Thankx |
#49
|
||||
|
||||
Oops.
In members.php, find: PHP Code:
PHP Code:
https://vborg.vbsupport.ru/showthrea...103#post290103 The hack for the postbit remains unchanged, and works. |
#50
|
|||
|
|||
Installed and working on 2.2.9! Excellent!
|
#51
|
||||
|
||||
How would I go about adding this to the Admin CP so that when I edit a user's profile I can see their age calculated next to where it shows their birthdate?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|