|
||||||
![]() |
|
nov
11
2007
WordPress user roles vs the XML-RPC interfaceBlogging platform WordPress (in it’s current version 2.3) allows for 5 user roles:
Another feature is the XML-RPC-interface. With this, you can use an external editor to publish on your blog. Say you have a desktop program, or a webservice: as soon as you provide it with the url to the xmlrpc.php in your installation, a username and a password, that application can start posting on your blog right away. Increasingly useful, in these web 2.0 interconnected API-flooded times. So far for the good news. The bad news being that these two features don’t combine well, at all… The xmlrpc-implementation in WordPress is such that it can only accept posts from a user with the role of administrator or editor. For other users, it replies with a simple “Sorry, you don’t have sufficient rights to perform this action”. Thus, if you want to use some of the post restrictions of the other roles in combination with the xmlrpc, you’re out of luck! Here’s an example of a not so nutty setup, where this leads to frustration:
Bummer. The text on the WordPress-homepage “WordPress is what you use when you want to work with your blogging software, not fight it” got a sour smile from me tonight… Anyone who knows a graceful workaround or wordpress-plugin for this problem? 4 reacties tot nu toe. Reageer zelf...![]() This is not so much a WordPress-problem… It’s a problem of the site you’re trying to use. XML-RPC allows for draft-posts! You might try hacking into the xml-rpc. It’s relatively simple. See: Comment by Gerry — 12 november 2007 # ![]() Thanks Gerry, this put me on track to a good solution. Now I have a user with the role editor (so that he can post), but with your code bit I managed to circumvent the publishing so the post ends up in draft. Comment by Dirk Houbrechts — 14 november 2007 # ![]() Just did a check on this and wanted to add this note: It seems that you can also publish via XML-RPC with the author role. –Richard Comment by Richard — 14 april 2011 # ![]() @9f73c123ca62197b729e2ba30320fbc7:disqus I had the same problem – XML-RPC as an editor works as described above. You can’t publish with editor rights. Comment by OnkelSeosErbe — 27 oktober 2011 # En nu?
|
![]() |