![]() |
an annoying problem
Hello, I'm completely new to VB so avoidance of technical terms would be most welcomed - but i'm willing to have a go at whatever you might through at me!
I have designed a welcome panel which displays stats like name, number of posts, etc. However, part of the panel (the generic forum stats) is located in the $header template. Whenever i try to call variables like $numbermembers from this template, nothing appears! Could someone give me a walkthrough on making these varibles available to this template? Thanks Robert |
you havwe to define those variables in global.php before the headertemplate is parsed...
but you shouldn' do such things, because it would increas queryamount on every page... |
To display sthg in the header, add the code in the phpinclude template ;)
|
Where about in global.php should i define them...?
just slot the DBquery code in anywhere before the header is parsed? |
grog is right, you can also put it into the phpinclude template, because it's parsed before the header emplate :)
|
<a href="http://www.vbulletintemplates.com/mods/showthread.php?threadid=1522&highlight=header" target="_blank">http://www.vbulletintemplates.com/mo...ghlight=header</a>
|
All times are GMT. The time now is 08:27 AM. |
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:
|