![]() |
Adding a new $code to call
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 |
Requires hacking/phpinclude mod to get new variables to work in templates.
|
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.
|
Does it add anything via file hacking?
|
Quote:
|
so if you add the new template name to $templateused it wont add a query?
|
Quote:
|
Would be ubercool if you could just have a setting in the admin CP for which files and actions cache which templates.
|
We can only dream. :( :p
|
Quote:
|
Quote:
It would be easy if your just making it be able to read one template from the variable you specify. |
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
|
All times are GMT. The time now is 01:08 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:
|