The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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... |
#3
|
||||
|
||||
To display sthg in the header, add the code in the phpinclude template
|
#4
|
|||
|
|||
Where about in global.php should i define them...?
just slot the DBquery code in anywhere before the header is parsed? |
#5
|
||||
|
||||
grog is right, you can also put it into the phpinclude template, because it's parsed before the header emplate
|
#6
|
|||
|
|||
<a href="http://www.vbulletintemplates.com/mods/showthread.php?threadid=1522&highlight=header" target="_blank">http://www.vbulletintemplates.com/mo...ghlight=header</a>
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|