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 add a new phrase in one click when in admin cp (for those lazy ones among you) (https://vborg.vbsupport.ru/showthread.php?t=59819)

Gary King 01-06-2004 10:00 PM

How to add a new phrase in one click when in admin cp (for those lazy ones among you)
 
Those of you who install this hack should also install this hack for maximum admin cp browsing efficiency :D ( https://vborg.vbsupport.ru/showthread.php?t=59809 )

Using this hack, you can just make one click in your admin cp to add a new phrase, without making several clicks (by going to your Phrase Manager, and then to the very bottom - Add New Phrase :)

I use this modification a lot myself (as well as the other modification I released for admin cp navigational efficiency :)), 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

Open up admincp/index.php and find
PHP Code:

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

Below, add
PHP Code:

        construct_nav_option($vbphrase['add_new_phrase'],'phrase.php?do=add','<br />'); 

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

Add a New Phrase
Hack is now installed, enjoy! :D

Link14716 01-07-2004 12:52 AM

Yay for laziness! :D

I will install this shortly. :)

Boofo 01-07-2004 03:15 AM

Nice, Gary, but I got even lazier and put it in a special js menu for mystuff on the foumhome. ;)

What would the command line be for adding a template?

Gary King 01-07-2004 12:57 PM

Quote:

Originally Posted by Boofo
Nice, Gary, but I got even lazier and put it in a special js menu for mystuff on the foumhome. ;)

What would the command line be for adding a template?

Wow pure laziness there :D

Also,
Code:

template.php?$session[sessionurl]group=&amp;do=add&amp;dostyleid=1
for adding new template to styleid 1 :)

Boofo 01-07-2004 01:44 PM

Would that change all the style's templates then (when it is 1)?

BYW: If you do the edit template code like you have it, it comes up the same way as View All does, so you can combine the 2 and save some work. ;)

Gary King 01-08-2004 11:16 AM

Quote:

Originally Posted by Boofo
Would that change all the style's templates then (when it is 1)?

BYW: If you do the edit template code like you have it, it comes up the same way as View All does, so you can combine the 2 and save some work. ;)

True :)

KuraFire 01-08-2004 12:03 PM

Nice idea, but hopefully will no longer be necessary with the HTL...

Good idea though :):up:

Boofo 01-08-2004 12:20 PM

Quote:

Originally Posted by KuraFire
Nice idea, but hopefully will no longer be necessary with the HTL...

Good idea though :):up:

HTL?

KuraFire 01-08-2004 01:03 PM

Quote:

Originally Posted by Boofo
HTL?

HTL: Hack Tracking Log

Boofo 01-08-2004 01:05 PM

Well, where is it? ;)

KuraFire 01-08-2004 02:18 PM

click the link in my sig, read the thread to the end :p

Boofo 01-08-2004 02:35 PM

I already read it, sir.;)

Those are just words, I want to see a little action coming my way, Mister! :pirate: :lick:

KuraFire 01-08-2004 03:04 PM

Yehwell, you'll have to be patient just like everyone else :p

Mike Gaidin 01-11-2004 03:44 PM

Lazy rules!

/me clicks install.

gmarik 01-17-2004 07:48 AM

Is it good, guys?

SaN-DeeP 06-05-2004 08:25 AM

is there a way to add multiple phrases from 1 place :)

Sandy...


All times are GMT. The time now is 04:49 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.01188 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete