View Full Version : Administrative and Maintenance Tools - Advanced Plugin Manager - Reloaded
Revan
06-14-2006, 10:00 PM
Advanced Plugin Manager - Reloaded v2.6
The original Advanced Plugin Manager was written by KirbyDE (found here (https://vborg.vbsupport.ru/showthread.php?t=95738)). He expressed that this was not a release he intended to make into a full-fledged mod, and it also contained some bugs.
When I first saw the thread over at vB.com posted by Live Wire, he had photoshopped the Template Manager to indicate how Products and Plugins could work with this interface. I quite liked the idea, so I decided to make it so.
A week and one permission from Kirby later, I can present to you this Extension.
Features:
Mimicks the Template Manager in pretty much every sense
"Flag" Plugins for export/deletion
Remembers the expanded products indefinetely
Remembers the "flagged" plugins indefinetely
Automatically de-flags plugins when they have been exported/deleted.
Plugins that are subject to a disabled Product are marked as disabled themselves at runtime. Their TRUE state (as stored in the database) remains untouched.
Mass deletion of "flagged" plugins
Mass export of "flagged" plugins
Working "Save & Reload" button (Credits to Kirby for fixing it)
Shortcut to "Add / Import Product"
Fully phrased
NO Code Modifications needed!Note:
Currently this does not support the upgrade check function in vB.
This will be added soon.
Install instructions:
Click install (you want your precious support, don't you? ;)).
Upload the files.
Import the Product XML file through your ACP.
Enjoy.Upgrade instructions:
Upload all files again.
Import new product XML.
Enjoy the improvements.
El-Gazaly
06-15-2006, 05:51 PM
thnks for it
installed
Snake
06-15-2006, 06:19 PM
Thanks man!
Barakat
06-15-2006, 09:37 PM
installed and works fine after i fixed that
Invalid SQL:
ALTER TABLE `plugin` ADD `flag` TINYINT( 1 ) UNSIGNED DEFAULT '0' NOT NULL;
MySQL Error : Duplicate column name 'flag'
Error Number : 1060
Date : Friday, June 16th 2006 @ 02:33:26 AM
Script : http://www.********/admincp/plugin.php?do=productimport
Referrer : http://www.**********/admincp/plugin.php?do=productadd
IP Address : 89.138.2.237
Username : *******
Classname : vB_Database
Revan
06-16-2006, 06:06 PM
Security issue patched thanks to Alan @ CIT.
An admin with access to plugins and knowledge of the code in advplugins.php could run a malicious URL and cause severe harm to your database.
To update, re-upload admincp/advplugins.php.
eXaulz
06-18-2006, 09:00 PM
It would be pretty nice if we could flag multiple plugins at once.
Terminatoronly
07-26-2006, 12:58 PM
thanks this hack is good and i want to tell you that i have tried it in vb 3.6 rc2 and it works :D
Mudvayne
07-29-2006, 07:32 PM
Installed.. Clicked install n workin on RC3 :)..
El_Muerte
08-06-2006, 07:05 PM
only thing missing is the version check functionality
upsetter
08-15-2006, 08:43 AM
installed in 3.6.0 works beutifuly... awsome hack... thanks man!... :)
Valter
08-24-2006, 12:28 AM
only thing missing is the version check functionality
Looks preety nice but I also miss this function.
https://vborg.vbsupport.ru/showthread.php?t=124679
Lionel
09-25-2006, 03:57 AM
vey nicely done. Now what we need is a hack to sort the installed plugins by plugin location
TheFrienzNet
01-13-2007, 02:43 PM
Thanks, I love it.
stwilson
01-13-2007, 04:28 PM
Installed on 3.6.4 and working great!!! Thank you!
ST
beduino
05-10-2007, 11:02 AM
Tks Revan!
This feature
Currently this does not support the upgrade check function in vB.
really will be useful too
Excellent work.
All the best
Beduino
Mrdby
05-12-2007, 12:59 PM
3.6.6?
wolfe
05-14-2007, 08:53 AM
thx m8 installed just what i needed stops we scrolling for miles down the page :P
Mudvayne
05-16-2007, 06:16 AM
There is an URL issue with 3.6.6/3.6.7 & this hack. After disabling or enabling any hack it doesn't redirect automatically. Here is the URL format.
forum/admincp/index.php?loc=plugin.php%3Fdo%3Dproduct
FiRe_MaStER
05-16-2007, 06:38 AM
excellent work installed.
reismarktq2
05-28-2007, 01:27 AM
OK, time for somebody to be picky...
I have a number of plug-ins on my vBulletin that aren't associated with a particular product. The 3.5 version of this hack listed those plug-ins at the end after all of the products. This version of the hack lists those plug-ins first, before the products. I prefer it the way it used to be. How would you change the hack to do that?
evesve
09-08-2007, 11:42 AM
Hi!
I get this everytime I try to do something...:
Fatal error: Cannot redeclare plugin_edit_handler() (previously declared in /hsphere/local/home/xxxxx/xxxxxxx.se/vbforum/admincp/global.php(212) : eval()'d code:17) in /hsphere/local/home/xxxxx/xxxxxxx.se/vbforum/admincp/plugin.php on line 65
COBRAws
11-09-2007, 03:30 AM
Currently this does not support the upgrade check function in vB.
This will be added soon.
Would be great hehe
This should be a MOTM!
AWJunkies
11-25-2007, 11:07 PM
Hi!
I get this everytime I try to do something...:
Ok I figured it out, the function: plugin_edit_handler()
Is now a global so his code in the xml (product file becomes redundant) and causing the error. So you need to remove this code from the product xml file (product-adv_plugin_mngr.xml):
<plugins>
<plugin active="1" executionorder="5">
<title>Plugin System Adjustments</title>
<hookname>admin_global</hookname>
<phpcode><![CDATA[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')
{
if (!function_exists('plugin_updateactive_handler'))
{
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] & $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'])
{
if (!function_exists('plugin_update_handler'))
{
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');
}
}]]></phpcode>
</plugin>
Or if you already have it installed you can delete the plugin:
System Adjustments admin_global Advanced Plugin Manager - Reloaded
or
/*
*/
bracket all the data within the plugin
I have checked all functionality and this to work perfect. 3.6.8 P2
evesve
11-26-2007, 02:33 PM
Ok I figured it out, the function: plugin_edit_handler()
Is now a global so his code in the xml (product file becomes redundant) and causing the error. So you need to remove this code from the product xml file (product-adv_plugin_mngr.xml):
<plugins>
<plugin active="1" executionorder="5">
<title>Plugin System Adjustments</title>
<hookname>admin_global</hookname>
<phpcode><![CDATA[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')
{
if (!function_exists('plugin_updateactive_handler'))
{
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] & $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'])
{
if (!function_exists('plugin_update_handler'))
{
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');
}
}]]></phpcode>
</plugin>
Or if you already have it installed you can delete the plugin:
System Adjustments admin_global Advanced Plugin Manager - Reloaded
or
/*
*/
bracket all the data within the plugin
I have checked all functionality and this to work perfect. 3.6.8 P2
Thanks!
I uninstalled, changed the product xml and installed again.
But I have another error after the normal product manager.
SELECT phrase.*, language.title
FROM vb3_phrase AS phrase
LEFT JOIN vb3_language AS language USING(languageid)
WHERE product = 'adv_plugin_mngr'
ORDER BY languageid DESC, phrasetypeid DESC;
MySQL Error : Unknown column 'phrasetypeid' in 'order clause'
Error Number : 1054
Date : Monday, November 26th 2007 @ 05:25:34 PM
Script : http://xxxxx.xx/vbforum/admincp/product_detail.php?do=managedetails&productid=adv_plugin_mngr&s=
Referrer : http://xxxxx.xx/vbforum/admincp/product_detail.php
I am not sure that it is an error from this mod, but...
soulface
11-28-2007, 12:18 PM
nice. just installed and its working fine without any problem/error. But 2 things missing though
1. ability to enable/disable multiple plug ins at once
2. version checking.
with this 2 options, it'd be a perfect plug ins manager. I think vB team should adapt this as default.
COBRAws
01-14-2009, 03:33 PM
Tested and working on 3.8.0 GOLD. Would be great having that version checking, or some kind of "version status" button, that when clicking on it, shows which hacks installed on the board, are updated here at vb.org.
Cya
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.