PDA

View Full Version : Advanced Plugin Manager - Reloaded


Revan
09-30-2005, 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:
This Extension will require page reloads for pretty much all its actions, as the Template Manager does. If you do not like this, please use Kirby's version.
Kirby does in no way support this version, nor do I support his.
Important! You need to uninstall Kirby's version before installing mine, should you choose my version.

Screenshots attached in 2nd post.

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.

Revan
10-01-2005, 09:42 AM
Screenshot gates hath been opened!

Jedi Blaze
10-01-2005, 10:45 AM
....I love you. No seriously, awesome hack man. -clicks install-

Dan
10-01-2005, 11:40 AM
Awsomeness :D

nexialys
10-01-2005, 12:15 PM
i find this very interesting, but wouldn't it be more efficient to simply create a complete new plugin system, instead of replacing some functions by others ?!... i don't like to add these replacements in "admin_global" ... even if we don't have to edit the files...

Revan
10-01-2005, 12:58 PM
The main reason is that the more advanced functions, like Delete Product, contain much code beyond executing delete_product(). As such, any changes in the original Jelsoft code would force me to update this hack with the new code. And in every new version, I would have to cross-check the code.
Until Jelsoft puts all the advanced functions into one big function (like delete_post() etc) and makes it easier for developers to execute all neccessary code elsewhere, this is how it must remain.

Oblivion Knight
10-01-2005, 01:38 PM
* Oblivion Knight bows down to you.
This is the way that is should have always been. Jelsoft take note! ;)

Zachariah
10-01-2005, 01:42 PM
Thank you Sir.

Boofo
10-01-2005, 01:43 PM
I have to admit, you pulled it off. Must have been the "I'll believe it when I see it", huh? ;)

Good job! ;)

Bad Bunny
10-01-2005, 01:56 PM
This looks very nice. I think I'll wait a little bit on it though. See if anyone has any trouble. I still need to update to gold anyway. *holds head at the thought of the templates*

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.

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:
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
1. What blank line?I have a blank line between each product, screenshot attached.

Kirk Y
10-01-2005, 07:04 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).

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?

Paul M
10-01-2005, 09:13 PM
Then why aren't there any blank lines in the Styles Manager?Exactly what I was going to ask. The styles manager works as expected. :)

Revan
10-01-2005, 09:22 PM
Then why aren't there any blank lines in the Styles Manager?*points to the attachment*
You were saying?

Kirk Y
10-01-2005, 09:27 PM
I thought you were talking about the Style Manager having all the blanks... I can live with a blank after an expanded group, that looks good as it seperates it from the next one.

Revan
10-01-2005, 09:31 PM
Um you might wanna ahve a look at how it looks now, because it doesnt have a space where you think it does.
Its currently:
Product
*space*
[indent and then its plugins]

Andreas
10-01-2005, 09:33 PM
This is the way that is should have always been.
Definitly not - in my opinion.
I really, really dislike the Style Manager.
It's visual appearance is good, but for every action it RELOADS.
And it doesn't save expanded state *big tumbs down*

Kirk Y
10-01-2005, 09:37 PM
It saves the expanded state of whichever group the template you edited was in.

Um you might wanna ahve a look at how it looks now, because it doesnt have a space where you think it does.
Its currently:
Product
*space*[indent and then its plugins]

Huh? Did you update or... huh?

Edit: Ahh... okay I see what you're talking about. But the carraige return between each product is what needs to be removed...

Andreas
10-01-2005, 09:38 PM
It saves the expanded state of whichever group the template you edited was in.

Click somewhere else in ACP or log out and in again ... does it save state?

Kirk Y
10-01-2005, 09:40 PM
Ahh... this is true. I thought you meant while you're still in the Style Manager.

Andreas
10-01-2005, 09:44 PM
No.
It is gooddamn annoying when you are working on a Hack, edit a Template - then change some usergroup perm (or add a setting or whatever), you come back and the freaking style-manager forgot which template you where working on and you have to open it again ... and again and again and ... WAAAH!
How I hate this :(

Revan
10-01-2005, 09:44 PM
Edit: Ahh... okay I see what you're talking about. But the carraige return between each product is what needs to be removed...Well when you don't have products expanded, theres no more space.
And just for the record, its not a carriage return per se. It is IE parsing a <select> in such a way that things that do not have a <optgroup> automatically gets space seperated from those that do. I cant speak for Opera but Firefox doesn't have this behaviour.
Click somewhere else in ACP or log out and in again ... does it save state?No, but it takes maximum 1 page reload to re-claim this state.
I could always just make it a cookie setting...

Andreas
10-01-2005, 09:46 PM
If you can make it so it always remembers the last expanded product and selected plugin i'll love this Hack.
(Otherwise I'll hate it ;))

Kirk Y
10-01-2005, 09:52 PM
Well when you don't have products expanded, theres no more space.
And just for the record, its not a carriage return per se. It is IE parsing a <select> in such a way that things that do not have a <optgroup> automatically gets space seperated from those that do. I cant speak for Opera but Firefox doesn't have this behaviour.

In my original screenshot (and Paul's for that matter) there weren't any products expanded, yet those spaces are still there...

Revan
10-01-2005, 10:05 PM
Not after you upload the new admincp file, they arent.
If you can make it so it always remembers the last expanded product and selected plugin i'll love this Hack.
(Otherwise I'll hate it ;))Last selected Plugin too? Demanding bastard :p

Guest190829
10-01-2005, 10:11 PM
mhm, this looks delicious. I Will test it out. :)

* Guest190829 clicks install.

Kirk Y
10-01-2005, 10:11 PM
Not after you upload the new admincp file, they arent.

Thanks, looks great now. Any chance of telling us how to make it so double-clicking a product expands it, instead of editing it? :rolleyes:

Mr Chad
10-01-2005, 10:46 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.

Very nice!

Revan
10-01-2005, 11:01 PM
Thanks, looks great now. Any chance of telling us how to make it so double-clicking a product expands it, instead of editing it? :rolleyes:Ugh, hassle++ :p
Hm I have some stuff not related to this I gotta take care of first, I just finished the cookie saving stuff.
Ill have this done soonish.

Edit: Done. Im not bothering with that last selected plugin thingy, you can move your mouse and click the button once, Kirby dont be a lazy sod XD

Paul M
10-02-2005, 10:14 AM
Update fails;

Database error in vBulletin 3.5.0:

Invalid SQL:
ALTER TABLE `plugin` ADD `flag` TINYINT( 1 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error : Duplicate column name 'flag'
Error Number : 1060
Date : Sunday, October 2nd 2005 @ 12:12:40 PM
Script : http://www.xxxxx.xxxx/board/admincp/plugin.php
Referrer : http://www.xxxx.xxxx/board/admincp/plugin.php?do=productadd
IP Address : xx.xx.xx.xx
Username : Paul M
Classname : vb_database

Revan
10-02-2005, 10:51 AM
XML reimport not really needed, I just put it there so the Product version number can be updated :p

Xplorer4x4
10-02-2005, 11:02 AM
XML reimport not really needed, I just put it there so the Product version number can be updated :p

Now you tell us! :p Just an FYI if any one really cares, you can disable this plug in, upload the new XML, and the re-enable the product.

@Revan, I actually thought I would like Kirby's better but you got me hooked! Thanks for the great plug-in.

Boofo
10-02-2005, 11:04 AM
Edit: Done. Im not bothering with that last selected plugin thingy, you can move your mouse and click the button once, Kirby dont be a lazy sod XD

Ahhh, so what Kirby asked you aren't able to do? hmmmm .....

Revan
10-02-2005, 11:08 AM
Now you tell us! :p Just an FYI if any one really cares, you can disable this plug in, upload the new XML, and the re-enable the product.

@Revan, I actually thought I would like Kirby's better but you got me hooked! Thanks for the great plug-in.For that to work you must have ment "uninstall then reimport" ;)

@Boofo: Its not that, its just that I really cant be arsed with setting/editing cookies on the fly and sort out inconsistencies with expanded products and selected plugins, just so someone can avoid clicking the mouse once more :p

Boofo
10-02-2005, 11:10 AM
For that to work you must have ment "uninstall then reimport" ;)

@Boofo: Its not that, its just that I really cant be arsed with setting/editing cookies on the fly and sort out inconsistencies with expanded products and selected plugins, just so someone can avoid clicking the mouse once more :p

You can't be arsed? Sorry to hear that. ;)

Paul M
10-02-2005, 12:02 PM
XML reimport not really needed, I just put it there so the Product version number can be updated :pAs in "couldn't be arsed" to test it :p

Looking much better now anyway. :)

Revan
10-02-2005, 12:05 PM
As in "couldn't be arsed" to test it :pBusted! :ninja:

Kirk Y
10-02-2005, 02:30 PM
Ugh, hassle++ :p
Hm I have some stuff not related to this I gotta take care of first, I just finished the cookie saving stuff.
Ill have this done soonish.

I know... but you can do it, I have faith! .... any luck? :squareeyed:

Revan
10-02-2005, 02:51 PM
For the love of all that is holy, check your email! :p

Antivirus
10-02-2005, 05:26 PM
For the love of all that is holy, check your email! :p

Great work Revan, gonna install this tonight i think. :)

Kirk Y
10-02-2005, 06:27 PM
For the love of all that is holy, check your email! :p

Yay!

* acidburn0520 jumps for joy and runs to hug Revan!

Revan
10-02-2005, 08:09 PM
You better not be a guy.... :p

Boofo
10-02-2005, 08:25 PM
Well, with an attitude like that, I think I'll stick with the original. Un-installing.

Kirk Y
10-02-2005, 10:36 PM
@Revan: You'll soon find out... ;)

@Boofo: Huh?

Paul M
10-02-2005, 10:39 PM
Well, with an attitude like that, I think I'll stick with the original. Un-installing.are you jokinig, or did we all miss something :confused:

Antivirus
10-03-2005, 01:17 AM
=Installed= works nicely, thanks for sharing Revan.

Revan
10-03-2005, 08:11 AM
@Revan: You'll soon find out... ;)Alrite, but if I sense the presence of penises, Im outta there XD
are you jokinig, or did we all miss something :confused:He's not, he didn't like the manner of which I wrote my update emails.

ManagerJosh
10-03-2005, 09:05 AM
Alrite, but if I sense the presence of penises, Im outta there XD
He's not, he didn't like the manner of which I wrote my update emails.

Brilliant Extension! *installs*

Paul M
10-03-2005, 11:14 AM
He's not, he didn't like the manner of which I wrote my update emails.Oh well, each to their own I suppose.

Xplorer4x4
10-03-2005, 12:28 PM
For some reason Satan's/Chris' latest thread onf forum home hack here:
https://vborg.vbsupport.ru/showthread.php?t=83230
Wil not show up. I tried reinstalling it now I have 2 coppies of the plug in. It procuces two sets of 5 latest threads. I can not edit nor delete them from the plug in screen, and they are not showing up in the product manger. So what should I do?

Xplorer4x4
10-03-2005, 03:39 PM
For that to work you must have ment "uninstall then reimport" ;)

You must not have understood me. :p I did not uninstal. I disabled the product. Then uploaded the XML. ;) No uninstall needed.

However I am SCREWED! Ok I had to disable this in order do delete one of the plug-ins for the latest threads hack. Renabled and was no longer able to edit plug-ins. The main frame on the ACP was showing up white with an error message.

So disiabled the plug-ins for this expecting to revert to the stock product manger as I did before. worked fine. Reinstaled this product(XML and scripts) and still had an error with your plug in manager.

So disabled it, and was unable to acess the product management. So I deleted all 3 plug ins for this. Now I have no way to view my product manager and there is no option to upload a product XML.

I have exited the ACP completley and re-entered to have no luck.

Thanks.

Revan
10-03-2005, 04:16 PM
What was the error you was getting with this product manager?

Kirk Y
10-03-2005, 06:54 PM
Alrite, but if I sense the presence of penises, Im outta there XD
He's not, he didn't like the manner of which I wrote my update emails.

Lol... I thought it was funny... it gave me a laugh anyway. Maybe Boof hasn't got much of a sense of humor?

Boofo
10-04-2005, 12:35 AM
Lol... I thought it was funny... it gave me a laugh anyway. Maybe Boof hasn't got much of a sense of humor?

Maybe Kirk doesn't know the whole story and we should drop it and move on? ;)

Xplorer4x4
10-04-2005, 03:04 AM
Well I can;t tell you that now because I have no way to reporuce it since I can not reinstall any product.

Xplorer4x4
10-04-2005, 03:38 AM
Hmm Ok I decided to install the Plugin System Adjustments plug in manually. No problem doing that. Just coppied and pasted from the XML. Then your product manger displayed. I reuploaded this product. Selected over write. It instaled without any errors.

I enabled the product for this as it was disabled.

When i try to edit a plug in I get this error:

Fatal error: Cannot redeclare plugin_edit_handler() (previously declared in /public_html/forums/admincp/global.php(194) : eval()'d code:23) in /public_html/forums/admincp/global.php(194) : eval()'d code on line 60

Revan
10-04-2005, 07:47 AM
Try to do what is explained in this post (https://vborg.vbsupport.ru/showpost.php?p=783601&postcount=13).
I have no idea what is causing this error, it seems to be appearing totally randomly.
If ONE more person has this error, Im putting that edit into the official XML :P

Xplorer4x4
10-04-2005, 08:18 AM
OK that seems to have worked. I am puzzled as to why it worked previously but after the deletion it did not.

Now just for clarification you did mean "Plugin System Adjustments" that was a product for this and not the one labeled as vBulletin product? I assume you meant the one related to this.

Also I would suggest updating the XML already. Just save you future issues with this.

Thanks
X

Revan
10-04-2005, 08:52 AM
Okay, did it.
Now just for clarification you did mean "Plugin System Adjustments" that was a product for this and not the one labeled as vBulletin product? I assume you meant the one related to this.And now what in the bluest does this mean? XD
Plugin System Adjustments have never been nor should ever be a vBulletin product.

Xplorer4x4
10-04-2005, 09:00 AM
Ok on the Hook Location : admin_global there are 2 plugins for the "Plugin System Adjustments" one of them has the product labeled as vBulletin. While the other has Advanced Plugin Manager in the product column. I am refering to the old plug in manager.

Revan
10-04-2005, 09:01 AM
Then you must delete the vBulletin product based one, because that is what is causing your error.

Xplorer4x4
10-04-2005, 11:26 AM
Ok that was the problem I also had another duplicate plug in that was a vB product that had the same name as your(forgive me I got distracted and forgot which one it was. It was causing two save and reload buttons to apear and causing my error if I used them. I assume these were left over from Kirbys version. For some idiot reason i didn;t use the uninstal feature on his.

Anyways all is working. Thanks you.

Revan
10-04-2005, 01:24 PM
Good to see it all working :)
I would have thought you could simply overwrite Kirby's with this, since I am using the same names and everything... O'wells :)
Ill update the first post with a notice about this.

Xplorer4x4
10-04-2005, 02:57 PM
Well the problem(form what i see) is he uses vBulletin as the product. You use APM. The Plug Ins are named the same, but not the product. ;)

A sugestion, but not a request, might be that if you expand a product, another one will close. Not a big idea, just an idea.

Revan
10-04-2005, 04:34 PM
Im not quite sure I follow you on that one.

Xplorer4x4
10-04-2005, 07:00 PM
lol Ok let me try again. Bassicly I go to the plug in manger(stock one). In the left column which is title, you guys use the same hook location and title of the plug in.

However in the middle column you have your plug-ins labeled as Advanced Plugin Manager. He has his labeled as vBulletin.

Revan
10-04-2005, 07:51 PM
no, I ment that expand product others contract thingy.

csidlernet
10-05-2005, 02:33 AM
thanks.
/me installs.

akanevsky
10-11-2005, 05:50 PM
This if very nice, I'll install it later.
This should be integrated into default vB package...

Andreas
10-11-2005, 05:52 PM
This should be integrated into default vB package...
NOOO!
Please, please not :(

Xplorer4x4
10-11-2005, 05:57 PM
no, I ment that expand product others contract thingy.

OHHH I meant how the template manger works. When you open Postbit Templates it automaticly closses that group if you open FAQ templates.

akanevsky
10-11-2005, 06:12 PM
NOOO!
Please, please not

Did I hear you correctly? Why not? o.O :S

Andreas
10-11-2005, 06:14 PM
Because the Style Manager Interface sucks :D

akanevsky
10-11-2005, 06:38 PM
Well maybe although I don't see why.
I am actually fine wth jel's interface :)

Paul M
10-11-2005, 09:00 PM
Because the Style Manager Interface sucks :DI agree, the concept is nice, but I've disabled it for now because I hate the inteface.

akanevsky
10-11-2005, 09:03 PM
It might have been better if it didn't rely so much on javascript.
And, key colors need to be changed.
I think that if Jelsoft took this into the default package, they could have made it better... Whatever it is, it is handy when products and plugins are together, isn't it?

Andreas
10-11-2005, 09:05 PM
Yes, absolutely.
That's why I originally made such a thing for me ;)
It's just the interface.

Oblivion Knight
10-20-2005, 10:03 PM
Any chance of making this "anchor" a product group after it has been expanded (and possibly edited)? :)

If you have many plugins and products installed, it's rather frustrating to have to continually scroll down the page to access them while working on them..

Oblivion Knight
10-23-2005, 01:45 PM
Another suggestion; hide products with no plugins.! ;)

I've tried doing this myself, but to no avail.

ndahiya
10-25-2005, 12:37 AM
Hi

I had Kirby's version installed, which I removed and installed this version... get this erro when i try to expand "all product groups"


Unable to add cookies, header already sent.
File: /home/xxxxxxx/public_html/forums/includes/adminfunctions.php
Line: 236


have not seen this error with anything else, so not quite sure what is happening.... Anyone else seeing this ??

Antivirus
10-25-2005, 06:05 PM
Error:Unable to add cookies, header already sent.
File: /home/xxxxxxx/public_html/forums/includes/adminfunctions.php
Line: 236

Hmm... i'm not getting that error, expanding and contracting all or individually works fine for myself.

jugo
10-25-2005, 09:44 PM
I had this for a bit and switched to Kirby's....not that it's bad, just that the damn style manager inteface was getting to me.

Xplorer4x4
10-25-2005, 09:49 PM
Any chance of making this "anchor" a product group after it has been expanded (and possibly edited)? :)

If you have many plugins and products installed, it's rather frustrating to have to continually scroll down the page to access them while working on them..

I agree. This is seriously my only complaint with your interphase. Still uses it though. :)

Revan
10-26-2005, 06:11 AM
Any chance of making this "anchor" a product group after it has been expanded (and possibly edited)? :)

If you have many plugins and products installed, it's rather frustrating to have to continually scroll down the page to access them while working on them..I don't really understand what you mean there mate, can you elaborate? :)
Another suggestion; hide products with no plugins.! ;)

I've tried doing this myself, but to no avail.Then how do you suppose we have access to editing those products? Typing the URL manually? ;)
I agree. This is seriously my only complaint with your interphase. Still uses it though. :)I wrote this interface just BECAUSE it is like the Style Manager, because I love it :)

Oblivion Knight
10-26-2005, 07:15 AM
I don't really understand what you mean there mate, can you elaborate? :)Ok, with the style manager if you scroll down and expand a template set, the page reloads and "anchors" the set that you have expanded (see screenshot 1). Similarly, after editing a template the page anchors the template that you have just edited (see screenshot 2).

With the plugin manager, if you do the same and scroll down to expand a product, the page reloads but the product isn't anchored. Instead you have to scroll down again, and the same occurs after editing a plugin (see screenshot 3 and 4).

Is it possible to fix? :)


Then how do you suppose we have access to editing those products? Typing the URL manually? ;)Ah touch?. How about a small line saying "There are no plugins for this product." in italics or something? Just to let the administrator know that everything is working as intended more than anything..

Xplorer4x4
11-05-2005, 10:13 PM
Am I the only one that seems to have problems with plug-ins, not products, showing up in the list after i upload them? I usually end up having to disable this, find the plug in, edit and save, then turn this back on and then I see the plug in.

Keep up the good work Revan.

biggjoe
11-13-2005, 10:13 PM
Revan, very sweet hack! Thanks so much!

Notes:

- Working perfectly with vb 3.5.1!

- I actually installed the [APM] Advanced Product Management 2.0.3 (https://vborg.vbsupport.ru/showthread.php?t=95741) mod first, then used APM to install your hack! They work VERY nice together.

- Also have the following hack installed Quick Import-Add Product (https://vborg.vbsupport.ru/showthread.php?t=99167) and works fine with this one as well!

Thanks again amigo!

J.

Antivirus
11-26-2005, 12:26 AM
Fillip, i have been using the Advanced Plugin Manager - Reloaded for a while now, and it's great. The only suggestion I would make though, is for the new manager to also display the version number for each product.

Mudvayne
12-16-2005, 07:50 AM
Oh man awsum!!! hehe I installed adv plugin system by kier 5 minutes ago then see urs screenshot.. thn I install it oh ya also clicked install..

mkdevo
01-12-2006, 04:01 PM
hi,

i'm getting the following message when trying to expand plugins:

Unable to add cookies, header already sent.
File: /home/www/xxxx/forum/includes/adminfunctions.php
Line: 246

any idea what could be causing that? i disabled it and i'm able to see all plugin options just fine...

Hellcat
01-12-2006, 04:54 PM
OK, now this is JUST PERFECT!

Exactely how I wanted it to have! :)
Just tested it on my local 3.5.3 testinstall, and going to put this into my real board!

Thanks man!

Gray Matter
02-08-2006, 12:47 AM
hi,

i'm getting the following message when trying to expand plugins:

Unable to add cookies, header already sent.
File: /home/www/xxxx/forum/includes/adminfunctions.php
Line: 246

any idea what could be causing that? i disabled it and i'm able to see all plugin options just fine...

I'm getting the same message, so I've had to disable it as well. :ermm:

mkdevo
02-08-2006, 12:19 PM
^^ yeah, sucks because i really miss the clean look..

Logikos
02-12-2006, 05:49 AM
I can't belived I missed this freaking hack. Glad my PhotoChopping came to life.

* Logikos so clicks the install button!

OneShot
02-19-2006, 03:33 PM
Problem : Unable to add cookies, header already sent.
File: /***/forum/includes/adminfunctions.php
Line: 236

mkdevo
02-21-2006, 10:40 AM
Problem : Unable to add cookies, header already sent.
File: /***/forum/includes/adminfunctions.php
Line: 236

yup. scroll up a couple posts and you'll see a couple of us with the same problem. :(

Daniel
02-27-2006, 10:25 PM
When I try to uninstall it I get...
Invalid SQL:
ALTER TABLE `plugin` DROP `flag`;

MySQL Error : Can't DROP 'flag'. Check that column/key exists
Error Number : 1091
Date : Monday, February 27th 2006 @ 04:23:21 PM
Script : http://www.mysite.com/admincp/plugin.php
Referrer : http://www.mysite.com/admincp/plugin.php?do=productdelete&productid=adv_plugin_mngr&s=
IP Address : ip
Username : user
Classname : vb_database

Daniel
03-01-2006, 11:23 PM
please? :)

alluidh
03-03-2006, 05:49 PM
Problem : Unable to add cookies, header already sent.
File: /***/forum/includes/adminfunctions.php
Line: 236

Me too ... no idea at all?

reismarktq2
03-03-2006, 10:14 PM
Problem : Unable to add cookies, header already sent.
File: /***/forum/includes/adminfunctions.php

I am also getting this error message when trying to expand product listings, so I've had to disable it until someone comes up with a fix. (It's unfortunate, because this layout is much better than the default vBulletin one.)

Just for the record, this was on a 3.5.4 board with a number of product installs, but none of which modified source code. (I also had not used Kirby's variant at any time.)

alluidh
03-05-2006, 07:34 AM
This error is the same in a new and fresh installed 3.5.4 board. Nothing to do with other product installed.

Any hint?

reismarktq2
03-10-2006, 10:18 PM
I PM'd Revan since it didn't seem as though he'd seen this issue.

It may be a while before we see anything, but at least he knows about it now.

Logikos
03-20-2006, 07:12 AM
Works perfect for me in 3.5.4.

Revan
03-20-2006, 10:20 AM
I can't figure this out, doesn't happen to me no matter what I do to try to reproduce this.
Sorry ;(

reismarktq2
03-20-2006, 10:36 PM
A couple of thoughts I had, just in case it might help you reproduce the problem:

On my installation, the plug-in that's supposed to strip 'Manage Products' from the Plugin System menu just plain doesn't work. Doesn't work with the product enabled, doesn't work if I refresh the Admin CP, doesn't work if I refresh the Admin CP after CLEARING THE CACHE.

Also, I just remebered: On my site, I'm not using the default setting for my cookie domain (blank). This is because I have vBadvanced running on the core domain and vBulletin installed on a boards sub-domain, and I wanted people to be able to log in from both domains. Would that possibly make a difference? It *does* seem to be a cookie-related issue...

TruthElixirX
03-27-2006, 11:50 PM
I unisntaleld this (misc reasons) then upon trying to reinstall I get this MySQL error:


Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE `vb3_plugin` ADD `flag` TINYINT( 1 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error : Duplicate column name 'flag'
Error Number : 1060
Date : Monday, March 27th 2006 @ 08:49:55 PM
Script : http://www.thechillcenter.com/forums/admincp/plugin.php
Referrer : http://www.thechillcenter.com/forums/admincp/plugin.php?do=productadd
IP Address : 162.40.129.113
Username : Chris
Classname : vb_database

My "manage products" link have disappeared and I can only use single plug-ins. >.< Any idea?

COBRAws
04-21-2006, 03:36 AM
I just upgraded to 3.5.4 and it gives me the "headers already sent" error in both my upgraded forum and my test forum. I thought it was something interacting betweek plugins so i installed a second test board with just this extension, but, it doesnt work either.


is this hack still supported? I cant wait for a fix, because I am not able to find the bug :S



I can't figure this out, doesn't happen to me no matter what I do to try to reproduce this.
Sorry ;(

oh I just read this. well my friend... i dont know where the headers are being called from the advplugins.php file. this is weird lol

its a shame, this is the best hack for administrating hacks as far as I know. Good job by the way!

pranism
04-21-2006, 06:30 PM
Installs, nice add on. Thanks :)

peterska2
04-22-2006, 12:44 PM
nice, much better than the andreas version. My list was getting far too long and was driving me crazy.

The only question is, why did I not discover and install this earlier?

harmor19
04-26-2006, 09:06 PM
Great Product.
Thanks

Hellcat
05-17-2006, 07:35 AM
Hey folks!

I never got the cookie error before, and I used this addon lot's of times already on many vB installations.

Today I catched the error on my dev'n'demo vB.
Since it ALWAYS worked fine before (even the same vB version on the same server) I imagined it had to do something with the vB settings.

OK, so much for the histroy lesson ;)

I don't know the exact cause (yet) but this is what I just found out:

Turn *ON* GZIP compression in the vB options -> and it WORKS!
Turn GZIP off -> You (or at least me) get the cookie error.

If any of you who get that error could confirm this, we finally have at least a way to get it working and a base to find what's causing this :)

COBRAws
05-19-2006, 09:38 AM
Hey folks!

I never got the cookie error before, and I used this addon lot's of times already on many vB installations.

Today I catched the error on my dev'n'demo vB.
Since it ALWAYS worked fine before (even the same vB version on the same server) I imagined it had to do something with the vB settings.

OK, so much for the histroy lesson ;)

I don't know the exact cause (yet) but this is what I just found out:

Turn *ON* GZIP compression in the vB options -> and it WORKS!
Turn GZIP off -> You (or at least me) get the cookie error.

If any of you who get that error could confirm this, we finally have at least a way to get it working and a base to find what's causing this :)
wow, you are right!

This is weird lol, but as you say, at least we have some kind of clue when and when It does not work.

* COBRAws jumps all over the place because he can use the adv. plugin system again =D




not to jellsoft, this should be standard in vb. ;)

reismarktq2
05-20-2006, 12:51 AM
Beautiful. Just beautiful. Hellcat's absolutely right; I can finally turn this on and use it! :)

* reismarktq2 clicks install :D

Maybe now that we know GZIP compression fixes the problem, Revan can figure out what's causing it in the first place!

Hellcat
05-20-2006, 01:13 AM
Yeah, hope so.
I'll also dig some deeper into this once I get some spare time.

This is one of the most helpfull "must have" things I know.
I don't install a single board without it.

Hellcat
06-10-2006, 04:45 AM
Any chance the vb 3.6 features will be implemented? Like product's homepage and the version check?

Revan
06-10-2006, 09:39 AM
Yer I will update this at some point or another but bit busy atm.

Hellcat
06-10-2006, 01:53 PM
Yer I will update this at some point or another but bit busy atm.
Cool!
No hurry, but nice to know that it will be done :)

Revan
06-15-2006, 03:51 PM
Updated.
I fixed the bug with cookies, I forced GZIP on the page.

Also released 3.6 version here (https://vborg.vbsupport.ru/showthread.php?t=118677).

reismarktq2
06-15-2006, 07:08 PM
Thanks for the update.

/me updates

Two questions:

1. What's changed between this and 2.5?

2. I have some plug-ins on my board that aren't associated with a product. In the manager, these plug-ins are listed before the products. I'd like them to be listed AFTER the products. How can I change this?

Revan
06-16-2006, 07:11 AM
1. What's changed between this and 2.5?* Fixed bug in which GZIP disabled would cause errors. I have forcibly enabled GZIP to circumvent the bug.
2. I have some plug-ins on my board that aren't associated with a product. In the manager, these plug-ins are listed before the products. I'd like them to be listed AFTER the products. How can I change this?Take if (!empty($vbplugin))
{
foreach($vbplugin as $plugin)
{
if (empty($plugin['devkey']))
{
$plugin['devkey'] = 'N/A';
}

if ($plugin['active'] == 0)
{
$class = 'col-c';
$value2 = 'disabled';
$value = 'enabled';
}
else
{
$class = 'col-g';
$value2 = 'enabled';
$value = 'enabled';
}

if ($plugin['flag'] == 1)
{
$class = 'col-i';
$flag = 'enabled';
}
else
{
$flag = 'disabled';
}

echo "\t<option class=\"$class\" value=\"~\" product=\"vbulletin\" flag=\"$flag\" i=\"$plugin[executionorder];$plugin[hookname];$plugin[devkey]\" pluginid=\"$plugin[pluginid]\" productactive=\"$value\" pluginactive=\"$value2\"$selected>$plugin[title]</option>\n";
vbflush();
}
}
and place before echo "</select>\n";
*** Untested, but should work. It won't break anything tho (I hope XD) ***

Revan
06-16-2006, 06:09 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.

COBRAws
06-23-2006, 03:22 AM
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.
Works like a charm now! Thank you Fillip

Harley D
10-14-2006, 12:34 AM
all I have to say is... WOW!
and Thank You!