Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Organize your templates! Details »»
Organize your templates!
Version: 1.00, by magnus magnus is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-05-2004 Last Update: Never Installs: 38
 
No support by the author.

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:
    'subscription' => $vbphrase['group_paid_subscriptions'], 
Add BELOW:
PHP Code:
    'XXprefixXX' => 'XXtitleXX'
Change "XXprefixXX" to whatever the template prefixes are, for example, the Arcade templates all begin with "arcade", so, you would put "arcade" as the prefix.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-06-2004, 07:27 PM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BarBeQue
[high]* BarBeQue clicked install
[/high]

worked like a charm!
I requested this but no one answered :P This is great!
Reply With Quote
  #13  
Old 04-07-2004, 02:15 AM
paddysplace paddysplace is offline
 
Join Date: Apr 2003
Location: Silicon Valley, CA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 04-07-2004, 04:41 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Small - but very handy. Cheers.
Reply With Quote
  #15  
Old 04-07-2004, 06:02 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If adding this code so templates can be grouped, won't this cause the templates to be erased on a vb upgrade?
Reply With Quote
  #16  
Old 04-07-2004, 08:02 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
If adding this code so templates can be grouped, won't this cause the templates to be erased on a vb upgrade?
No, I don't think so. They are still classified as "custom templates" by vB. If you "revert" them, they will still be deleted. This doesn't change any of their SQL flags, as that's where vB determines what gets replaced during an upgrade.
Reply With Quote
  #17  
Old 04-08-2004, 05:39 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea, really coold
Reply With Quote
  #18  
Old 05-12-2004, 09:22 PM
Synicide Synicide is offline
 
Join Date: Dec 2002
Location: Providence, RI
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I hope they don't get deleted, because I'm jumping into this hack anyway.

[high]* Synicide jumps on the install button.[/high]
Reply With Quote
  #19  
Old 05-23-2004, 03:02 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 06-03-2004, 10:11 AM
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Location: Stuttgart- Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine, thanks !
click install
Reply With Quote
  #21  
Old 06-03-2004, 06:31 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
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.
well, this is good, but ... I'd like to group the "custom templates" or "custom groups" in one place, so I dont need to go though the whole list of templates to find the custom ones. Tor example, I am grouping some xzy_ templates, as xzy, and prefer them to be displayed on top, or still in Cumstom Templates group.

dunno if it's posible.
Reply With Quote
Reply

Thread Tools

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 05:12 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
  • Page Generation 0.06608 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete