The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
hi there,
easy one, i guess... i simply wanna work with the username / userid of the user, which is loggin in at the moment. so i setup a little plugin on the hook login-redirect. works. but i cannot fetch the userid nor the username... any hint for me? thx a lot... ![]() |
#2
|
|||
|
|||
![]()
What did you try to fetch the userid?
|
#3
|
||||
|
||||
![]()
i tryed all the stuff ive seen on templates including coding a "global $vbphrase,$vbulletin;", none of the usually taken things worked.
|
#4
|
|||
|
|||
![]()
"i tried all the stuff" still doesn't bring us any closer to a solution. Please post exactly what you tried.
PS You can not use a "global $vbphrase,$vbulletin;" (or any other PHP) in a template. |
#5
|
||||
|
||||
![]()
i know, i use it in a plug-in
![]() ok, i tryed: a) $userid = intval($userid); b) $this->registry->userinfo[userid] c) $vbulletin->userinfo['userid'] and perhaps some other, i forgot... but the thing is: that didnt work. i search for a way, that works ![]() |
#6
|
|||
|
|||
![]()
Try $userinfo[userid]
|
#7
|
||||
|
||||
![]()
done - didnt work
![]() |
#8
|
|||
|
|||
![]()
Just tested and $vbulletin->userinfo['userid'] does work.
|
#9
|
||||
|
||||
![]()
i m sure, i tryed that before.
![]() ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|