vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   templates groups, where are they kept? (https://vborg.vbsupport.ru/showthread.php?t=58740)

DiscussAnything 11-21-2003 03:40 PM

templates groups, where are they kept?
 
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

Quote:

Originally Posted by DiscussAnything
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

PHP Code:

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.


All times are GMT. The time now is 08:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01751 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete