vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to group custom templates? (https://vborg.vbsupport.ru/showthread.php?t=134540)

Snake 12-21-2006 09:32 PM

How to group custom templates?
 
I'm not sure if this has been ever posted but how do I group custom templates in vBulletin v3.6.4?

I have like 10 custom templates for the Quiz hack which are using "quiz_" as the prefix. I would like to organize it and have its own group just like the others. Any idea how?

WhaLberg 06-27-2007 06:51 PM

And old thread but I didn't want to open a new one, can anybody help for this?

Michael Biddle 06-27-2007 06:54 PM

In the plugin make like this:


Hook Location:template_groups
PHP Code:

$only['quiz'] = 'Quiz' // might wanna use a phrase like $vbphrase['quiz_group']; 

That should do what you want.

Wilfred1 10-06-2009 01:21 AM

It seems this thread is to be resurrected again :D

I have the exact same problem and with the exact same addon and using vb 3.8.4 the plugin:
Code:

$only['quiz'] = 'Quiz' // might wanna use a phrase like $vbphrase['quiz_group'];
doesn't work - in fact it expands all template groups and they can't be collapsed.

I have about 40 custom templates added by the Quiz mod so can anyone offer advice on how I can group all of these together - thanks!

HMBeaty 10-06-2009 01:25 AM

You could also try this

https://vborg.vbsupport.ru/showthrea...ighlight=group

Wilfred1 10-06-2009 01:49 AM

Thanks HMBeaty - worked perfectly - I guess for this I will have to make an exception to the rule of not editing any of the source files - darn pain remembering what was changed when time comes to update - thanks again!

ForumsMods 10-06-2009 01:55 AM

You forgot a ;.
PHP Code:

 $only['quiz'] = 'Quiz'


Link14716 10-06-2009 02:00 AM

Quote:

Originally Posted by Wilfred1 (Post 1895444)
It seems this thread is to be resurrected again :D

I have the exact same problem and with the exact same addon and using vb 3.8.4 the plugin:
Code:

$only['quiz'] = 'Quiz' // might wanna use a phrase like $vbphrase['quiz_group'];
doesn't work - in fact it expands all template groups and they can't be collapsed.

I have about 40 custom templates added by the Quiz mod so can anyone offer advice on how I can group all of these together - thanks!

It's always the simplest errors that are the hardest to spot.

That line is missing a semicolon. (Edit: Damn, vB Style posted it first. Grr, should have noticed it quicker. :))

Wilfred1 10-07-2009 01:07 AM

Fantastic...thanks guys!


All times are GMT. The time now is 02:34 AM.

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.00985 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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