PDA

View Full Version : Template Organization


countryboy713
05-31-2002, 10:04 PM
I have a couple styles on the forum that the only difference between them is the forum home template and the postbit template. The rest of the templates are exactly the same. I wanna know how to make them both share all templates except for the forumhome and postbit, so I dont have to update two sets of templates all the time when i change like the forumdisplay or something.

Also, how do I group the templates like the vBstats hack does. Like there's a group for the forumdisplay templates and the forumhome templates. I've installed vBportal and would like to have a group for that, also for the toplist hack by Slynderdale

Xenon
06-01-2002, 10:12 AM
hmm, that would be not easy, i'd say wait for vb3 there'll be included just modify 2 templates but all others are choosen from your default set
ok, the two templates are header and footer, but you can have a look on the code then :)

grouping templates is very easy read what you have done in template.php when installed vbStats and do so for the others too :)

countryboy713
06-02-2002, 05:54 AM
I tried that, it didnt work. I added the $only['memberlist'] = 'Member List'; using $only['PREFIX BEFORE THE _'] = 'TEXT I WANTED IT TO SHOW AS';

Sparkz
06-02-2002, 02:42 PM
templates have to exsist in templateset -1 to be grouped.
Or to be more exact: There has to be a version of the template in templateset -1 for it to be grouped.

Dean C
06-02-2002, 04:13 PM
so basically u want to insert a variable such as $bannerandlinks and be able to have it on any template???