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)
-   -   Add New Phrase in one click! (https://vborg.vbsupport.ru/showthread.php?t=64370)

dstruct2k 04-24-2004 09:00 PM

Add New Phrase in one click!
 
What this hack does:
Allows you to add a new phrase from the sidebar of the AdminCP in one click, instead of waiting for the Phrase Manager to load. :)

IN admincp/index.php:
Find:
Code:

construct_nav_option($vbphrase['phrase_manager'], 'phrase.php?do=modify&phrasetypeid=1', '<br />');
Add After:
Code:

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

Now open the Phrase Manager and click "Add Phrase" (you'll never have to do this again! :D)

Add the phrase: add_new_phrase
Type: Control Panel Home Pages
Content: Add New Phrase


You're done! Save the phrase and upload admincp/index.php, and enjoy my first released mini-hack! :D

(Credit goes to Gary W for giving me the idea for this one. :))

If you install this hack, please click, lick, smack, press, bang, hit, or smash the install button! :D Thanks!

FleaBag 04-25-2004 07:31 PM

Nice little handy addition. Good work. :)

Floris 04-25-2004 07:48 PM

Quote:

Originally Posted by FleaBag
Nice little handy addition. Good work. :)

Hey, vbhosting works on 3.0.1 ?

dstruct2k 04-25-2004 08:36 PM

Quote:

Originally Posted by floris
Hey, vbhosting works on 3.0.1 ?

I had no trouble installing it. :)

Now all I need to do is add a link to vbhosting.php somewhere on my site so people can actually request hosting.

dstruct2k 04-25-2004 08:36 PM

Quote:

Originally Posted by FleaBag
Nice little handy addition. Good work. :)

Thanks, it's not my first hack, but it is the first one I've released. :D

Sketch 04-26-2004 08:49 AM

You should HTL it. ;)

dstruct2k 04-26-2004 09:21 PM

It's way too simple to bother HTL'ing. ;)

1 code change (which HTL would tell you to do on your own anyway) and 1 phrase. Not worth it. :)


All times are GMT. The time now is 06:46 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.01597 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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