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)
-   -   How to show all templates in one click OR add a new template when in the admin cp! (https://vborg.vbsupport.ru/showthread.php?t=59809)

Gary King 01-05-2004 10:00 PM

How to show all templates in one click OR add a new template when in the admin cp!
 
Using this hack, you can just make one click in your admin cp to see all your templates, OR add a new template, without making several clicks :)

I use these modification a lot myself, because it saves me some time, especially on slower hosts and such which takes more time to get to where I want to go :p

Instructions

For the modification to view all templates

Open admincp/index.php and find
PHP Code:

        construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify''<br />'); 

Below, add:
PHP Code:

        construct_nav_option($vbphrase['view_all_templates'],'template.php?do=modify&amp;expandset=1&amp;group=all','<br />'); 

Now create a new phrase called view_all_templates, in the Control Panel Home Pages phrase type, and put the following in the content:
Code:

View All Templates
For the modification to add a new template

Open admincp/index.php and find
PHP Code:

        construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search''<br />'); 

Above, add:
PHP Code:

        construct_nav_option($vbphrase['add_new_template'],'template.php?do=add&amp;dostyleid=1','<br />'); 

Now create a new phrase called add_new_template, in the Control Panel Home Pages phrase type, and put the following in the content:
Code:

Add a New Template
Also, if your default style isn't styleid 1 (not the first one after installing vBulletin, but one that you created) then change the 1 in the added code, to whatever other styleid you are using :)

Hack is now installed, enjoy! :D

MindTrix 01-06-2004 09:28 PM

LOL simple and sweet :)
Nice one.
Quote:

Using this hack, you can just make one click in your admin cp to see all your hacks
See all your hacks? ;)


Thanks!!

Dark_Wizard 01-06-2004 09:52 PM

Cool...nice little addition.

MGM 01-06-2004 11:26 PM

sweet! another great addition by Gary :P

/me clicks Install

MGM out

Gary King 01-06-2004 11:33 PM

Quote:

Originally Posted by MindTrix
LOL simple and sweet :)
Nice one.

See all your hacks? ;)


Thanks!!

Fixed :p

Aaron1 01-07-2004 08:46 AM

Sounds cool & handy!
But is this hack also available for a Vbulletin version 2.* ?

Gary King 01-07-2004 12:45 PM

Quote:

Originally Posted by Aaron1
Sounds cool & handy!
But is this hack also available for a Vbulletin version 2.* ?

https://vborg.vbsupport.ru/showthrea...028#post458028

:)

Gary King 01-08-2004 07:01 PM

Bump (instructions updated, added a new "feature" ;)) :D

SloppyGoat 01-09-2004 08:49 PM

Sweet! Thanks!

Mike Gaidin 01-11-2004 03:31 PM

/me clicks install.


All times are GMT. The time now is 05:02 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.01057 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_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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