The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
||||
|
||||
![]()
$vbulletin->userinfo['userid'] should be valid in the showthread_start plugin. Perhaps if you post your code we can see what is wrong.
|
#3
|
|||
|
|||
![]()
I had forgotten to set vbulletin as global in my function.
Thanks! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|