Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
How to add your own template group
Logikos
Join Date: Jan 2003
Posts: 2,924

 

Show Printable Version Email this Page Subscription
Logikos Logikos is offline 10-03-2004, 10:00 PM

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:
// template groups
$only = array
(
        
// phrased groups
        
'buddylist' => $vbphrase['group_buddy_list'],
        
'calendar' => $vbphrase['group_calendar'],
        
'faq' => $vbphrase['group_faq'],
        
'reputation' => $vbphrase['group_user_reputation'],
        
'poll' => $vbphrase['group_poll'],
        
'pm' => $vbphrase['group_private_message'],
        
'register' => $vbphrase['group_registration'],
        
'search' => $vbphrase['group_search'],
        
'usercp' => $vbphrase['group_user_control_panel'],
        
'usernote' => $vbphrase['group_user_note'],
        
'whosonline' => $vbphrase['group_whos_online'],
        
'showgroup' => $vbphrase['group_show_groups'],
        
'posticon' => $vbphrase['group_post_icon'],
        
'userfield' => $vbphrase['group_user_profile_field'],
        
'bbcode' => $vbphrase['group_bb_code_layout'],
        
'help' => $vbphrase['group_help'],
        
'editor' => $vbphrase['group_editor'],
        
'forumdisplay' => $vbphrase['group_forum_display'],
        
'forumhome' => $vbphrase['group_forum_home'],
        
'pagenav' => $vbphrase['group_page_navigation'],
        
'postbit' => $vbphrase['group_postbit'],
        
'threadbit' => $vbphrase['group_threadbit'],
        
'im_' => $vbphrase['group_instant_messaging'],
        
'memberinfo' => $vbphrase['group_member_info'],
        
'memberlist' => $vbphrase['group_members_list'],
        
'modify' => $vbphrase['group_modify_user_option'],
        
'new' => $vbphrase['group_new_posting'],
        
'showthread' => $vbphrase['group_show_thread'],
        
'smiliepopup' => $vbphrase['group_smilie_popup'],
        
'subscribe' => $vbphrase['group_subscribed_thread'],
        
'whoposted' => $vbphrase['group_who_posted'],
        
'threadadmin' => $vbphrase['group_thread_administration'],
        
'phpinclude' => $vbphrase['group_php_include_code'],
        
'navbar' => $vbphrase['group_navigation_breadcrumb'],
        
'printthread' => $vbphrase['group_printable_thread'],
        
'attachmentlist' => $vbphrase['group_attachment_list'],
        
'subscription' => $vbphrase['group_paid_subscriptions'],


        
'aaa' => 'AAA Old Backup'
); 
Above the 'aaa' => 'AAA Old Backup' You can place your groups name.

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:
'arcade' => $vbphrase['arcade_hack_templates'], 
Then you would add a new phrase call arcade_hack_templates with the text Arcade Hack Templates.

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.
Attached Files
File Type: txt group_templates_tutorial.txt (4.6 KB, 124 views)
Reply With Quote
  #2  
Old 10-04-2004, 10:01 AM
nexialys
Guest
 
Posts: n/a
Default

Hum... Live_Wire.. this was released months ago..
Reply With Quote
  #3  
Old 10-04-2004, 06:02 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i did a search in the Modification Hints and Tips forum and couldn't find anything.
Reply With Quote
  #4  
Old 10-04-2004, 07:56 PM
nexialys
Guest
 
Posts: n/a
Default

hum.. ya... i know... someone moved it...
Reply With Quote
  #5  
Old 10-04-2004, 08:02 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's okay, I saved it Live Wire
Reply With Quote
  #6  
Old 10-04-2004, 08:15 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for posting this up Ken - hopefully it'll help a few people
Reply With Quote
  #7  
Old 10-04-2004, 08:27 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks everyone, got a few more usefull ones i'll be posting.
Reply With Quote
  #8  
Old 10-06-2004, 10:46 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, it wont ever work
PHP Code:
// WRONG!
'arcade => $vbphrase['arcade_hack_templates'], 
PHP Code:
// CORRECT!
'arcade' => $vbphrase['arcade_hack_templates'], 
Syntax Error Heaven


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
Reply With Quote
  #9  
Old 10-06-2004, 11:21 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh small typo with the ' opps. fixed.
Reply With Quote
  #10  
Old 11-01-2004, 03:32 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i cant get this to work for me. For some reason.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05316 seconds
  • Memory Usage 2,323KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete