vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Plugin Manager - Reloaded (https://vborg.vbsupport.ru/showthread.php?t=97278)

uae 10-01-2005 04:38 PM

Clicked Hack Of The Month ;)

Thanks for sharing :)

Xplorer4x4 10-01-2005 04:41 PM

When i click Add New Plug In, i get this error.

Quote:

Fatal error: Cannot redeclare plugin_edit_handler() (previously declared in /forums/admincp/global.php(194) : eval()'d code:23) in /public_html/forums/admincp/global.php(194) : eval()'d code on line 59
Other then that it works fine so far.

Revan 10-01-2005 05:31 PM

Works for me, I just tested it on Gold version. Did you try to overwrite Kirby's version with this or something?
Either ways, you can try this, though: Open up the "Plugin System Adjustments" plugin, and change it to this:
PHP Code:

if (preg_match('/plugin\.php$/'$_SERVER['PHP_SELF']))
{
    if (!
$_REQUEST['do'] OR $_REQUEST['do'] == 'modify' OR $_REQUEST['do'] == 'product')
    {
        
exec_header_redirect('advplugins.php');
    }
    if (
$_REQUEST['do'] == 'updateactive')
    {
        function 
plugin_updateactive_handler()
        {
            
exec_header_redirect('advplugins.php');
        }
        
ob_start('plugin_updateactive_handler');
    }
    if (
$_REQUEST['do'] == 'edit' OR $_REQUEST['do'] == 'add')
    {
        if (!
function_exists('plugin_edit_handler'))
        {
            function 
plugin_edit_handler($output)
            {
                global 
$vbphrase$vbulletin;
    
                
$output str_replace("<input type=\"reset\"""<input type=\"submit\" class=\"button\" tabindex=\"1\" name=\"return\" value=\"$vbphrase[save] &amp; $vbphrase[reload]\" accesskey=\"e\" />\n<input type=\"reset\""$output);
                return 
$output;
            }
        }
        
ob_start('plugin_edit_handler');
        
$vbulletin->nozip true;
    }
    if (
$_REQUEST['do'] == 'update' AND $_REQUEST['return'])
    {
        function 
plugin_update_handler($output)
        {
            global 
$_REQUEST;
            return 
str_replace('plugin.php''plugin.php?do=edit&pluginid=' $_REQUEST[pluginid], $output);
        }
        
$vbulletin->nozip true;
        
ob_start('plugin_update_handler');
    }


See if that makes it go away :)

@others: Thanks for the nice comments, makes it all worth it :)

@Bad Bunny: I think your point was just proved ;)

Paul M 10-01-2005 06:08 PM

Very nice :)

A couple of points I notice instantly when using it ;

1. I don't like the blank line between each product.

2. I expect double clicking a product to expand/collapse it, not edit it (as per templates).

Revan 10-01-2005 06:29 PM

1. What blank line?
2. I thought of this too, but then again the templates don't allow you to edit Template Groups. It just takes some getting used to, but I would rather want to be consistent (double click = edit) than follow the Template Manager slavically.

dookie 10-01-2005 06:31 PM

fantastic hack :)

Paul M 10-01-2005 07:02 PM

Quote:

Originally Posted by Revan
1. What blank line?

I have a blank line between each product, screenshot attached.

Kirk Y 10-01-2005 07:04 PM

Quote:

Originally Posted by Paul M
Very nice :)

A couple of points I notice instantly when using it ;

1. I don't like the blank line between each product.

2. I expect double clicking a product to expand/collapse it, not edit it (as per templates).

1. See Attached (I'd like to get rid of this as well.)
2. I agree, could you provide the code to fix this, for those people that'd like to expand the Group Listing, instead of editing the Install/Uninstall code?

Revan 10-01-2005 08:56 PM

1. Figures this being Internet Explorer acting homosexual as usual...
Ill fix this up right now.

Actually, I can't fix it completely. It is just the way IE parses code. If you expand one template group in the template manager, you'll see that blank line again. At least I do, using IE7.
That being said, I can probably make it so that the number of blank lines are reduced.

Kirk Y 10-01-2005 09:10 PM

Then why aren't there any blank lines in the Styles Manager?


All times are GMT. The time now is 02:43 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.01171 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete