Log in

View Full Version : Group Template


SmEdD
04-19-2004, 10:00 PM
This is a nice hack to keep your template list clean.

In includes/adminfunctions_template.php find:
// ******************************** 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:
'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? (https://vborg.vbsupport.ru/showthread.php?t=63519)

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

Majik?
04-20-2004, 09:13 PM
Isn't this more like This one? (https://vborg.vbsupport.ru/showthread.php?t=63519)

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
Isn't this more like This one? (https://vborg.vbsupport.ru/showthread.php?t=63519)

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
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',