PDA

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


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

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

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

Jhonnyf
10-09-2008, 12:04 AM
thank you very much!