Support » Plugins » [NEW!] Viper’s Plugins Used

  • http://www.viper007bond.com/wordpress-plugins/vipers-plugins-used/

    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 and that are located in your plugins folder as a table or an unordered list. You can toggle displaying the version, author (unordered list method only), and plugin description.

    For an example, click here.

Viewing 15 replies - 1 through 15 (of 28 total)
  • I am going to install this for sure.

    Great work.
    By the way, can we write a custom description about the plugin? something like the page on babygotblog.com

    Thanks – I’ll give that a try 🙂

    Thread Starter Alex Mills

    (@viper007bond)

    By the way, can we write a custom description about the plugin? something like the page on babygotblog.com

    Direct link? I don’t see it.

    Anyway, I have a few ideas on how to implement that. I’ll try and get a new version out within a couple days that supports that. 🙂

    even i dont find the link in that site now.
    It was there previously. even the theme is changed now.
    babygotblog was a regular user in these support forums.

    Viper, its great that you understood what i said.
    Will install this now and will wait for that feature.

    Thanks.

    Thread Starter Alex Mills

    (@viper007bond)

    When specifying a plugin to create a custom description for, do you think using the plugin’s partial path (usually just the filename) or the plugin’s name (then you have to worry about people mis-copying the plugin’s name though) to identify it would be best?

    The plugins name would be better rather than the file name and a link to the author site(optional with a checkbox) from the plugin name(opening in a new window).

    not related:
    I am very uncomfortable with this new window thing specifying target=”_blank” in all outgoing links. is there anything that we can do about this? a button like [_link] beside the default button [link] to insert _blank target link in the editor? I mean not here. In the blog editor.
    You know what, nobody likes their blog readers to endup in other blogs or sites clicking the links.

    Thread Starter Alex Mills

    (@viper007bond)

    not related:

    Then don’t post it in my thread! 😉

    Back on topic:

    I was actually just thinking making a function where you create an array with some custom descriptions:

    $viperspluginsused->setcustdesc(array(
    'Viper's Plugins Used' => 'Some cool description',
    'Some Other Plugin' => 'Another description'
    ));

    However, doing it via an options page sounds like a better for the coding impaired. Although that’d mean you couldn’t have different custom descriptions per page, but then again, who’s gonna use the plugin on more than one page? 🙂

    Options page it is.

    Thread Starter Alex Mills

    (@viper007bond)

    Work is coming along nicely on the options page. 🙂

    Here’s two teaser images:

    http://img295.imageshack.us/img295/4581/pluginsused18ts.jpg
    http://img295.imageshack.us/img295/3038/pluginsused24np.jpg

    Awesome work.
    I was going to install the plugin, but now I think I’ll wait for the next release. 🙂

    Those options page images are great looking.

    Thread Starter Alex Mills

    (@viper007bond)

    The new version will be backwards compatible template wise, so to upgrade to this upcoming version, all you’ll have to do is replace the plugin file itself, i.e. it’ll be hardly any work to upgrade, so you don’t have to wait for the next if you don’t want to. 🙂

    Ah. gotcha.

    Installed the plugin, very nice. I made a template for it and a new page using that template.

    Though I did hack the plugin code, and it might be something you consider to add.

    In the output as table display, you don’t have the option to exclude the plugin author column like you did if you output it as a list.

    I added the code in so I could turn off the author field. In the theme I’m using, having it display the plugin name, description and author was cutting off part of the text.

    You can see an example here
    http://postcardsfrommetrosuburbia.solitaryspaces.com/plugins-used/

    This is what I changed.


    // Takes the plugin array and outputs it as a table
    function output_table($tabledetails = '', $displaydescription = TRUE, $displayversion = TRUE, $displayauthor = TRUE) {
    // Set a default table style for when it's not specified
    if ($tabledetails == '') $tabledetails = 'width="100%" border="1" cellpadding="3" cellspacing="3"';

    echo '<table ' . $tabledetails . ">n <tr class="pluginheader">n <th>" . __('Plugin') . "</th>n";
    if ($displayversion == TRUE) echo ' <th>' . __('Version') . "</th>n";
    if ($displayauthor == TRUE) echo ' <th>' . __('Author') . "</th>n";
    if ($displaydescription == TRUE) echo ' <th>' . __('Description') . "</th>n";
    echo " </tr>n";

    foreach($this->plugindata as $plugin_name => $plugin_details) {
    $rowstyle = ($rowstyle == 'class="pluginrow"') ? 'class="pluginrowalt"' : 'class="pluginrow"';

    echo " <tr $rowstyle>n";

    echo " <td>";
    echo ($plugin_details['plugin']) ? $plugin_details['plugin'] : '&nbsp;';
    echo "</td>n";

    if ($displayversion == TRUE) {
    echo " <td>";
    echo ($plugin_details['version']) ? $plugin_details['version'] : '&nbsp;';
    echo "</td>n";
    }
    if ($displayauthor == TRUE) {
    echo " <td>";
    echo ($plugin_details['author']) ? $plugin_details['author'] : '&nbsp;';
    echo "</td>n";
    }
    if ($displaydescription == TRUE) {
    echo " <td>";
    echo ($plugin_details['description']) ? $plugin_details['description'] : '&nbsp;';
    echo "</td>n";
    }

    echo " </tr>n";
    }

    echo "</table>n";
    }

    Thread Starter Alex Mills

    (@viper007bond)

    In the output as table display, you don’t have the option to exclude the plugin author column like you did if you output it as a list.

    Yeah, I realized that last night. I didn’t allow removing of it before thinking you wouldn’t want a table with the plugin names only, but I totally forgot that you could still have like version or description.

    Being able to exclude the author is planned and will be added to this coming version. 🙂

    Thread Starter Alex Mills

    (@viper007bond)

    I think I might be done! 😮

    Gonna check over the code a couple times to make sure I didn’t miss anything. 🙂

    Can you check what this error is caused by? I have WP 1.5.2 on both a home box (windows) and an online blog (linix server) and use the Runphp plugin to insert code in pages or posts.

    I get this same error on both blogs when inserted in a new page.


    Fatal error: Call to a member function output_list() on a non-object in D:apachefriendsxamppxampphtdocsblogwordpresswp-contentpluginsrunphp.php(96) : eval()'d code on line 1

    Note that error is from the home box but is identical to that produced online.
    Thanks

    Thread Starter Alex Mills

    (@viper007bond)

    Did you start the class?

    <?php
    $viperspluginsused = new viperspluginsused();
    $viperspluginsused->output_list();
    ?>

    $viperspluginsused can be anything BTW, I just recommend that variable name since it’s the same as the class name.

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘[NEW!] Viper’s Plugins Used’ is closed to new replies.