![]() |
use userid / username in own plugin (hook: login redirect)
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... ;) |
What did you try to fetch the userid?
|
i tryed all the stuff ive seen on templates including coding a "global $vbphrase,$vbulletin;", none of the usually taken things worked.
|
"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. |
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 ;) |
Try $userinfo[userid]
|
done - didnt work :(
|
Just tested and $vbulletin->userinfo['userid'] does work.
|
i m sure, i tryed that before. :confused: it works now... thx ;):up:
|
All times are GMT. The time now is 07:19 PM. |
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:
|