View Full Version : Custom Template Groups
evenmonkeys
01-02-2006, 08:00 AM
I ran a search and didn't find what I was looking for. Is there a way to put custom templates into a template group? I have a lot of templates that I've made and don't want them taking up the first 500 lines. Please help.
Hello,
Template Manager should work for you. Its a modification for 3.5.x on this site.
evenmonkeys
01-04-2006, 02:46 AM
I've installed it but it does not have the ability to put custom templates into groups. =\
DrewM
01-04-2006, 09:28 AM
Templeat groups can be add by making a hook in location:template_groups
and the code this:
$only['name']='name';
evenmonkeys
01-05-2006, 12:24 AM
It's not working. O_O
peterska2
01-06-2006, 03:01 PM
This is what I use for my cmps templates
$only['adv_portal'] = 'vBadvanced CMPS'; as a plugin in template_groups
Make sure you put the one for each group of templates as a new plugin as it makes it easier to remove them later if you need to.
Also, make sure you set the plugin to active.
evenmonkeys
01-06-2006, 10:35 PM
I lied... it's working.
Is it possible to make this work for Custom Templates? I have like 300 custom templates that I'd like to segregate.
peterska2
01-06-2006, 11:32 PM
Yeah
say you have a bunch of templates that start with peterska2_
then you would use
$only['peterska2'] = 'peterska2 rules';
repeat as desired.
NOTE: It will only group the ones that start the same.
evenmonkeys
01-07-2006, 03:05 AM
Well... maybe it doesn't work for Dream's custom page wrapper. The templates all say page_blah_whatever. I make the plugin for page_blah and it doesn't work. It's still in the Custom Templates list.
peterska2
01-07-2006, 12:38 PM
Try just making it for page instead
evenmonkeys
01-07-2006, 10:05 PM
That worked. Is it possible at all to make it work for...
page_one
page_two
page_three
I mean... it's nice being able to close it now.... but yeah.
peterska2
01-08-2006, 12:37 AM
nope you can only do it upto the first underscore in the template name
evenmonkeys
01-08-2006, 07:09 AM
Bah! I want my money back! ; ;
peterska2
01-08-2006, 08:48 PM
Typical ;)
Antivirus
04-02-2006, 06:04 AM
very helpful, thanks! I was confused about whether or not the first var was the prefix of all my custom templates, this clarified.
SleekSkins
04-05-2006, 06:59 PM
Hey I did this and it's working, but on the 'edit templates' page when I click on the template group it is supposed to expand but it isn't, I'm getting this JavaScript error:
'arry has no properties' in vbulletin_templatemgr.js on line 260
---
My bad, did something wrong. I clicked 'custom templates' because I thought that was the one I created but mine was called 'custom pages'.
craiovaforum
02-25-2009, 08:41 PM
This is what I use for my cmps templates
$only['adv_portal'] = 'vBadvanced CMPS'; as a plugin in template_groups
Make sure you put the one for each group of templates as a new plugin as it makes it easier to remove them later if you need to.
Also, make sure you set the plugin to active.
Is this working?
Because I cannot make my custom templates that start with "adv_portal" to group. I tried the same group name as the original vBadvanced templates and with a new name and I got the same result: no changes.
Obviously I tried with other templates and it works just fine but not with templates that start with "adv_portal"
Any suggestions?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.