View Full Version : Adding a new $code to call
Logikos
03-24-2003, 05:11 AM
I need to know how to add a new $callnamehere
Example i would like to make a new template for the "Forum Home Page Templates" So would i just create a new template called forumhome_offtopicbit with my html code inside that, and add $offtopicbit anywhere in the forum homes section?
Just wondering if im right or wrong or even close :P
Tony G
03-24-2003, 06:02 AM
Requires hacking/phpinclude mod to get new variables to work in templates.
Logikos
03-24-2003, 11:14 AM
Thanks Tony. You better be getting paid for all this :p
Also, adding a new varible via phpinclude to call a template will add one query.
Tony G
03-25-2003, 03:29 AM
Does it add anything via file hacking?
Does it add anything via file hacking?
It can, if hacking is done incorrectly, basicly any template used on a page that is not in the $templateused section of the file will add a query.
Grunt
03-30-2003, 10:59 PM
so if you add the new template name to $templateused it wont add a query?
so if you add the new template name to $templateused it wont add a query?
yes, but you will have to hack to do so.
filburt1
03-31-2003, 12:40 AM
Would be ubercool if you could just have a setting in the admin CP for which files and actions cache which templates.
Tony G
03-31-2003, 04:48 AM
We can only dream. :( :p
Would be ubercool if you could just have a setting in the admin CP for which files and actions cache which templates.
would be easy to write, but not wroth the time of editing nearly every file.
Logikos
03-31-2003, 09:06 AM
would be easy to write, but not wroth the time of editing nearly every file.
It would be easy if your just making it be able to read one template
from the variable you specify.
drives fast
04-09-2003, 05:16 PM
create the template and then in your home.php (whatever it is called) you should find where templates are parsed down around the bottom of the script.....just add the template to that list and call it where you want it to appear on the page
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.