PDA

View Full Version : how could i get the userid in gloal_start hook?


albarq
10-18-2005, 03:56 PM
hi,

how could i get the userid in gloal_start hook?

Andreas
10-18-2005, 05:08 PM
$vbulletin->userinfo['userid']

albarq
10-18-2005, 05:16 PM
thank you KirbyDE

but i tired that before :( ...

it just worked on global_complete ...

but on global start nothing happened i used this command to test the value.

echo $vbulletin->userinfo['userid'];

do you have any comment?

Andreas
10-18-2005, 05:26 PM
$vbulletin->userinfo['userid'] is correct for global_start
Make sure you don't have other plugins that might interfere.

global_start output is buffered in $phpinclude_output, eg. it won't be displayed on screen.

albarq
10-18-2005, 06:05 PM
thank you man :D

i havent know that.