Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Templating Grouping/Enhanced Management Details »»
Templating Grouping/Enhanced Management
Version: 1.00, by TWTCommish TWTCommish is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-02-2002 Last Update: Never Installs: 32
 
No support by the author.

NOTE: This hack involves the modification of your template admin files. You may want to backup any files involved in this hack to guard against any major problems. Alright, on with the hack.

What's it do?
Ya know those template groups you see when you're modifying templates? The ones with titles like "Calendar templates" or "Forum Display templates" that reveal the templates they contain when you click on the "[expand]" link next to them? Well, this allows you to create, edit, and delete those easily through your admin CP. In addition, it allows you to switch ANY template from standard (like the way the default templates are displayed) to custom, or custom to standard...which means that you can have it placed as a "normal" template, and not under the "Custom template" heading.

I've attached an archive containing the files you'll need, and a text file containing the instructions. No screenshot is necessary, really, as I think the description tells you all you need to know.


Some Specifics
First off, if you add a new template group, and it doesn't show up, don't worry: that doesn't mean it isn't working. You need to create a standard, matching template before the group shows up. Here's a quick example (using a hack of mine called vBGlossary very shamelessly. ):
  • Create a template called glossary_template
  • Specify it as a standard template by clicking "[make template standard]" on the Edit Template screen.
  • Notice that it's now among the "Default templates" that come standard with vBulletin.
  • Create a template group. Enter "glossary" in the "Group Text" field, and "vBGlossary" in the "Group Title" field.
  • Go back to your templates: now, near the bottom, you should see "vBGlossary [expand]" -- clicking on it will expand the group...in which you'll see the glossary_template template! Create any more standard templates beginning with "glossary" and they'll show up under the same group.
The ability to group as you please is nice, but in my opinion, the real value here lies in being able to make templates custom or standard, and then managing them with the groups. If you install a lot of hacks, you probably have a lot of custom templates. It's a big mess, in my opinion, to have them all stuffed together under one heading at the top. This hack lets you organize them easily with the rest of the "standard" vBulletin templates! I dunno if ya'll like it...but I love it.

One more quick example: vBulletin comes with 3 Avatar-related templates. I believe they are avatar. avatars, and avatarbit. Creating a template group called "Avatars" with a "Group Text" value of "avatar" will place these three templates in their own group. No switching is necessary, because they come standard with vBulletin...which means they're already standard templates.


Potential Cause For Confusion
It's not really a bug, because I think it's unavoidable: if you have a standard template, and you edit it, thus creating two templates (your current one, and the default template, which you can, of course, revert to or view as needed), switching it to standard will have BOTH templates show up under the custom heading...two, instead of one.

This hack has been tested by several others, but due to its specific nature, and the files and such involved, it is HIGHLY recommended that you backup the /admin/template.php file before proceeding with installation.

I hope this isn't too confusing. Enough talk: enjoy the hack!

Show Your Support

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

Comments
  #12  
Old 03-05-2002, 02:03 AM
LawnDawg LawnDawg is offline
 
Join Date: Oct 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh good lord, tyvm Comm

Most useful hack ever so far.

My entire site uses vB's templating system
Reply With Quote
  #13  
Old 03-05-2002, 02:08 AM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that's one of the reasons I wrote it...I had a TON of custom templates lying around that needed organization badly...and I plan to build my next site all around vB's templating system. I'm glad you like it.
Reply With Quote
  #14  
Old 03-30-2002, 05:01 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey is there a way to make it so that each template group has a display order, rather then showing them alphabetically? That'd be nice.
Reply With Quote
  #15  
Old 04-07-2002, 07:07 PM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does anyone have a screen shot
Reply With Quote
  #16  
Old 04-07-2002, 08:00 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not the sort of thing that lends itself well to a screenshot. The description explains it all perfectly.
Reply With Quote
  #17  
Old 04-07-2002, 08:04 PM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hehehe ok, im gonna give it a shot, also I have like 4 themes on my board, im looking for a utility that if I make a change to one template it will update to the other tempates will this do the trick as well
Reply With Quote
  #18  
Old 04-07-2002, 08:09 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, this won't...as you'd know if you read the description. There is such a hack, however. A quick search should reveal it.
Reply With Quote
  #19  
Old 04-07-2002, 08:10 PM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know I know, I was jus hoping you would say you have something like in the making
Reply With Quote
  #20  
Old 04-10-2002, 08:27 PM
Atian's Avatar
Atian Atian is offline
 
Join Date: Mar 2002
Location: Korea O_O naw.....usa =p
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

erm,all i get is a blank,i dont see anything >__<
Reply With Quote
  #21  
Old 06-25-2002, 11:27 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...it's not working now after php 4.2.1. Anyone else get this to work with the new php?
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 08:47 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.04704 seconds
  • Memory Usage 2,305KB
  • 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
  • (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
  • (2)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