WordPress.org

Ready to get started?Download WordPress

Forums

[NEW!] Viper's Plugins Used (29 posts)

  1. 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.

  2. swordfish
    Member
    Posted 8 years ago #

    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

  3. Thanks - I'll give that a try :-)

  4. 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. :)

  5. swordfish
    Member
    Posted 8 years ago #

    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.

  6. 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?

  7. swordfish
    Member
    Posted 8 years ago #

    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.

  8. 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.

  9. 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

  10. Vryce
    Member
    Posted 8 years ago #

    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.

  11. 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. :)

  12. Vryce
    Member
    Posted 8 years ago #

    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";
    }

  13. 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. :)

  14. I think I might be done! :o

    Gonna check over the code a couple times to make sure I didn't miss anything. :)

  15. Marc
    Member
    Posted 8 years ago #

    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

  16. 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.

  17. Marc
    Member
    Posted 8 years ago #

    Yes, I missed starting the class at first.

    Then realized my mistake. The class code was added and it returned the same error.

    BTW the error is returned for both the table and list outputs if that helps any.

  18. Try adding before the clas definition this:

    require_once(ABSPATH . '/wp-content/plugins/vipers_pluginsused.php');

    If that doesn't work, then my guess is that RunPHP doesn't support classes or something. You'll probably want to contact the maker of that plugin and meanwhile use a custom Page template for my plugin.

  19. doggybag
    Member
    Posted 8 years ago #

    just a quick note to say thanks Viper007Bond ..installed and running fine no problems ... http://www.barganews.com/daily/

    ciao
    db

  20. Version 1.1 released! All that's required to upgrade is replacement of the plugin file itself.

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

    Visit the options page (Options -> Plugins Used) if you want to set custom plugin descriptions.

    Please post here, or even better, post in my support forums if you find a bug or have any issues. If you post here, I MAY miss your post. I won't if you post on my forums as they have "view new posts". :)

  21. Marc
    Member
    Posted 8 years ago #

    I got the error corrected. By deleting the plugin and installing your latest ver cleared it.

    I'm guessing there was a slight error (not in code but corrupted during xfer) in the original upload and it created the error.

    Thanks.

  22. redalert5
    Member
    Posted 8 years ago #

    dude, cant see ur site is it down or something?

  23. Vryce
    Member
    Posted 8 years ago #

    Awesome.

    Quick and easy upgrade. Thanks for the great plug-in.

  24. dude, cant see ur site is it down or something?

    Mighta been, I dunno. It's up now however though. :)

  25. Thanks for the great plug-in.

    No problem! :)

    Oh, and you know your blog is down, right?

  26. Just realized that the header for the version column in the table was bad code:

    <th class='versioncolumn">Version</th>

    Note the single and double quote. v1.11 is a fix of this. No need to download it unless you want to use the table format and the version column. ;)

  27. It's been brought to my attention that this plugin screws up the redirect on the login page, possibly other things. I suspect it has to do with the POSTing, but I'm not sure.

    Looking into it now. Sorry 'bout this.

  28. All fixed now, at least I think it is. 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. :)

  29. mozey
    Member
    Posted 7 years ago #

    Quick question, have you tested your plugin on WPMU? when i installed it, my editor's buttons disapeared all together.

    Please let me know if you ever ran into this issue.

Topic Closed

This topic has been closed to new replies.

About this Topic