vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Group Template (https://vborg.vbsupport.ru/showthread.php?t=64157)

SmEdD 04-19-2004 10:00 PM

Group Template
 
This is a nice hack to keep your template list clean.

In includes/adminfunctions_template.php find:
PHP Code:

// ******************************** DECLARE ARRAYS AND GLOBAL VARS ******************************

// template groups
$only = array
(
    
// phrased groups
    // THERE WILL BE A BUNCH OF ARRAY VARIABLES HERE!
); 

Add this code into the array:
PHP Code:

'prefix_of_template_group' => $vbphrase['group_templatename'

Then add your "group_templatename" phrase to phrease group "Style Tools"

Make sure you add commas to the end of the array values except the last one.

Scrub 04-20-2004 08:36 PM

It works! :p

Red Blaze 04-20-2004 08:51 PM

Isn't this more like This one?

Although, this looks a tad different... is there any difference?

Majik? 04-20-2004 09:13 PM

Quote:

Originally Posted by Sonikku
Isn't this more like This one?

Although, this looks a tad different... is there any difference?

It's the same thing, but using phrases for the group titles.

SmEdD 04-20-2004 09:28 PM

Quote:

Originally Posted by Sonikku
Isn't this more like This one?

Although, this looks a tad different... is there any difference?

Didn't even see the other one, I must be blind :ermm:

Scrub 04-20-2004 09:38 PM

I think I had troubles with that other one for some reason or another, but no problems with this one though? :D

InsaneContender 04-21-2004 12:29 AM

Can I see a screenshot of what it does please?

SaN-DeeP 04-21-2004 12:31 AM

i installed it ;)
nice work..
but. wht is this hack for ? i didnt find any diffference, in my templates display ?

Scrub 04-21-2004 01:21 AM

After you make the file edit, add a template with the prefix_of_template_group before it, like say you added:

'boo' => $vbphrase['group_boo']

Now add a new template called: boo_index
Snd save it. It will then show.

SmEdD 04-22-2004 02:08 AM

Quote:

Originally Posted by InsaneContender
Can I see a screenshot of what it does please?

In your template manager, if you have alot of custom templates called "vbindex_..." for say you can groupe them like the vbulleting templates are.

gmarik 04-22-2004 02:47 PM

It seems there was a thing like this...

AlexanderT 04-22-2004 02:50 PM

It is the same thing.

adhari_com 07-06-2004 07:10 PM

perfect guys .. thanx a mill ! :D

Jolten 07-06-2004 08:12 PM

you don't need the vb phrase just

'templategroup' => 'Template Name',


All times are GMT. The time now is 08:24 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.01144 seconds
  • Memory Usage 1,742KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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