View Full Version : Template groups - how are they done
bairy
02-06-2006, 03:30 PM
I have a set of custom templates and I was wondering how they could be put into their own categories.
By category I mean the bolded bit:
BBCode Layout Templates
> bbcode_code
> bbcode_html
> bbcode_php
> bbcode_quote
I've piled through the template database table and I've looked through template.php but I can't work out how it associates e.g. bbcode_code to the BBCode LT header.
Are the categories and their kids related to the master template (think debug mode) or is it held in the database somewhere?
Arjan
02-18-2006, 11:51 AM
I'm looking for this also...
Princeton
02-18-2006, 12:08 PM
You will need to create a plugin/product.
Create a new plugin: let's say the group is called GTBLOG MANAGER
Create a Plugin (http://www.vbulletin.com/docs/html/plugin_system) via Plugin System
Enter the following:
PRODUCT: leave as vbulletin
HOOK LOCATION: template_groups
TITLE: enter title
PLUGIN PHP CODE: $only['gtblog'] = 'GTBLOG MANAGER';
PLUGIN IS ACTIVE: yes
Press Save
Fantastic! You just created a new template group.
Now, go into STYLES & TEMPLATES and create your templates.
HOW TO CREATE TEMPLATES (http://www.vbulletin.com/docs/html/stylemanager_add_new_style)
With the above example, you need to append all your templates with gtblog_. eg. GTBLOG_SHELL, gtblog_postbit, etc, etc
If you still need help, I recommend go thru the 3.5 TUTORIALS FORUM.
Arjan
02-18-2006, 01:18 PM
Thanks. I see that it has changed between 3.0 and 3.5
Here I found it for the 3.0 series (which I'm still using, forgot to tell):
https://vborg.vbsupport.ru/showthread.php?t=70165&highlight=template+groups
Andreas
02-18-2006, 01:21 PM
Nothing has changed since 3.0, it's just that you don't have to modify the file with 3.5 and can use a plugin instead.
Though, if you want, you could still modify the file.
ncangler
12-01-2006, 12:25 AM
Thank you Princeton!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.