Viper’s Plugins Used

NOTICE:

This plugin has been discontinued. It was last updated over 3 years ago as of the time of this edit (September 15th, 2005) and in that time many other and better plugins have come along, including Lester “GamerZ” Chan’s WP-PluginsUsed. I would recommend using one of those plugins rather than this ancient one.

Description:

I was unhappy with the other “Plugins Used” plugin that was out there (pluginsUsedPlugin) for a number of reasons, mainly that it didn’t output the plugins in alphabetical order as well as I wanted more configuration options. So, I started over and wrote my own plugin.

This plugin allows you to list out all plugins that you have activated as a table or an unordered list. You can toggle displaying the version, author, and plugin description. You can also set custom plugin descriptions via the plugin’s options page.

For an example, click here.

What’s New in v1.1x:

  • Version 1.12 — I was modifying the content of the edit form POST contents and instead of saving the edited string to my own variable like I should have, I had been saving it to the $_POST array which was causing some issues with WordPress. Fixed that in this version.
  • Version 1.11 — error with the quotes in the HTML of the version column header in the table output.
  • Version 1.1 — a few bug fixes here and there, but mostly the addition of an options page where you can set custom plugin descriptions. This came as a result of a request by swordfish on the WordPress support forums.

Usage:

See the readme.txt inside the ZIP for usage instructions. The instructions go into great detail and therefore are rather long, so I’d rather not clutter up this page with them. However, even though they are long, this plugin is not hard to install and use. The instructions just are long as they describe how you can cutomize everything.

Download Latest:

Support / Feature Request Forum:

http://www.viper007bond.com/wordpress-plugins/forums/viewforum.php?id=17

Donate

If you enjoy this plugin, please consider sending a few bucks my way. I’ve spent a lotta time on this plugin and all donated money will be put towards paying off my college loans and such. :)

Option Page Screenshots

Click for a larger version.

Options Page - Listing All Plugins [Thumbnail]

Options Page - Editing Plugin Description [Thumbnail]

  • #1 written by Laundro 
    about 4 years ago

    Easy install! Much better than the old one!

  • #2 written by Viper007Bond 
    about 4 years ago

    Version 1.1 released! :)

  • #3 written by Viper007Bond 
    about 4 years ago

    Messed up using quotes in the header for the “version” column in the table output. Upgrade to v1.11 if you use that column and the table output.

  • #4 written by damselfly 
    about 4 years ago

    Nice plugin, easy install. But it inconsistently broke my site, and I can’t quite figure out why. The site pages themselves displayed happily, and the dashboard displayed happily, but the login screen stopped re-directing to the dashboard and displayed a blank screen. Most odd. Maybe it’s not playing nice with one of my other plugins?

  • #5 written by Viper007Bond 
    about 4 years ago

    Oh, that’s not good. It just did the same to me when I logged out and then back in. I suspect my plugin is messing up the POST from the login form or something.

    I’ll look into it immediately. :)

  • #6 written by Viper007Bond 
    about 4 years ago

    Should all be fixed now. Stupid mistake on my part by editing the $_POST array instead of just saving the edited string to my own variable.

    Please download the new version (v1.12) and double check that I did indeed fix it. :)

  • #7 written by Claire
    about 4 years ago

    Awesome plugin, thanks! I too was not completely happy with the pluginsusedPlugin — yours rocks :)

  • #8 written by Viper007Bond 
    about 4 years ago

    Glad you like it! Nice site too. :)

    However, as a result of seeing my plugin in work on your site, I realized that ksort() (the PHP function that sorts my plugin array) places capitalized items before lowercase items. I’ll work on getting it to sort in a case insensitive format. :)

  • #9 written by damselfly 
    about 4 years ago

    Hey Viper, glad you knew what was going wrong. I thought I’d stuffed up immensely. Have downloaded and installed 1.12 and it all seems to be working happily. Thanks!

  • #10 written by Makki 
    about 4 years ago

    I am really frustrated with this damn thing please someone explain how i make the template and dont refer me to the codexcuz i dont get it.

  • #11 written by Viper007Bond 
    about 4 years ago

    Go to your theme’s folder (/blog/wp-content/themes/fblue/) and make a copy of page.php. Rename it to page-pluginsused.php or something (it doesn’t really matter what).

    Open the copy up and add this to the top:

    < ?php
    /*
    Template Name: Plugins Used
    */
    ?>

    That makes it a custom Page template and will make it show up in the list of Page templates when writing or editing a Page.

    Then just follow the rest of the instructions in the plugin’s readme.

  • #12 written by Makki 
    about 4 years ago

    hey thanks for reply and help Viper works fine now :)

  • #13 written by chrish 
    about 4 years ago

    Hi viper, This is just what I was looking for except… it’s killed my site. All I get now is the following error:

    Parse error: parse error, unexpected $ in /home/chowitco/public_html/qwertyrash/wp-content/plugins/vipers_pluginsused.php on line 238

    Line 238 looks like this

    $currentdescription = ($vipercustominfo[$editplugin]) ? $vipercustominfo[$editplugin] : $viperspluginsused->plugindata[$editplugin]['description'];

    I’ve deleted the plugin for now and my site is working again.

    thanks

  • #14 written by Viper007Bond 
    about 4 years ago

    Odd, that line looks fine to me and it’s the first I’ve heard of this. *shrugs*

  • #15 written by chrish 
    about 4 years ago

    lol. As a sometime programmer I can so relate. Can you explain that line of code, what it’s trying to do, and what the “?” and “:” do

  • #16 written by Viper007Bond 
    about 4 years ago

    It’s a shortcut for this:

    if ($vipercustominfo[$editplugin]) {
    $currentdescription = $vipercustominfo[$editplugin];
    } else {
    $currentdescription = $viperspluginsused->plugindata[$editplugin]['description'];
    }

    What version of PHP are you using? If you’re running a really old version or something, you could try replacing it with the above code, but I HIGHLY doubt it’ll fix it as I’m pretty sure WordPress uses that shortcut too. But, worth a shot. :)

  • #17 written by chrish 
    about 4 years ago

    Thanks. That worked. I know that doesn’t make sense except… are you sure that “?” is right? wouldn’t it be a “:” too?

    My host is running PHP 4.4.1 and MySQL 4.1.13

  • #18 written by Viper007Bond 
    about 4 years ago

    No, the code I had is perfectly valid. I mean, you’re the first one to have any issues with that part of the plugin. You must have a weird PHP configuration or something. Odd.

  • #19 written by kamus 
    about 4 years ago

    I installed this plugin, everything looks perfect but just some warning occured.

    Warning: file(c:\program files\apache group\apache\htdocs\wp//wp-content/plugins/): failed to open stream: Permission denied in c:\program files\apache group\apache\htdocs\wp\wp-content\plugins\vipers_pluginsused.php on line 93

    Warning: implode(): Bad arguments. in c:\program files\apache group\apache\htdocs\wp\wp-content\plugins\vipers_pluginsused.php on line 93

    How can i avoid this?

  • #20 written by Viper007Bond 
    about 4 years ago

    I’ll be releasing a new version soon that should fix that as this new version will use the built in WordPress function that creates the plugins page in the admin area. Hang tight. :)

  • #21 written by Philip 
    about 4 years ago

    ok, i’ve made the copy of the page and it is founf in the theme editr, but where or what is the link to the page ive made? doh i’m so stupid i hate myself, is it
    http://www.philip.hotserv.dk/wp-content/themes/FallingLeaves/pluginsused.php

    cause then i only get: Fatal error: Call to undefined function get_header() in
    /var/www/hotserv.dk/users/philip/wp-content/themes/FallingLeaves/pluginsused.php on line 6

  • #22 written by Viper007Bond 
    about 4 years ago

    No, you need to create a custom Page template and then apply it to a WordPress Page. You don’t access the template directly. ;)

    http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates

  • #23 written by Arno Simon 
    about 4 years ago

    [Comment ID #377 Will Be Quoted Here]

    Hi,

    I got the same error first time I used your plugin. In some cases the $plugin-Array contains an empty [0]-index. so just insert a

    if(isset($plugins[0]) && empty($plugins[0])) { unset($plugins[0]); }

    between

    function viperspluginsused() {
    $plugins = get_option(‘active_plugins’);

    and

    $output = array();

    to throw away these error.

    regards

    Arno

  • #24 written by Viper007Bond 
    about 4 years ago

    Speaking of which, work is continuing on the new version (that uses the WordPress core functions to get the plguin details as well as fixes some sorting issues) and it should hopefully be out in a week or two if I remember to keep working on it. :)

  • #25 written by Rob 
    about 4 years ago

    Would it be possible to use something like runPHP to call your plugin instead of making a dedicated template?

  • #26 written by Viper007Bond 
    about 4 years ago

    Yes, the next version of this plugin will have some functions that’ll basically call the class and run it so that you can use the PHP plugins. :)

  • #27 written by Rob 
    about 4 years ago

    One more… I tried taking precaution with plugin deactivation and plugin calls inside my themes by using the function_exists PHP call. Here’s what I did for yours:

    < ?php if (function_exists('viperspluginsused')) { ?>
    < ?php $viperspluginsused = new viperspluginsused(); ?>
    < ?php $viperspluginsused->output_table('id="pluginstable"', TRUE, TRUE); ?>
    < ?php } ?>
    (minus the spaces between the

  • #28 written by Viper007Bond 
    about 4 years ago

    That won’t work because viperspluginsused() isn’t a function. You’ll want this:

    < ?php
    if (class_exists('viperspluginsused')) {
    $viperspluginsused = new viperspluginsused();
    $viperspluginsused->output_table('id="pluginstable"', TRUE, TRUE);
    }
    ?>

  • #29 written by Rob 
    about 4 years ago

    Thanks, worked great!

  • #30 written by Scott 
    about 4 years ago

    Nice plug :)

    Worked great for me in just minutes.

  • #31 written by Chris 
    about 4 years ago

    Thanks Viper! I had this exact plugin in mind and I was tempted to write one myself ;-) Now you’ve saved me time to … well… do what I’m paid to while I’m at work ;-)

    One question though – I would like to integrate the css styles more tightly with the rest of my blog, which is currently utilizing the ‘blix’ theme. Do you know of a quick n’ easy way to do this? Something like …

    oh wait… reading id=pluginstable now… SWEET!

    Cheers!

  • #32 written by Rodney Shupe 
    about 4 years ago

    Great plugin.

    One suggestion would be to use a strip_tags() function call on the description as without it relative links (which many people use in their descriptions) get a 404 error.

  • #33 written by Viper007Bond 
    about 4 years ago

    No, tags are useful, for example the code tag. ;)

    As for relative links, just use the options page of this plugin to edit the displayed description for the plugin to something else, i.e. remove the link and such. :)

    Although I can’t remember if this plugin checks for only allowed tags or not. I really need to update this thing…

  • #34 written by Tom Bammann 
    about 4 years ago

    Thanks for making this plugin.

    Just letitng you k now I had to use:
    http://www.viper007bond.com/wordpress-plugins/vipers-plugins-used/#comment-377

    to get rid of an error message and I also had to use:
    output_table(‘id=”pluginstable”‘, TRUE, TRUE);
    }
    ?>

    as you suggested.

  • #35 written by Tom Bammann 
    about 4 years ago

    On row 160 you have:

    $rowstyle = ($rowstyle == ‘class=”pluginrow”‘) ? ‘class=”pluginrowalt”‘ : ‘class=”pluginrow”‘;

    Is this for displaying alternate row colours as in the admin display?

    Basically, I’m wondering if you could please help me work out how to display the plugins list with the css styling exactly like that in the wp-admin/plugins.php page.

    It looks like you’ve already set this up for alternate row styling, etc. At least you have definitely done this for the admin. Are you able to help please work this out?

  • #36 written by Viper007Bond 
    about 4 years ago

    I really should update this plugin… :/

    Anyway, yes, the rows already have alternating classes. All you need to do is create some CSS, no plugin editing needed.

    Do you need help with the CSS or were you just thinking that modification of the plugin was needed?

  • #37 written by YAWPU 
    about 4 years ago

    Hi, it seems that the plugin is having problems with accented characters, see here as compared to there where they display ok. TIA.

  • #38 written by Viper007Bond 
    about 4 years ago
  • #39 written by YAWPU 
    about 4 years ago

    re: question marks: Sorry, my bad, it was just an encoding problem.

  • #40 written by blog400 
    about 4 years ago

    Thanks so much for the plugins widget. V useful //!

  • #41 written by Lu 
    about 4 years ago

    Arno Simon, thank you so much for the tip about the $plugin-array! Thanks to you, I can use this great plugin! :)

  • #42 written by Everton Blair 
    about 4 years ago

    Thanks for a great plugin. I need some help though please – how do I reduce the width of the table? Nothing I do seems to work.

    Thanks

  • #43 written by Viper007Bond 
    about 4 years ago

    [Comment ID #8841 Will Be Quoted Here]

    Well, first make sure you don’t have any really long URLs or anything in the descriptions that are forcing the text to not line wrap. IF you do, use this plugin’s options page to edit the descriptions that get displayed.

    After that, you can use CSS to control the overall width of the table. The table has the CSS id “pluginstable”, so something like this will probably work:

    #pluginstable { width: 800px; }
  • #44 written by Everton Blair 
    about 4 years ago

    Didn’t work :-(

  • #45 written by Viper007Bond 
    about 4 years ago

    [Comment ID #8843 Will Be Quoted Here]

    Yeah, as I suspected, you have a long string that isn’t wrapping and it’s forcing the width of your table to be quite large. You need to edit the displayed description for “Landing sites” and remove this bit:

    http://www.w-a-s-a-b-i.com/archives/2006/02/02/wordpress-related-entries-20/

    or at least turn it into a hyperlink. It’s forcing that column to be really wide.

  • #46 written by JYL 
    about 4 years ago

    Sir, thanks for a great plugin.
    but can i set up the row color of table?
    just like the table of http://ying.homedns.org/wp/archives/2005/06/12/20/25/08/

  • #47 written by Viper007Bond 
    about 4 years ago

    JYL on July 14th, 2006 at 7:03 PM2006-07-15T02:03:50ZF jS, Y \a\t g:i A wrote:

    but can i set up the row color of table?

    Yes, the rows are given alternating CSS classes, “pluginrow” and “pluginrowalt”. Just define the styles in your CSS file. ;)

  • #48 written by Martin Cleaver 
    about 4 years ago

    Does this work with wpmu?

    Thanks, M.

  • #49 written by Viper007Bond 
    about 4 years ago

    Martin Cleaver on August 22nd, 2006 at 5:59 PM2006-08-23T00:59:45ZF jS, Y \a\t g:i A wrote:

    Does this work with wpmu?

    Dunno, I have very little experience with MU. However, from what I do know, my guess is yes.

  • #50 written by TechZ 
    about 3 years ago

    Thanks for the plugin Viper, I got it work, after many tries :P

  • #51 written by John 
    about 3 years ago

    Hi Viper, thanks for your awesome plugin :)

  • #52 written by Erik J. Barzeski
    about 3 years ago

    I’m glad you wrote this plugin as it’s quite nice, but I’m wondering if you’re going to update it for WordPress 2.1. The use of $title* variables leads me to believe it isn’t currently compatible with WP 2.1.

  • #53 written by Viper007Bond 
    about 3 years ago

    Erik J. Barzeski on December 21st, 2006 at 3:41 PM2006-12-21T23:41:07ZF jS, Y \a\t g:i A wrote:

    The use of $title* variables leads me to believe it isn’t currently compatible with WP 2.1.

    Mmm, so you’re right. I never checked that page after I updated my blog to 2.1. Whoops!

    Conveniently enough though, I had actually already started a recode from scratch for just general improvement reasons. I’ve been coding it in the latest SVN, so it will indeed be compatible with 2.1. :)

  • #54 written by ovidiu 
    about 3 years ago

    hi there,

    you say it is not compatile with wp 2.1 but it works with wpmu which is based on wp2.1….
    another thing is, can I somehow modify your plugin to just list all available plugins? I need to show a list of all available plugins, rather than those I use.

    thx

  • #55 written by Viper007Bond 
    about 3 years ago

    ovidiu on December 24th, 2006 at 4:44 AM2006-12-24T12:44:05ZF jS, Y \a\t g:i A wrote:

    you say it is not compatile with wp 2.1 but it works with wpmu which is based on wp2.1….

    All I know is that a PHP error comes up in WP 2.1 and it didn’t previously. I haven’t had a chance to look into the exact problem due to other projects and the holidays.

    And I doubt all of the changes to the SVN have been ported to MU. It’s probably a bit behind the main core.

    ovidiu on December 24th, 2006 at 4:44 AM2006-12-24T12:44:05ZF jS, Y \a\t g:i A wrote:

    another thing is, can I somehow modify your plugin to just list all available plugins? I need to show a list of all available plugins, rather than those I use.

    Use get_plugins(). It returns an array of all plugins in the plugins directory. You may need to require/include in wp-admin/admin-functions.php.

  • #56 written by Josh Nichols 
    about 3 years ago

    I use it and upgraded to 2.1 and everything works for me.

    http://joshnichols.com/house/about/

  • #57 written by Viper007Bond 
    about 3 years ago

    Josh Nichols on January 26th, 2007 at 7:54 AM2007-01-26T15:54:03ZF jS, Y \a\t g:i A wrote:

    I use it and upgraded to 2.1 and everything works for me.

    http://joshnichols.com/house/about/

    I’m such an idiot! I looked at my plugins used page and saw an error, so I figured it didn’t work.

    Just turns out I had accidentally overwritten it with the half recoded version which of course wasn’t done, so…

    *sigh*

  • #58 written by Manele 
    about 2 years ago

    i just installed this plugin on my blog and i love it! thank you!

  • #59 written by sardinien 
    about 2 years ago

    Thanks for this plugin. I love it.
    Keep the good work going.

  • #60 written by Delores 
    about 2 years ago

    I don’t understand something. Why do I have to create a whole new page template instead of just pasting the `output_table(); ?>` code in a new page post (as you can with the contact form plugin)?

  • #61 written by Viper007Bond 
    about 2 years ago

    Delores on October 23rd, 2007 at 10:58 AM2007-10-23T17:58:14ZF jS, Y \a\t g:i A wrote:

    I don’t understand something. Why do I have to create a whole new page template instead of just pasting the `output_table(); ?>` code in a new page post (as you can with the contact form plugin)?

    Because they are different plugins and work completely differently? Apples and oranges.

    But yes, I need to rework this plugin to make it easier to implement.

  • #62 written by Gilly 
    about 2 years ago

    Thank you! I love this plugin!

  • #63 written by Gilly 
    about 2 years ago

    Funny… @ Browser/OS. I’m using Safari @ WinXP not @ MacOS :D

  • #64 written by tolahtoleh.com 
    about 2 years ago

    thank you, let me try this one :-)
    regards,

  • #65 written by berny 
    about 1 year ago

    hi,

    thanks a lot for this plugin. – it works like a charm.

    one thing i noticed was that plugins with a lower case name are printed at the end of the list. you can see that for example on my pluginslist. imho they should be ordered within the whole list.

    greetz,
    berny

  • #66 written by Chaim 
    about 4 months ago

    great plugin. :)

If you wish to post code, write it like [code]blah[/code] so it will display properly.

Page generated with 2 queries in 0.46290 seconds ( 99.95% PHP, 0.05% MySQL )