How to add your own template group
1 Attachment(s)
If you would like to keep your AdminCp Area nice and clean like i do and are looking for a way to group all those custom templates that say arcade_XXXX all over the place, well lets put them in its own group.
Open includes/adminfunctions_template.php Scroll ALL the way to the bottom and you will see the following: PHP Code:
For instance if you installed the arcade hack all there templates say: arcade_blah arcade_blah arcade_blah arcade_blah Then you would add the following above 'aaa' => 'AAA Old Backup': PHP Code:
Now the 'arcade => part means which templates are we going to put in this group. And only the templates that start with arcade. and the $vbphrase['arcade_hack_templates'] part is the name of the catogory/group your templates will be under. So now you should be able to make your own. Hope this is usefull for new hackers! :) You can download the tutorial in a .txt format below. |
Hum... Live_Wire.. this was released months ago.. ;)
|
Well i did a search in the Modification Hints and Tips forum and couldn't find anything.
|
hum.. ya... i know... someone moved it...
|
That's okay, I saved it Live Wire :)
|
Thanks for posting this up Ken - hopefully it'll help a few people :)
|
Thanks everyone, got a few more usefull ones i'll be posting.
|
Well, it wont ever work ;)
PHP Code:
PHP Code:
Plus, vBulletin automatically suffixes the phrases (be they vb'ed or not) with "Templates", so yours would read "Arcade Hack Templates Templates", if you included "Templates" in the vbphrase you add :) |
ahh small typo with the ' opps. fixed.
|
i cant get this to work for me. For some reason.
|
Now if somebody could only get the "adv_portal" templates do do that for vBa CMPS I'd be happy. :p
|
Quote:
Find: PHP Code:
PHP Code:
vbadvanced_cmps_templates vBadvanced CMPS Templates Done! |
Quote:
Code:
'adv_portal' => 'vBadvanced CMPS', Knowing how to do it isn't the problem..... why it isn't working is. ;) |
thanks for the help.. now i Just can't get the adv_portal templates to move. Like the ones i have added.
any ideas on it? |
I get this problem sas well, but others with the same hack installed have it working (/me points @ Boofo and Dark_Wizard) ... so I dunno what it is: the file mods are the same...
|
This works on some but not others. Not sure why...
|
Quote:
|
it works for most of the cases, the only time I saw it doesn't work is when using for adv_portal. all of else works for me.
|
this is a great tip, cleans things up nicely, now what to do with the custom adv_portal templates?
|
I just tried this for the geek article system, and it didn't work. However, I noticed that all the templates started 'GAS_', so I used the code
PHP Code:
PHP Code:
|
Regarding it not working with the adv_portal templates, Brian at vBadvanced said in this post that because of the way vBulletin handles things, new templates won't be grouped with the others. Maybe they'll have this fixed in 3.5...
|
Heh, it's version 3.8 and almost 4 years passed without any changes. This is a big issue for boards like mine with alot of modifications and templates that start with adv_portal.
|
Quote:
Quote:
|
Quote:
PHP Code:
|
All times are GMT. The time now is 01:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|