Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Save & Reload button when editing plugins Details »»
Save & Reload button when editing plugins
Version: 1.0.0, by Analogpoint Analogpoint is offline
Developer Last Online: Dec 2007 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.8 Rating:
Released: 10-02-2007 Last Update: 10-02-2007 Installs: 22
Uses Plugins
 
No support by the author.

This is a 5 minute modification to the admin cp that adds a Save & Reload button when you're editing a plugin. If you develop plugins/products this can save you a lot of time. I threw this together for my own use, since I've been creating some plugins and products lately. If you find it useful, mark it as installed!

Hopefully this will be obsolete in the next release of vB. I also hope that the devs put more hooks in the ACP to make mods like this easier.

To install, just import the product XML file.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-03-2007, 06:51 PM
DJ XtAzY DJ XtAzY is offline
 
Join Date: Feb 2005
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful, should be default in vb
Reply With Quote
  #3  
Old 10-03-2007, 07:07 PM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh this will help.. I always had to go back and forth. Thanks
Reply With Quote
  #4  
Old 10-04-2007, 04:34 AM
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was just thinking today this would be nice! You read my mind!
Installed!
Reply With Quote
  #5  
Old 10-04-2007, 01:00 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks - very helpful.
Reply With Quote
  #6  
Old 10-10-2007, 03:16 PM
Alphawolf83's Avatar
Alphawolf83 Alphawolf83 is offline
 
Join Date: Mar 2005
Location: Germany
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dude, thanks so much for that tiny helper! I've been wondering why this hasnt found its way into vb yet.

Installed and nominated for MOTM. Yeah, seriously.
Reply With Quote
  #7  
Old 06-14-2008, 09:15 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with 3.7.1 PL1.
Reply With Quote
  #8  
Old 07-29-2008, 09:11 PM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has stopped working as of latest vBulletin
Reply With Quote
  #9  
Old 08-04-2008, 02:29 AM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a million!
Reply With Quote
  #10  
Old 08-10-2008, 12:24 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IS there any chance that a setting could be added so that the resize window setting can be defined. I tried to look at the code a little but I have to work this weekend and it may take me a while to work through this.

I know the HTML code that does the resizing is in here:

PHP Code:
<tr valign="top">
    <
td class="alt1">Plugin PHP Code <dfn>Use this field to enter the PHP code that you would like to be run.</dfn><p><input type="button" unselectable="on" value="Large Edit Box" class="button" style="font-weight:normal" onclick="window.open('textarea.php?dir=ltr&name=phpcode','textpopup','resizable=yes,width=' + (screen.width - (screen.width/10)) + ',height=600');" /></p></td>
    <
td class="alt1"><div id="ctrl_phpcode"><textarea name="phpcode" id="ta_phpcode_5" class="code" rows="10" cols="45" wrap="virtual" dir="ltr" tabindex="1" title="name=&quot;phpcode&quot;">if ($vbulletin-&gt;options['psar_enable'])
{
    function 
psar_add_button()
    {
        global 
$vbulletin$vbphrase$psar_started;
        if (
$psar_started)
        {
            
$contents ob_get_clean();
            
$find '&lt;input type=&quot;reset&quot;';
            
$button '&lt;input class=&quot;button&quot; tabindex=&quot;1&quot; name=&quot;return&quot; value=&quot;  '.$vbphrase['psar_save_and_reload'].'  &quot; accesskey=&quot;s&quot; type=&quot;submit&quot;&gt;';
            echo 
preg_replace(&quot;/$find/&quot;,  ' ' $button ' ' $find$contents);
        }
    }

    function 
psar_return_to_plugin()
    {
        global 
$vbulletin$psar_redirect_started;
        if (
$psar_redirect_started)
        {
            
$pluginid intval($vbulletin-&gt;GPC['pluginid']);
            
$contents ob_get_clean();
            
$contents str_replace('&quot;plugin.php?''&quot;plugin.php?do=edit&amp;pluginid='.$pluginid.'&amp;'$contents);
            
$contents str_replace('&quot;plugin.php&quot;''&quot;plugin.php?do=edit&amp;pluginid='.$pluginid.'&quot;'$contents);
            echo 
$contents;
        }
        
    }

    
psar_add_button();
    
psar_return_to_plugin();
}</
textarea><div class="smallfont"><a href="#" onclick="return resize_textarea(1, 'ta_phpcode_5')">Increase Size</a> <a href="#" onclick="return resize_textarea(-1, 'ta_phpcode_5')">Decrease Size</a></div></div></td>
</
tr
I have not found the function for the "resize_textarea" to see if we could use a value larger then "1" for example "7" that would allow the editor window to open 7-steps larger. If that were the case, then perhaps the save and reload could have a configuration setting so the window is always saved to some desired width.

Just a suggestion and I may try to figure it out although I rarely make code changes in the vBEditor anyways (I like simple old TextPad).
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 07:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04968 seconds
  • Memory Usage 2,313KB
  • Queries Executed 23 (?)
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)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete