PDA

View Full Version : Obtain User Account ID


drewbe121212
01-18-2006, 01:23 PM
How do I obtain the Vbulletin User Account ID on a VBAdvanced Custom PHP page?

I tried just finding the variables $_GLOBAL, $_SESSION, $bbuserinfo, $post etc. none of which seem to be populated. What needs to be done to retrieve the account ID?

I also tried including global.php (a trick for non-vbulletin pages) which just kind of made everything a mess.

If anyone knows how to retrieve the vbulletin account id on a custom vbadvanced php page, the help would be appreciated!

Thanks!

drewbe121212
01-18-2006, 02:09 PM
nevermind...

$vbulletin->userinfo['userid'] is the array I was looking for :P