Single Click Plugin Updater WordPress Plugin

This plugin extends the plugin update notification feature introduced in WordPress 2.3 by adding an “update automatically” link to update notifications. When you click the link, the new version of the corresponding plugin is downloaded and installed automatically. It also lets you know which plugins have update notifications enabled.
Update 06.04.2008 : Version 2.0.1 with much more features is out. More info here.

Download it now! (37 Kb)

How It Works (In Detail)

To be able to display the new link this plugin will hide the original update notification and display a slightly modified one. Here’s what happens when you click the “update automatically” link :

  1. If the plugin that needs to be updated is active, it is deactivated.
  2. The Plugin Updater retrieves the plugin’s page from Wordpress.org and finds the download link.
  3. The new version is downloaded and extracted to the wp-content/plugins directory (this directory must be writable by the Updater plugin).
  4. If necessary, the updated plugin is re-activated.

All this happens in the background, so if everything works OK you’ll end up back at the “Plugins” tab. If there are any errors the plugin will display an error message and abort the upgrade.

Requirements

  • WordPress 2.3 or newer.
  • CURL library installed or allow_url_fopen enabled in php.ini. If you don’t know what that means, don’t worry – at least one of these is available on most webservers by default.
  • The /plugins directory must be writable by WordPress. The exact file permissions depend on the server configuration. Read more about file permissions. 666 or 755 may be sufficient, and 777 will always work, though this is not recommended due to security risks.

The plugin has been tested and works under Firefox 2.x, Opera 9.x and, as of version 1.0.5, Internet Explorer.

Installation

To install the plugin, please follow these steps:

  • Download the one-click-plugin-updater.zip file (below) to your computer.
  • Unzip the file.
  • Upload “one-click-plugin-updater” folder to the “/wp-content/plugins/” directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.

That’s it.

Download

one-click-plugin-updater.zip (40 Kb)
CC-GNU GPL

Share :
  • Reddit
  • del.icio.us
  • Digg
  • StumbleUpon
  • DZone
  • Ping.fm
  • Sphinn
Related posts :

494 Responses to “Single Click Plugin Updater WordPress Plugin”

Pages: « 12 3 4 5 6 [7] 8 9 10 11 1217 » Show All

  1. 165
    White Shadow says:

    My guess would be the plugin doesn’t work at all, and when it’s deactivated you’re using the built-in updater that WP 2.5 has.

    I’ll need more info to figure this out if that’s not the case.

  2. 166
    Engelium says:

    Hi

    I only have a question: if I use this plugin can I uninstall the “Global Plugin Update Notice” ?

    I didn’t undertand if this do also the same work

    Tnx

  3. 167
    White Shadow says:

    Yes, this plugin can also do the same thing that “Global Plugin Update Notice” does. The notices look slightly different, but basically they’re the same. You can turn the notices on/off in Plugins -> Upgrade Settings

  4. 168
    baron says:

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with Wordpress 2.5.1 ?

    Thanks in advance for any help on this!

    best regards

    baron

  5. 169
    White Shadow says:

    @baron : Sorry for not answering earlier – your comment got caught by Akismet.

    Yes, the plugin is compatible with 2.5.1.

  6. 170
    Engelium says:

    I tried to use the global notices of this plugin but it doesn’t properly work…

    Infact to view the message in all pages I’ve to go previously in the plugin page… than it search newer versions of plugins and so the notice is activated…

    How can i fix this? (if this is not the normal behaviour)

  7. 171
    White Shadow says:

    Oops, I didn’t notice the original “global notices” plugin checked for updates on every page load. I’ll fix this in the next release. That might take a few days though, as I’ve added some new features that I need to test.

  8. 172
    Engelium says:

    Well! Tanks a lot for your courtesy :)

  9. 173
    lumo says:

    yeah, I have the same error.

    —–
    So far, the type is set to ‘plugin’.
    gzopen() found, will use PclZip.
    PclZip failed!
    —-

    how can i solve the problem..

    may the server have no PclZip modele?

    mmm.

  10. 174
    lumo says:

    oh, this was known issue.
    thanks.

  11. 175
    White Shadow says:

    Yes, if it’s the same “Unable to find End of Central Dir Record signature” error, it should be solved in the latest version.

  12. 176
    Wayne says:

    Just a thought, before I installed this plugin, i had to click each upgrade automatically link, which was annoying…. I do not however want to change the rights of a directory that has all my plug-ins… that opens a security hole… previously, i got a nice FTP form that I typed all my info and blam…. updated plugin… I was hoping that you would hvae used that tool as well (…wp-admin/update.php?action=upgrade-plugin&plugin=)

    that way, i would be using FTP via SSL to upload things, my FTP info is not saved in the system and i don’t have to open the directory to anyone else…

    Is that something you might be able to incorporate into this plugin as is or as an option?

  13. 177
    White Shadow says:

    It’s certainly a non-trivial task, and I’m not planning to add it in the next release. However, eventually it will be necessary. Eventually, I will implement it. No specific timeframe though.

  14. 178
    jocuri says:

    Keep up the good work! 10q

  15. 179
    dhani says:

    I love the plugin, make managing plugin easier.

    One request, please add the “delete” to the themes property page the same as delete function in the plugin page.

    I’m currently using version 2.1.2

    thanks.

  16. 180
    White Shadow says:

    The theme deletion feature is already pretty much complete. Just need to get some of the other stuff done (e.g. uploading the new, more secure FF extension), and then I’ll release the new version.

  17. 181
    Engelium says:

    Uhmm… really I don’t see the “delete” feature in plugin page ???

    however I’ve another request: can you make this plugin full compatible with Wordpress MU ?

    tnx a lot :)

  18. 182
    White Shadow says:

    I said “…and then I’ll release the new version” :P That is, it’s done, but not available to the general public yet. Don’t worry, should be out soon.

    WPMU seems doubtful. You wouldn’t want every user to be able to install any plugins they want, right?

  19. 183
    Engelium says:

    I said “…and then I’ll release the new version” That is, it’s done, but not available to the general public yet. Don’t worry, should be out soon.

    Ooops :P

    WPMU seems doubtful. You wouldn’t want every user to be able to install any plugins they want, right?

    Well… this is right but will be handy if the administrator could use this plugin (and, in case, having an option to give this power to his users)

    However is only a hint :P

  20. 184
    Chris Masse says:

    “Plugin could not be activated because it triggered a fatal error.”
    -
    I got that after updating to the version 2.2 by clicking on the individual update (not the global update).
    -
    The irony is that, in spite of the warning, the plugin was updated… :-D
    -
    Thanks
    Chris

  21. 185
    White Shadow says:

    Damn. Now I’ve got to track down a weird bug. Ah, and I thought this would be easy :/

    Edit : Ah, luckily this was one was easy to find. It’s a non-critical thing that only happens on activation. I’ve uploaded the fix (both to this site and wordpress.org), but I’m not going to bump the version number for this.

    I’m writing the post about this version right now.

  22. 186
    Chris Masse says:

    Hi,
    1. I had the “debug” function checked. Because of that, the updated plugins weren’t re-activated after the update. (It was a global update. And the plugins were Recent Comments, Similar Posts, and the Post-Plugin Library).
    -
    2. On another note, it’s impossible to check the “Mini-Guide” option. No idea why, and no idea what it is. :-D
    Best wishes,
    Chris Masse

  23. 187
    White Shadow says:

    Originally Posted By Chris Masse
    Hi,
    1. I had the “debug” function checked. Because of that, the updated plugins weren’t re-activated after the update. (It was a global update. And the plugins were Recent Comments, Similar Posts, and the Post-Plugin Library).
    -
    2. On another note, it’s impossible to check the “Mini-Guide” option. No idea why, and no idea what it is. :-D
    Best wishes,
    Chris Masse

    Hey hey.

    1. This is the expected behaviour. In debug mode, the plugin outputs various messages and doesn’t automatically redirect to the activation URL (or you wouldn’t see the messages).

    2. Theres a typo in the name of that form field. I’ll fix that shortly. The “Mini-Guide” is for people who’ve been using the OneClick plugin (the one by Anirudh). It basically describes the main features of my plugin, and the differences between this and the OneClick plugin.

  24. 188
    Chris Masse says:

    1. I don’t get why it does not re-activate the plugins, though. And it would be fine to have a way to go back to the WP plugins page.
    2. OK. But why can’t I select that option?
    Thanks,
    Chris Masse

  25. 189
    Fizzgigg says:

    Am I blind, stupid or both? How do I Delete plugins?! I can find the delete-button (or delete link) for themes but not for plugins.

  26. 190
    White Shadow says:

    @Fizzgigg – The delete link only shows up for inactive plugins. You can’t dlete active plugins this way.

    @Chris Masse – reactivating plugins is a dangerous task (a faulty plugin can crash the script). That’s why all plugins are updated first, and then the script redirects to itself and activates the plugins one by one… Okay, it’s actually more complex than that. Anyway, you gave me an idea how to improve this part of the algorithm, thanks :)

    Do you mean you actually can’t select the option in your browser? That would be weird. The bug I mentioned would make you unable to save that option – it would always stay off after the page reloads. It’s fixed in 2.2.1, already on WordPress.org

  27. 191
    Fizzgigg says:

    Originally Posted By White Shadow@Fizzgigg – The delete link only shows up for inactive plugins. You can’t dlete active plugins this way.

    Then I am blind because I can’t see it even with inactive plugins.

  28. 192
    White Shadow says:

    @Fizzgigg – Maybe you have JavaScript disabled? The “Delete” links are added by JS after the page is loaded. Also, you need to be logged in as someone with the “edit_plugins” security privilege to see them (blog admins typically have that capability).

  29. 193
    Fizzgigg says:

    @White Shadow – I am the admin (and logged in as one) and javascipt is enabled. Can’t see any reason why it shouldn’t work. Btw, I can’t find the dashboard widget either.

    I’m using WP 2.5.1 if that can have something to do with it.

  30. 194
    White Shadow says:

    I’m running WP 2.5.1 as well, and it works on my two blogs.

    View the source of the Plugins page and see if you can find lines like
    //Add a status msg.
    and
    //Add the “Delete” links to inactive plugins

    If you find them both, it’s a JS problem of some kind. If only the first one, it’s probably a permission problem. If neither, then there are some serious issues with that situation – the footer hook isn’t running properly.

    And what is this “dashboard widget” you speak of?

Pages: « 12 3 4 5 6 [7] 8 9 10 11 1217 » Show All

Leave a Reply