![]() |
userinfo array is empty?
Hello, I'm trying to write a plugin using the showthread_start-hook.
I want to get the current logged in user userid. I have tried alot of things. $vbulletin->userinfo['userid']; $vbulletin->userinfo[userid]; $bbuserinfo[userid]; But they are always empty, evfen if I'm logged in. I also tried showthread_complete but userinfo is still emtpy. I also tried to print the whole useinfo-array but that is also empty. Any ideas? |
$vbulletin->userinfo['userid'] should be valid in the showthread_start plugin. Perhaps if you post your code we can see what is wrong.
|
I had forgotten to set vbulletin as global in my function.
Thanks! |
All times are GMT. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|