vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom Template Groups (https://vborg.vbsupport.ru/showthread.php?t=104239)

evenmonkeys 01-02-2006 08:00 AM

Custom Template Groups
 
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.

Rich 01-02-2006 10:55 AM

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:
PHP Code:

$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

Code:

$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

Code:

$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


All times are GMT. The time now is 07:17 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.01259 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete