PDA

View Full Version : Whats the variable?


MindTrix
12-13-2003, 06:11 PM
Doh! I'm not running a vB at the moment so i cant find it myself, i wish to know the variable to check someones age.

Basically im trying to check against someones age before allowing them to do something, so i gathered it was something like $bbuserinfo[age] which i am guessing is totaly wrong, can someone point me in the right direction, Cheers!!!

NTLDR
12-13-2003, 06:26 PM
Simply put there isn't one. You have to do the calculation yourself ;)

MindTrix
12-13-2003, 06:34 PM
How can there not be a variable for it if theres the option too put in your age in your user cp etc?

Sorry im not Arguing with you, meerly questioning thats all, Thanks.

NTLDR
12-13-2003, 07:33 PM
How can there not be a variable for it if theres the option too put in your age in your user cp etc?

Sorry im not Arguing with you, meerly questioning thats all, Thanks.

If you mean here or pretty much any other vB then it will be a custom profile field that doesn't come with the default vB install. In which case you access it via $bbuserinfo[fieldX] where X is the number of the field its assigned too.

MindTrix
12-13-2003, 07:39 PM
Doh! How dumb of me, i was thinking of the D.O.B part because it says Birthday.

Cheers NTLDR!!!