[wp-hackers] WordPress plugin list

Alex King alex at alexking.org
Fri Jun 25 01:50:10 UTC 2004


Wouldn't it be easier to open the remote file from the central 
repository and save it in the plugins directory? Why the need for the 
XML-RPC interface?

--Alex

http://www.alexking.org/


On Jun 24, 2004, at 7:40 PM, Jason goldsmith wrote:

> MooKitty and I were discussing a similar idea a few weeks ago, we just
> haven't had much time to work on it.
>
> The idea was to create an XMLRPC Server/Client that could be installed
> optionally which would report which plugins were installed on a blog.
> When the plugin was activated the plugin's usage count would go up,
> when it was deactivated, it would go down. We thought this would be a
> good way of helping to rate which plugins people were really using.
>
> All the pertinent information about a plugin can be found in the
> plugin header that WP parses to create the plugins.php page, including
> who wrote it, what version it was and, provided the developer has
> included the proper fields, a link to download it. You'd just need to
> use the plugin name + version number as a unique key for the plugin.
>
> The only trick is figuring out when to make the callsto the XMLRPC
> server to report the plugin. I figured the best place to handle that
> is in the publish_post action. You can't run any plugins on
> plugins.php, so you can't catch the activate/deactivate call, but you
> could easily keep a simple state fill of which plugins were active the
> last time you sent a message to the XMLRPC server.
>
> Implementing an auto install system should be pretty easy, you just
> need to make a call to the XMLRPC server and grab all the available
> plugins and their most recent version. Then you can get the url and
> curl the file to the server, unpack it into wp-content/plugins and
> you're off.
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org




More information about the hackers mailing list