vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adding Edit Templates Shortcut to Left Menu in AdminCP (https://vborg.vbsupport.ru/showthread.php?t=66208)

SaN-DeeP 06-16-2004 12:46 AM

Adding Edit Templates Shortcut to Left Menu in AdminCP
 
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:
Code:

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

                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

1 Attachment(s)
Quote:

Originally Posted by EvilLS1
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:
Code:

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

                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:
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

Quote:

Originally Posted by EvilLS1
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

Quote:

Originally Posted by EvilLS1
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?


All times are GMT. The time now is 01:22 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.01067 seconds
  • Memory Usage 1,731KB
  • 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
  • (5)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