![]() |
logged in user name in header template??
does anyone know a variable that contains the actual username of the logged in user that I can put in the header template? eval() wont read $vbulletin->userinfo['username']...
I tried stabbing in the dark at $show[user], $show[username], and [user, username] on $foruminfo, $threadinfo, $userinfo, and $vbotions to no avail --------------- Added [DATE]1192602033[/DATE] at [TIME]1192602033[/TIME] --------------- hrm. I don't know how koesher this is, but I just hacked the record in the template table and changed Code:
".(($show['guest']) ? (" Code:
".(($show['guest']) ? (" if you are wondering about the wierd PHP syntax, it's called a ternary operator. Read: http://www.php.net/manual/en/languag...arison.ternary |
$bbuserinfo[username]
|
$bbuserinfo!!! awesome. It gave me [username], [userid], and [logouthash], which is exactly what i needed.
Thank you very much. Any insight on checking $bbuserinfo or $show[guest] accurately on the logout page? As of now, when I click logout, it logs me out, but still shows $show[guest] = '' in the header until i go to another page... |
The user is technically still logged in until the end of execution of the logout page.
|
All times are GMT. The time now is 08:11 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:
|