PDA

View Full Version : how to group templates ?


deathemperor
09-21-2005, 05:45 PM
I'm sorry if this has been asked but how do we group template with the same prefix in vbulletin 3.5 ?

I just don't want to edit adminfuctions_template.php anymore.

thanks in advance

Andreas
09-21-2005, 06:49 PM
template_groups

$only['prefix'] = 'Prefix';

deathemperor
09-22-2005, 01:33 AM
Thanks Kirby ! you are really helpful.

utw-Mephisto
09-22-2005, 07:59 AM
What does that mean actually ? I have heard about grouping before but still have no clue what it means .. Does it mean you have one big table rather than 20 or something ?

deathemperor
09-22-2005, 08:13 AM
this does nothing with the database, it only group templates with the same prefix to one group when editing templates

Odysseus
09-23-2005, 12:54 PM
What does that mean actually ? I have heard about grouping before but still have no clue what it means .. Does it mean you have one big table rather than 20 or something ?

This means, you have to use the plugin system.
Click on "Add new plugin", choose "template_groups" as hook location and enter
$only['xxxxx_'] = 'YYY';
as Plugin code.

This will collect all templates which titles start with "xxxxx_" in one group called "YYY" in the template manager.


Important: I typed small x's, because you MUST use small letters, AFAIR, even if the prefix contains capital letters!

TwinsForMe
11-05-2005, 01:28 AM
I'm following the instructions but my templates aren't being grouped under a collapsable group. Any suggestions?