Log in

View Full Version : Add New Phrase in one click!


dstruct2k
04-24-2004, 10:00 PM
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:
construct_nav_option($vbphrase['phrase_manager'], 'phrase.php?do=modify&phrasetypeid=1', '<br />');
Add After:
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=64370)! :D Thanks!

FleaBag
04-25-2004, 08:31 PM
Nice little handy addition. Good work. :)

Floris
04-25-2004, 08:48 PM
Nice little handy addition. Good work. :)
Hey, vbhosting works on 3.0.1 ?

dstruct2k
04-25-2004, 09:36 PM
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, 09:36 PM
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, 09:49 AM
You should HTL (https://vborg.vbsupport.ru/showthread.php?t=60735) it. ;)

dstruct2k
04-26-2004, 10: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. :)