![]() |
Organize your templates!
If you're like me, you like to try to keep your board as organized as possible. Which, is why the following little tip comes in handy for hacks that add a dozen or so custom templates. (ie. vBindex, v3arcade, etc..)
In includes/adminfunctions_template.php: Find: PHP Code:
PHP Code:
Change "XXtitleXX" to what you want the category to be called, don't add "Templates" to the name, because vB will do that for you. For example, if you put "arcade" as the title, it will read "Arcade Templates" in the Edit Templates section. Get it? Good. :) |
Err.. this should be in Modification Hints and Tips, could a moderator please move it for me? :)
|
Quote:
|
Ahh, now it looks less painful to see all those templates. Thanks! ^_^
|
Wow, beautiful tip there!
As my wife says, so small, but damn it's so usefull!!! /me clicks install |
Quote:
|
That's a great tip. I have definately found it useful and think this step should be added to any hack with multiple new templates.
|
Fine mod!
Been looking for a way to accomplish this, now i found it :D [high]* BarBeQue will click install tonite, when he's home and actually installed it.....[/high] |
very nice, to do the same in vb2 was painful, hehe this is so easy !!
|
[high]* BarBeQue clicked install
[/high] :D worked like a charm! |
Quote:
|
I was just asking for this a few hours ago in #vborg. Thank you SO much! I will definitely put this in my hacks (crediting you of COURSE!)
Regards, Patrick |
Small - but very handy. Cheers. :D
|
If adding this code so templates can be grouped, won't this cause the templates to be erased on a vb upgrade?
|
Quote:
|
great idea, really coold
|
Well, I hope they don't get deleted, because I'm jumping into this hack anyway. :D
[high]* Synicide jumps on the install button.[/high] |
Let me see if I get this right. I installed this mod and this is what I put in the "'articles' => 'articles'," in my adminfunctions_template.php. Everything seemed to work fine.
But my question is: When I create a new template now how do I get it listed under ARTICLES? Do I have to name the new template articles_test? |
works fine, thanks !
click install |
Quote:
dunno if it's posible. |
this is very useful! :D
i'm happy today |
Quote:
|
Cool tip. :) I like my custom templates separated, so I won't actually install this, but will still say that this is a simple yet useful mod.
|
Nice one! Thanks for sharing. :)
|
Great hack :)
|
nice tip:up:
|
/me clicks install!
|
[high]* Revan clicks install
[/high] Great hack, it always pissed me off that the Arcade templates didnt get their own group ;) Actually I think I will use this to group the RPG Templates in future versions :) |
Just make sure that the phrase you enter for the prefix is in lowercase letters. If it is in caps (even if they appear to be caps in the template name), it doesn't work for some reason.
I had some templates which started with "ActivationEmail" and I had to enter "activationemail" for it to work. Rgds --------------- John |
Awesome Information, it helps to know. Thanks.
|
With over 100 custom templates on my board, I've wanted to know how to do something like this for a while, it really makes things easier. THANKS :D
[high]* N8 clicks install[/high] |
nice
|
I cant get this to work.
I added 'chris' => 'chris', and then added a template called 'chrisindex' and this doesnt make any new catagory at all. |
Quote:
Code:
'chrisindex' => 'chrisindex' Hope that helps :) |
For some reason I am just stumped.
New Code 'chris_trade' => 'trade_pages_chris', My attempt here is to have a bunch of templates named 'chris_trade_XYZ' under the catagory Trade Pages Chris Templates According to the directions my code should be right with a template called 'chris_trade_index' falling under trade pages chris templates' Maybe Im tired but im lost for some reason on this. |
got it - thanks
|
Thanks a lot, I was looking for a way to do this :)
|
All times are GMT. The time now is 04:06 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|