![]() |
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. |
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.
|
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? |
Userage in Profile was a Hack by boofo, but it is now a default feature :)
The Code is pretty simple: PHP Code:
|
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?
|
That code would go in the php file that you are using for your template. ;)
|
ah ye, sort of get it now. but then what do i write in the template to pull out the age?
|
$userinfo[age]
;) |
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?
|
All times are GMT. The time now is 12:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|