The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can I create template groups ?
Hi,
Please take a look at the attached image. As you can see, a style can contain templates & template groups. Example of templates (from the attached image) are: "send_to_friend", "shell_blank", "spacer_close", "spacer_open", "TEST", "TEST2", "TEST3" etc. Example of template groups are "Search templates", "Show groups templates", "Show thread templates", "Smilie popup templates", "Sunscribed threads templates" aso. How can I define a group of templates ? I want to put all my templates in such a group. For example, I want to put "TEST", "TEST2", "TEST3" in a group called "TESTING". Regards, Razvan |
#2
|
||||
|
||||
you will need to create a plugin
HOOK LOCATION: template_groups TEXT: $only['template_prefix'] = 'TITLE OF GROUP'; FYI - your templates should all have the same prefix eg. mytemp_threadbit, MYTEMP_SHELL, etc, etc - you must add new templates to the MASTER STYLE |
#3
|
|||
|
|||
Quote:
I am thinking to use a common prefix. |
#4
|
||||
|
||||
I'd hardly consider a board with plugins enabled "dirty". Properly used, Plugins are very efficient and safe.
|
#5
|
|||
|
|||
I tried to do this in 3.7.3 and it did not group the templates.
Okay, got it working. For future reference: The prefix should not include the underscore. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|