Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
templates groups, where are they kept? Details »»
templates groups, where are they kept?
Version: , by DiscussAnything DiscussAnything is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-21-2003 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-21-2003, 03:49 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In admin/template.php Look for $only['showthread'] (or $only[showthread]) for example and you'll see all the groups listed.
Reply With Quote
  #3  
Old 11-21-2003, 03:55 PM
DiscussAnything DiscussAnything is offline
 
Join Date: Jan 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 11-21-2003, 04:09 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 11-21-2003, 04:40 PM
DiscussAnything DiscussAnything is offline
 
Join Date: Jan 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 11-21-2003, 06:01 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-21-2003, 07:01 PM
DiscussAnything DiscussAnything is offline
 
Join Date: Jan 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-21-2003, 10:36 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 11-22-2003, 06:32 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:46 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.07558 seconds
  • Memory Usage 2,277KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete