[quote=Oblivion Knight;803104]Want to cache templates or group custom templates in the Admin CP without editing the source code? Of course you do! Want to know how to achieve this? Read on..
Now in plain english the easiest way to do this step by step is:
Add a plugin to the following hook location:
Plugins & Products: Add New Plugin
step 1 example:
- Product: vBulletin
- Hook Location: template_groups
- Title: TEST TEMPLATES
- Plugin PHP Code: $only['testtemplate'] = $vbphrase['mytest'];
- Plugin is Active:Yes
Next you want to add the Main Titles phrase of your Grouped Templates
step 2 example:
Languages & Phrases: => Phrase Manager => Add New Phrase
- Phrase Type: GLOBAL
- Product: Either your product or the default which is vBulletin
- Varname: mytest
- Text: TEST TEMPLATES
Now the last step is creating the template or templates
last step example:
Styles & Templates => choose your current style unless you have
debug mode on, you can choose
MASTER STYLE => Add New Template
- Product: vBulletin or Your Product
- Style: Your current style unless you have debug mode on, you can chooseMASTER STYLE to make this template for all the styles
Quote:
Now remember to always have the prefix to what you have it set on in the plugin that you gave it, we already chose $only['testtemplate'].
|
- Title: testtemplate_HOMEPAGE
- Template: you can put your HTML/PHP or whatever code you like to put here. you can even say "hi!"
- Click save and go see your new group of templates called "TEST TEMPLATES"
I still give credits to Oblivion Knight, however, this I would rather say because it is far more easier to do these step by step. Now that I have gave you a break down on how to accomplish this the easy way, please feel free to rep me. But please, this original tutorial was by Oblivion Knight, I just broke it down in PLAIN ENGLISH! Thanks!