Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2004, 12:46 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
Reply With Quote
  #2  
Old 06-16-2004, 01:23 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 06-17-2004, 10:22 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Attached Images
File Type: jpg Image1.jpg (7.2 KB, 0 views)
Reply With Quote
  #4  
Old 06-17-2004, 10:26 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 06-25-2004, 01:15 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 07-10-2004, 02:25 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-12-2004, 02:22 PM
Rabbitoh Warren's Avatar
Rabbitoh Warren Rabbitoh Warren is offline
 
Join Date: Sep 2003
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone got a solution for this problem Sandeep described in vB 3.0.3?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:46 AM.


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.05620 seconds
  • Memory Usage 2,248KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete