Log in

View Full Version : Adding Edit Templates Shortcut to Left Menu in AdminCP


SaN-DeeP
06-16-2004, 12:46 AM
How this can be done.
Its just a waste of time maximum no. of times to goto Style manager select from list menu edit templates and then it appears
Is there a simpe way to add a shortcut for same directly on left menu ?

I am just using the default vb3 style.
i am sure, this lil trick will help lots of users, saving ample of time :)

Like I have Add New Phrase on left menu @ the moment under Phrase Manager Group.
i am sure i am not asking about modiying the code.
i just want to display Edit Templates on my left menu
@ the moment i have to do 3 clicks everytime to get that. and it is used very frequently by me.

adopted from here -> http://www.vbulletin.com/forum/showthread.php?t=107245

thnx.
Sandy...

EvilLS1
06-16-2004, 01:23 AM
Yeah that is handy. I have it set up that way in my admincp. :) It does require a single file edit.

In admincp/index.php find:

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


Below it add:

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


In the code above where it says &expandset=3 you'll need to change that number to the template set # you want to edit by default. Also, I think "edittplates" is a standard phrase but I can't remember.. So you might have to add that phrase.

Dewayne

SaN-DeeP
06-17-2004, 10:22 PM
Yeah that is handy. I have it set up that way in my admincp. :) It does require a single file edit.

In admincp/index.php find:

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


Below it add:

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


In the code above where it says &expandset=3 you'll need to change that number to the template set # you want to edit by default. Also, I think "edittplates" is a standard phrase but I can't remember.. So you might have to add that phrase.

Dewayne
hi thnx there,.
it works fine. ;)

here is my code:
construct_nav_option($vbphrase['edit_templates'], 'template.php?s=&do=modify&expandset=2&group=all', '<br />');


but the problem is,
check the attachment.

the words Edit Template dont appear in my admincp
this code comes in handy :)

Thnx.
Sandy...

EvilLS1
06-17-2004, 10:26 PM
Sandy,
You'll need to add a new phrase called "edit_templates" and it will show up. ;)

Admin CP >> Languages & Phrases >> Add new phrase:

varname: edit_templates
Text: Edit Templates

SaN-DeeP
06-25-2004, 01:15 AM
Sandy,
You'll need to add a new phrase called "edit_templates" and it will show up. ;)

Admin CP >> Languages & Phrases >> Add new phrase:

varname: edit_templates
Text: Edit Templates
wonderful m8 ;)

now clicking ok left menu directly opens those templates on right ^_^

i saved 3 clicks everytime i have 2 go there

Thnx.
Sandy...

SaN-DeeP
07-10-2004, 02:25 AM
Sandy,
You'll need to add a new phrase called "edit_templates" and it will show up. ;)

Admin CP >> Languages & Phrases >> Add new phrase:

varname: edit_templates
Text: Edit Templates
hi it aint working in vb 3.0.3

all the settings are same, but not sure why is it not working.

Rabbitoh Warren
11-12-2004, 02:22 PM
Has anyone got a solution for this problem Sandeep described in vB 3.0.3?