The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding a new template...
As I have a few weeks of free time I am trying to start to learn a little about PHP and the new plug-in/hook system in vB. I am starting by trying to figure out how to simply add a new template to the style (which I can do) and call this template via a plug in hook wherever I want it to appear.
Do I: 1 - write and create new template 2 - identify the hook insert point 3 - use the following PHP in the hook.. eval('print_output("' . fetch_template('mynewtemplate') . '");'); ?? is that what I need to do...? Apologies re the total newbieness here folks. Ta for assistance... |
#2
|
|||
|
|||
in hook cache_templates
ADD Code:
$globaltemplates = array_merge($globaltemplates, array('TEMPLATE NAME - NO $')); ADD Code:
eval('$navbar_bottom = "' . fetch_template('TEMPLATE NAME - NO $') . '";'); Create your template then put $templatename in the places where you want it to show. |
#3
|
||||
|
||||
Thanks Kerry...
I assume you meant also I do not include a $ in the template name ?? |
#4
|
|||
|
|||
Exactly.
Happy to help as always John |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|