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 |
#32
|
||||
|
||||
Quote:
|
#33
|
|||
|
|||
thanks erwin, for the fix works now
|
#34
|
||||
|
||||
You're welcome.
|
#35
|
|||
|
|||
Great hack, was looking for something like that. Do you know how I can show this on a members page that's outside of vB?
|
#36
|
||||
|
||||
Quote:
|
#37
|
|||
|
|||
Great work! (INSTALLED)
Thanks |
#38
|
|||
|
|||
Just noticed that after installing this I had to move the admin/functions.php to a different area within as i lost the profile option in my postbit. No bigee, works great! Thanks
|
#39
|
||||
|
||||
Quote:
Bottom line - this hack works fine with no problems - the problem you had (whatever it is) is not because of this hack. |
#40
|
|||
|
|||
Well this was the first hack I installed on a clean 2.2.7 board and when modifying the admin/functions.php I lost the profile button on my postbit. I retried it a couple times and same thing.
So I bumped the area to be pasted a couple lines up and all is working great now. Just so you know my postbit template is highly modified just for looks. I was just pointing this out so that if others are having any problems in 2.2.7 to try what i did. Great hack though, comes in handy. |
#41
|
|||
|
|||
um... i know this is a simple hack, but i'm getting this error...
Quote:
Quote:
Quote:
|
#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... ???
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|