View Full Version : Include own templates?
This question has probably been asked a couple of hundred times..
I have made a template in the Style manager... called bp_header
Now I want to include this in the header template and simply call it by typing
$bp_header
what do I have to do?
assassingod
05-06-2004, 04:05 PM
There most basic way is to put:
eval('$bp_header = "' . fetch_template('bp_header') . '";');
in the phpinclude_start template. However, you will have an uncached template on each page (1 extra query)
There most basic way is to put:
eval('$bp_header = "' . fetch_template('bp_header') . '";');
in the phpinclude_start template. However, you will have an uncached template on each page (1 extra query)
Thanks that worked for me!, but i dont understand the meaning of an uncached template ( 1 extra query ) , how can I make this a good thing? ie.. a cached template instead?
assassingod
05-06-2004, 04:46 PM
Basically this means that there is 1 extra query on each page and that could increase loading time. The best way to stop this is to open global.php and find (Line 333):
'STANDARD_REDIRECT'
and replace that with
'STANDARD_REDIRECT',
'bp_header'
Ahh.. Thank you so much! :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.