vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Organize your templates! (https://vborg.vbsupport.ru/showthread.php?t=63519)

magnus 04-05-2004 10:00 PM

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:

    '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. :)

magnus 04-06-2004 01:56 AM

Err.. this should be in Modification Hints and Tips, could a moderator please move it for me? :)

Link14716 04-06-2004 03:21 AM

Quote:

Originally Posted by magnus
Err.. this should be in Modification Hints and Tips, could a moderator please move it for me? :)

Although technically it is a mini-mod as well, heh. ;)

Red Blaze 04-06-2004 04:15 AM

Ahh, now it looks less painful to see all those templates. Thanks! ^_^

Fi_InCogNiTo 04-06-2004 04:25 AM

Wow, beautiful tip there!

As my wife says, so small, but damn it's so usefull!!!

/me clicks install

Red Blaze 04-06-2004 04:55 AM

Quote:

Originally Posted by Fi_InCogNiTo
so small, but damn it's so usefull

that.... that sounds wrong man. o.O; I blame my perverted mind, yet I know what you mean...... but still *shivers*

SVTBlackLight01 04-06-2004 06:11 AM

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.

BarBeQue 04-06-2004 08:32 AM

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]

PixelFx 04-06-2004 09:59 AM

very nice, to do the same in vb2 was painful, hehe this is so easy !!

BarBeQue 04-06-2004 06:50 PM

[high]* BarBeQue clicked install
[/high]

:D worked like a charm!


All times are GMT. The time now is 11:38 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
  • Page Generation 0.00998 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete