Log in

View Full Version : $bbuserinfo[userid] don't works in showthread_complete.. another posibility?


Jhonnyf
10-08-2008, 10:41 PM
I think that exist another objet to get the userid of the current user in that hook...

Adrian Schneider
10-08-2008, 11:02 PM
$bbuserinfo is a reference to $vbulletin->userinfo, and can only be used in templates.

$vbulletin->userinfo['userid'] is the correct variable

Jhonnyf
10-08-2008, 11:04 PM
thank you very much!