![]() |
Using welcome variables in header
Hi,
How can I use the welcome panel variables such as $welcometext in my header template? I would like the user information when logged in to appear on all the VB pages. Thank You, Pawel |
instead of inserting the welcomepanel code into index.php you have to insert it into global.php before $header is parsed.
but you shouldn'T do that, as it would increase every page's queries |
Hi,
I put in all the variables into global.php but it still won't work. Here is what I put at the bottom of global.php: Code:
//check usergroup of user to see if they can use PMs Thank You, Paul |
Oh and by bottom I mean above ?>
Thanks, Paul |
reread my post again!
i said put the code before $header is parsed, not at the end of global.php |
Sorry just woke up :), I will try it as soon as I get back home.
Thank You, Paul |
Add that code before:
PHP Code:
|
Thanks Xenon, it worked perfectly. Assassingod I would try that but since I have it working I don't have time to mess with it, thanks for the help though.
Paul |
All times are GMT. The time now is 10:06 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:
|