The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
just need a code to get age from userid
hi
I have a custom template im working on for a page for my VB, and in there there is going to be profiles i am adding manually of some forum members. i came across to the age part, and just cant add it manually or else il have to be changeing peoples age every month. Is there a code i can just wack in there so it pulls a specific 'userid' age from the database or something? Cheers. |
#2
|
||||
|
||||
VB can display a persons age in thier postbit and I believe Kirby released a hack to show a users age in their profile. I would start there.
|
#3
|
|||
|
|||
Quote:
yes but i am asking for a code to dig up the age from a blank template. not from there postbit template or profile. i already tried looking up those templates and no success. its pretty tricky. anyone can help? |
#4
|
||||
|
||||
Userage in Profile was a Hack by boofo, but it is now a default feature
The Code is pretty simple: PHP Code:
|
#5
|
|||
|
|||
ok so how do i use that code? Should I just paste it into my template im working on, or do i need to specify the d.o.b or userid to look up to get results from?
|
#6
|
||||
|
||||
That code would go in the php file that you are using for your template.
|
#7
|
|||
|
|||
ah ye, sort of get it now. but then what do i write in the template to pull out the age?
|
#8
|
||||
|
||||
$userinfo[age]
|
#9
|
|||
|
|||
But i am adding the profiles manually, its not database driven.. so wont i need to specify the userinfo manually too, like $userid=['23'] for instance?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|