PDA

View Full Version : vB3 Age in profile


Boofo
02-02-2004, 10:00 PM
vB3 Age in profile
Version 1.0
(By Boofo)

What does this hack do?
It adds the member's age to their profile, right under their birthday, in the "Additional Information" box. If they do not enter their birthday or do not enter a year for their birthday, the age will not show up. It will also follow the setting for the "Enable User Age" option in the "Thread Display Options (showthread)" settings in the Admin CP.

Version 1.0 --Initial release

Installation overview:
Files to edit: (1)
--member.php
Templates to edit: (1)
--memberinfo

If you find this hack useful,. please click the install button. ;)

AutomatikStudio
02-03-2004, 02:50 PM
Hmmm...I'm not getting anything. I've uploaded the modified member.php as well as the MEMBERINFO template and nothing is showing up in anybody's profile.

Boofo
02-03-2004, 02:51 PM
Do you have the "Enable User Age" option in the "Thread Display Options (showthread)" settings in the Admin CP turned on? ;)

gmarik
02-03-2004, 04:16 PM
This is a mini hack, actually ;)

Boofo
02-03-2004, 04:18 PM
It's a Profile Enhancement hack. Call it what you like but it is where it is supposed to be. ;)

AutomatikStudio
02-03-2004, 04:21 PM
Do you have the "Enable User Age" option in the "Thread Display Options (showthread)" settings in the Admin CP turned on? ;)Thanks Boofo. That fixed it...silly me.:ninja:

Boofo
02-03-2004, 04:32 PM
Now aren't you glad you installed this hack? You might not have found that setting if you hadn't. ;) You're very welcome, sir. ;)

MGM
02-03-2004, 10:48 PM
good job Boofo, I'll install this one ;)

* MGM clicks Install

MGM out

Boofo
02-03-2004, 10:50 PM
Thank you, sir. I hope you enjoy it. ;)

FleaBag
02-05-2004, 01:40 PM
Sweet. Now to get it working in the memberlist too. :D

Boofo
02-05-2004, 01:43 PM
It's already there. Just turn it on in the Admin CP settings.

Don't forget to click install. ;)

Kalakov
02-08-2004, 09:32 AM
nice h4x0r3

/me clicks install

FleaBag
02-23-2004, 05:36 AM
Thanks for this - installed in under a minute.

Boofo
02-23-2004, 05:56 AM
Thank you, sir. I have some more surprises in store. ;)

Alzeimer
03-06-2004, 04:17 PM
Installed and working, I can translate to spanish if you wish :cool:

Wifey
03-15-2004, 07:35 PM
Hrm. I have installed it and I'm not seeing the field. I've also added the enabled the field in the Threaded user display. Do I need to make another profile field in order for this to work?

Boofo
03-15-2004, 07:46 PM
You need to make sure that ytou have the Age in showthread turned on in the Admin CP. It is under Enable User Age in the Thread Display Options (showthread) in your vBulletin settings. ;)

Wifey
03-15-2004, 08:06 PM
Yep, I had that checked to yes.

Okay, weird. It shows up in the actual profile in the thread - is that the ONLY place it's supposed to show up or is it supposed to show in the actual profile when you click to view a members profile?

Boofo
03-15-2004, 08:15 PM
Yes, just like in the screenshot in the first post. ;)

Wifey
03-15-2004, 11:25 PM
Okay, I think I was just confused because my board doesn't look similar to yours. I'm a newbie to all this, can you tell :p

Thanks, it's a great hack and working perfectly!

Boofo
03-16-2004, 02:44 AM
Thank you. ;)

I love your vB message that says you're not open yet. ;) And your testing skin looks good, too (except the header needs to be centered on that one). ;)

Bro_Joey_Gowdy
04-08-2004, 02:28 PM
/me clicks install

FleaBag
10-11-2004, 10:19 PM
3.03 doesn't seem to like it. :(

Boofo
10-11-2004, 10:22 PM
3.03 doesn't seem to like it. :(
Then you must have missed something. ;)

FleaBag
10-11-2004, 10:24 PM
Hmm I'm not sure there's anything I could miss heh. I'll take another look.

EDIT: Have done it 3 times, still shows nothing on the profile.

AnhTuanCool
10-12-2004, 03:23 AM
I think you're missing some queries Boofo. ;)

Boofo
10-12-2004, 03:25 AM
I think you're missing some queries Boofo. ;)
You don't need any queries with this. It uses the same code that vb uses to get the age in the showthread. It works great for me and the others that have installed it. ;)

AnhTuanCool
10-12-2004, 04:02 AM
Your board is 3.0.0 right? However, can you find enableage in install/vbulletin-settings.xml, I couldn't :)

AnhTuanCool
10-12-2004, 04:08 AM
Oh never mind then, you are right Boofo, I've just checked my old version board and I found it, in vb 3.0.0 :)

In 3.0.3 you will need to run some extra queries for enable option though ;)

Boofo
10-12-2004, 04:20 AM
Oh never mind then, you are right Boofo, I've just checked my old version board and I found it, in vb 3.0.0 :)

In 3.0.3 you will need to run some extra queries for enable option though ;)
Why would you need to run some extra queries?

AnhTuanCool
10-12-2004, 04:30 AM
There is no $vboptions['enableage'] in 3.0.3, isn't it?

Boofo
10-12-2004, 06:40 AM
There is no $vboptions['enableage'] in 3.0.3, isn't it?
I'm using 3.0 still. It should be the same thing that is used to show the age in the showthread (postbit).

FleaBag
10-12-2004, 08:14 AM
Darn it. :(

Boofo
10-12-2004, 08:21 AM
Darn it. :(
Does the age show up in the postbit for you? If it does, then let me know what the name of the age option is and I will tell you how to fix this to make it work for you.

nautiqeman
10-14-2004, 12:38 PM
yeah I'm having the same problem -- it works in the threads -- just doesn't show up in the member profile -- I'm also using 3.0.3

FleaBag
10-14-2004, 12:41 PM
It does work in postbit yes, what do you mean by the name of the age option Boofo?

nautiqeman
10-14-2004, 12:47 PM
I'm new to this -- what is postbit -- I just staeted messing around with this yesterday

FleaBag
10-14-2004, 12:49 PM
It's the template that shows the messages left by users, i.e. what you are reading now.

nautiqeman
10-14-2004, 12:51 PM
oh ok -- how can I get the Age to appear in the profile tho -- I'm using 3.0.3 and I don't see anything there -- just the Birthday -- any idea?

nautiqeman
10-14-2004, 01:11 PM
I'm just looking thru the manual and all and I see that $post is used in the hack, well as far as my thinking goes, and again I'm a newbie to this, but when you view the user's profile, there is no $post -- correct???

FleaBag
10-16-2004, 12:59 AM
Been picking my brain and can't come up with anything. :(

AnhTuanCool
10-16-2004, 03:52 AM
Check this out Fleabag ;)

ACP > vBulletin Options > Thread Display Options (showthread) > Posts Elements > Display Age.

FleaBag
10-16-2004, 10:53 AM
I have that enabled mate.

AnhTuanCool
10-16-2004, 12:44 PM
I think this hack is as default in vb3.0.3 already, you can take a look at functions_showthread search for // Generate Age and you will get the exact same code as Boofo posted, just different from the age condition. So I would say in vb 3.0.3 you just need to add some changes to the templates. ;)

FleaBag
12-13-2004, 02:04 PM
Any idea how lol?

Gnappy
12-22-2004, 02:26 PM
dont work for 3.0.3 for me too :(



if someone wanna to make an update of this useful hack.... ^^

laeth
12-25-2004, 03:34 AM
same :) Won't work on v 3.0.3 :(

Pseudomizer
12-31-2004, 02:36 PM
Great work mate. Another useful thing.

Thanks.

Cheers,

T3MEDIA
01-03-2005, 09:49 AM
Oh man... where did Bofo go? So confidant in the begining of this thread.
Not hating just it made me laugh thats all.

Zachariah
01-03-2005, 06:53 PM
Thanks sir.

nicedreams
01-07-2005, 01:11 AM
Doesn't display in the user profile in 3.0.4

Jim

MajorFm.com
01-15-2005, 01:45 PM
I must be going blind but i don't see "Enable User Age" in there... i see "Post Elements" and a option to display the age but then it will display the age in the posts which is what i don't want, i just want it in the profile..

Please advise...

yoyoyoyo
01-16-2005, 12:19 AM
I must be going blind but i don't see "Enable User Age" in there... i see "Post Elements" and a option to display the age but then it will display the age in the posts which is what i don't want, i just want it in the profile..

Please advise...
vBulletin Options -> Thread Display Options (showthread) -> Post Elements (at the bottom of the page)

http://img127.exs.cx/img127/6196/displayage8eh.jpg

MajorFm.com
01-16-2005, 01:20 PM
Ok thank you...

But then it displays it in the postbit aswell...

Join Date: Sep 2004
Location: London, UK
Age: 25
Referrers: 383
Posts: 1,889
Rep Power: 10

I only wanted it in the profile..

Thanks for the help anyway!

eblivion
01-26-2005, 01:50 AM
I have VB 3.0.6 and it's not displaying on the profile page. Ihave the option enabled to display the age, but it still doesn'tdisplay..

All your posts and the installation instructions refers to an optionthat specifically says "Enable User Age" on the Thread Display Options(showthread) settings page. For me it says "Display Age" withinthe Post Elements section of the Thread Display Options (showthread)page.

Is is possible that there may have been a code change made to VB whichcauses it to no longer use all the variables that you use in the code.

I'm able to see the age in the posts.

T3MEDIA
03-01-2005, 04:04 PM
is anyone going to update this?

SS9267547
03-04-2005, 02:25 AM
Today I went to add this into my profile pages however I noticed that the code does not work for vBulletin 3.0.7. and there hasn't been any fixes. So here is a very small fix to the problem for those of you how wish to use this in your newer boards. Thinking it
should also work in older versions up to 3.0.3 however this is not tested. Enjoy. :nervous:

T3MEDIA
03-04-2005, 03:41 AM
Confirming 100% it works. 3.0.3 and 3.0.5

Snake
04-05-2005, 06:24 PM
I just installed it on my forums but it doesn't work on 3.0.7.

Boofo
04-05-2005, 08:59 PM
I just installed it on my forums but it doesn't work on 3.0.7.

If you would look 2 posts up you might find your answer. ;)

Snake
04-06-2005, 06:17 AM
Whoops, my bad. I didn't noticed that. Awesome, it's working now. Thanks Boofo & SS9267547. :D

SS9267547
04-06-2005, 09:16 PM
Your welcome :)

misuse
04-11-2005, 06:33 PM
Works great. Thanks for this.

theinz
05-18-2005, 12:53 PM
I've installed this and I have set "Display Age" to "yes" in "Thread Display Options (showthread)", but I still do not get "Age:" when viewing someone's profile. Please help.