Log in

View Full Version : an annoying problem


robflack
04-30-2003, 09:32 AM
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

Xenon
04-30-2003, 09:56 AM
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...

grog6
04-30-2003, 09:56 AM
To display sthg in the header, add the code in the phpinclude template ;)

robflack
04-30-2003, 10:01 AM
Where about in global.php should i define them...?
just slot the DBquery code in anywhere before the header is parsed?

Xenon
04-30-2003, 10:06 AM
grog is right, you can also put it into the phpinclude template, because it's parsed before the header emplate :)

Brad
04-30-2003, 10:06 AM
<a href="http://www.vbulletintemplates.com/mods/showthread.php?threadid=1522&highlight=header" target="_blank">http://www.vbulletintemplates.com/mo...ghlight=header</a>