The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Username in a cookie
Inspecting my cookies I see that the userid is stored, but I want the username so that I can have "Welcome back <username>" on my html pages without having to query the database.
I tried putting a plugin together on login_verify_success to do vbsetcookie('username',$vbulletin->userinfo->['username'],true, true,true) but that didn't work. I also tried just $userinfo->['username'] without success. I'm sure that the variable is around somewhere, but I can't figure out the name of it. |
#2
|
||||
|
||||
$vbulletin->userinfo['username'] is the correct format.
|
#3
|
|||
|
|||
Thanks. Apparently the third parameter was the problem for me. When I set it to false, the cookie showed up properly.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|