That code only works in a template. This is raw php code.
$vbulletin->userinfo['userid'] is the correct variable to use... why it's not working is the issue... probably a cookie thing, the user is being logged out/has no session on the custom page.
That code only works in a template. This is raw php code.
$vbulletin->userinfo['userid'] is the correct variable to use... why it's not working is the issue... probably a cookie thing, the user is being logged out/has no session on the custom page.
Did you declare $vulletin to be global?
And the code posted by socialteenz
HTML Code:
{vb:raw userinfo.fieldx}
pulls the info from a user profile field for a template lol