![]() |
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... |
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. |
Thanks Kerry...
I assume you meant also I do not include a $ in the template name ?? |
Exactly.
Happy to help as always John :) |
All times are GMT. The time now is 07:20 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:
|