View Full Version : templates groups, where are they kept?
DiscussAnything
11-21-2003, 03:40 PM
I am adding a template and want to display it in the appropriate group, but i can't figure out where to do that. The template table only has columns templateid templatesetid title template
I went over some hacks that add groups but I couldnt find anything there either. Can anyone clear that up?
Thanks
NTLDR
11-21-2003, 03:49 PM
In admin/template.php Look for $only['showthread'] (or $only[showthread]) for example and you'll see all the groups listed.
DiscussAnything
11-21-2003, 03:55 PM
how do those groups know which templates belong to them? I have the vbArticles group, and made a new template myself, called vbArticles_articleview2
should it automatically put it in the group or do i need to update something somewhere? Right now it lists it under custom templates, so i must be overlooking something
thanks
assassingod
11-21-2003, 04:09 PM
IIRC if you enable debug mode you can add templates on the master style, making sure the new templates to be listed in the group begin with that name.
DiscussAnything
11-21-2003, 04:40 PM
Isnt' everything that's not in the php files automatically in the database? There has to be something in there, right? It's gotta be tagged in one way or another...
NTLDR
11-21-2003, 06:01 PM
how do those groups know which templates belong to them? I have the vbArticles group, and made a new template myself, called vbArticles_articleview2
should it automatically put it in the group or do i need to update something somewhere? Right now it lists it under custom templates, so i must be overlooking something
thanks
Each group knows what templates are in it based on the templates name, for example $only['showthread'] will have all the showthread* templates grouped together in the ACP (where star is nothing or the rest of the template name).
Note these only affect Standard Templates and not custom added ones. IIRC TWT Commish did a hack to allow grouping custom templates.
DiscussAnything
11-21-2003, 07:01 PM
Thanks lee, I'll install that one and take it from there. It should clean up my templates a lot, sweet
and, as a quick note, since I just found the answer. It doesnt list it by group unless the templatesetid = -1. Mine was 1 since it was a custom template.
g-force2k2
11-21-2003, 10:36 PM
You can find out what the custom templateid is and then just update the templatesetid to -1.
ie. if the templateid is 459
UPDATE template SET templatesetid=-1 WHERE templateid=459
or you can turn on debug mode and it will give you the option of adding templates to the global template set ie( the -1 set).
Hope that helps.
Regards,
g-force2k2
NTLDR
11-22-2003, 06:32 PM
Note that moving your custom templates into the master set will mean they will be deleted upon upgrading unless you customise them after moving them.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.