Xpost
The Xpost (speak it: crosspost) plugin allows you to crosspost your posts to other Wordpress blogs via XML-RPC. Features include:
- The plugin keeps track of which post has been crossposted to which blog and can update the crossposted posts when changing the original posts.
- If you save a draft this will be crossposted as draft. If you publish the draft you can publish it also on the crossposted blogs.
- If protect a post with a password the crossposted posts will also be protected by a password.
- You can select the categories which should be used for the crosspost whereby this categories will be fetched from the blog you crosspost to.
- Crossposting will crosspost of course the title and text of the post, but also the excerpt, tags, the scheduled date for publishing and whether to allow comments and ping backs.
Installation
- Upload the “xpost” folder to the “/wp-content/plugins/” directory
- Activate the plugin through the “Plugins” menu in WordPress
- Goto “Settings”, then “Xpost” and add your Wordpress blogs.
- That’s it! When editing or creating a post you will find a Xpost widget in the sidebar where you can select the blogs to crosspost to and the categories.
Please note that you have to activate posting via XML-RPC for the blogs you want to crosspost to. You can activate XML-RPC if you goto ‘Settings’ and then ‘Writing’ in the admin interface of each of those blogs.
Changelog
Version 1.0.4
- Fixed bug: Backslashes were added in front of quotes in crossposts.
- Fixed bug: Media uploaded with the Wordpress mediauploader was not shown in crossposts.
Version 1.0.3
- Plugin is now compatible to PHP version older than PHP 5.3.0.
- Fixed bug: Categories did not get loaded when creating a new post.
Version 1.0.2
- Improved installation instructions.
Version 1.0.1
- Added domain to gettext calls allowing translation.
- Added pot file for translation.
- Added German translation.
- Added additional license information.
Version 1.0
- Initial release.
Information
| Wordpress Version: | 2.5–2.8.6 |
| License: | GNU General Public License 2 |
| Developed with: | Eclipse, XAMPP and Firefox under Mac OS X Leopard in PHP, HTML and JavaScript |
Downloads
| Package Information | Version | Download | Size |
|---|---|---|---|
| Xpost plugin | 1.0.4 | xpost.1.0.4.zip | 26 KiB |
| Xpost plugin | 1.0.3 | xpost.1.0.3.zip | 26 KiB |
| Xpost plugin | 1.0.2 | xpost.1.0.2.zip | 25 KiB |
| Xpost plugin | 1.0.1 | xpost.1.0.1.zip | 25 KiB |
| Xpost plugin | 1.0 | xpost.1.0.zip | 12 KiB |
Last modification: November 30th, 2009 at 16:02



To the top
October 18th, 2009 at 15:47
I keep getting this error:
Fatal error: Call to undefined method DateTime::getTimestamp() in /home/patclev6/public_html/justice/wp-content/plugins/xpost/xpost_post.php on line 95
October 18th, 2009 at 22:12
Can you tell me which version of PHP you are using?
October 19th, 2009 at 14:27
PHP version 5.2.9
October 19th, 2009 at 16:36
I checked this: The Xpost plugin needs PHP in the version 5.3.0 or higher (but 5.3.0 is the latest version at the moment).
The easiest way to solve the problem would be probably to update your PHP installation.
If that is not possible there is a entry in the PHP manual concerning the newly introduced function in PHP 5.3.0 needed by Xpost. At this page is comment proposing an alternative function for PHP version older than 5.3.0. You could hack Xpost to use this license (but this would require some minor programming skills).
Last option would be, that I replace that function by myself. But I do not need the compatibility for the older PHP version. Therefore I do not have that much motivation to do this. Especially because my free time is very limited at the moment and it could take several weeks if I do it.
October 20th, 2009 at 15:57
Hi – this is a really useful extension for Wordpress – many thanks!
The fix you need is in xpost_post.php
/* Fixed the call to getTimestamp as no available in php getTimestamp() ); */
$postData['dateCreated'] = new IXR_Date( mktime($date->hour, $date->minute, $date->second, $date->month, $date->day, $date->year) );
There is one other small error I would appreciate help on.
When creating a new post to a single other blog, the XPost widget does not display the categories from the other blog. After posting and doing a post update, the categories are displayed fine.
October 24th, 2009 at 20:14
I might include the proposed fix with the next version of the plugin (whenever it will come).
The problem with the categories could be reproduced by me, however it occured not while testing. I do not know what causes this problem, yet. As said before I have not much free time at the moment, but I will try my best to fix this soon.
October 26th, 2009 at 15:55
Sometimes things happen sooner as you think: I’ve released today a new Xpost version. It introduces compatibility with PHP versions older than 5.3.0 (however the proposed fix did not work, but I found another fix).
The categories get know also loaded if you create a new post.
November 3rd, 2009 at 12:56
[...] WordPress Xpost (cross Post) Plugin [...]
November 10th, 2009 at 23:53
Hi,
I tried testing the xpost plugin and the image reference in my post broke. Image was loaded into the source wordpress blog through the media uploader. Was translated into an empty src in the cross post. Other than that it appears to do everything I need.
November 11th, 2009 at 11:54
I do not use the Wordpress media uploader and completely forgot about it. However I do not really know if it is even possible to make it compatible to crossposting. I think there is no possibility to transfer the uploaded media to another Wordpress blog (but I have to check this in the documentation). Maybe it is possible to change the links to the media in a way that they are pointing to the original blog.
November 11th, 2009 at 15:33
I’m finding that both single and double quotes in markup in my posts are being escaped breaking links and img tags. for example a href=” becomes a href=\”a
Any advice.
November 16th, 2009 at 10:12
I just made another bugfix release. The quotes shouldn’t be escaped any longer and images uploaded through the media uploader should be also shown in the crosspost.
If find more bugs, please post them to!
November 25th, 2009 at 20:52
I have MU and wanted to crosspost inside my own MU site. But when I activate the plugin, it comes up with a blank screen. Is there something that I am doing wrong?
November 25th, 2009 at 21:51
What exactly did you do? Just copied the plugin to the plugin folder and clicked “activate” at the Wordpress plugin page? And then you got a totally empty page? Or were the Wordpress menus still visible?
November 26th, 2009 at 00:22
Entire blog ( frontend and backend ) has the white screen of death. When I activate it, this is the link I get:
mysite.com/wp-admin/plugins.php?action=activate&plugin=xpost%2Fxpost.php&plugin_status=inactive&paged=1&_wpnonce=1b97e3ada1
I added the plugin with Filezilla, went to the plugins page, found it, the second I clicked onto it I got the link above and just a white screen. Could this be an MU compatibility issue? Should I check other plugins?
November 26th, 2009 at 00:33
Tried with another MU that was 2.8.5 I believe and got this message when I tried to activate it:
Fatal error: Call to undefined function wp_get_current_user() in /home/juuble/public_html/webtechads/wp-includes/capabilities.php on line 920
For the blog I talked about in the last comment, it was MU 2.8.6. Just some information to help out. The 2.8.5 version had no plugins added other than wp-sifr and wp-contact.
November 26th, 2009 at 09:08
Thanks for the further information. That might be helpful tracking down the problem.
It might be a MU compatibility issue. The error message in the second try also suggests that it has to do something with users. But I am not sure at the moment.
I will investigate this problem soon.
November 30th, 2009 at 16:00
It is definitely a problem with MU. Therefore Xpost is not compatible to MU and I am not planning to change this in the near future. To me it seems not trivial to add MU support.
December 7th, 2009 at 16:36
I assume this plugin won’t cross-post comments from the various locations of a cross-posted blog post right? So you’d get different threads of conversation on each of the copies of the blog post. Is copying the comments between copies a feature you plan to add?
December 7th, 2009 at 17:32
You are right. You will get different threads of conversation.
But it is a nice idea. I might try to implement this in the future. However I cannot tell when. It will definitely not before next February.
December 11th, 2009 at 18:47
Hi,
I’ve encountered another issue. The xpost doesn’t appear to handle time offsets from UTC correctly for knowing when to publish the post unless both the source and target blogs are set to UTC-0.
Our source blog was set to UTC-5 and the source UTC-0 and the posts appeared to be shifted 5 hours. I changed the source to UTC-5 and the posts still appeared to be shifted by 5 hours. I set both blogs to UTC-0 and the posts publish as soon as they are x-posted rather than being scheduled for 5 hours.
Anyone else experienced this?
December 14th, 2009 at 13:47
Are you sure that you are using the newest Xpost version 1.0.4? From version 1.0.2 to 1.0.3 some code responsible for the publishing date has changed to make it compatible to older PHP versions.
I tested the problem described myself, but could not reproduce the problem. If I create a post in a blog set to UTC-5 scheduled for let’s say 7:00 and crosspost it to a blog set to UTC-0 it will be scheduled for 12:00 in this blog. Therefore they will published at the same time and that is the behavior I expect.
Also post get scheduled for the same time when crossposting.
December 16th, 2009 at 21:46
I am using Xpost version 1.0.4 with Wordpress version 2.8.6 with PHP version 5.2.8. I’ve activated the plugin with no problem but when I try to put in the settings for the blog, I get “XML-RPC request returned no blogs”. I have the XML-RPC enabled in the “Writing” settings, so I’m not sure what’s wrong. Any ideas?
December 21st, 2009 at 14:45
I’m sorry for the late answer. However, I do not have good ideas what the problem could be. Did you enable the XML-RPC in the blog you want to post to? (or in the blog you are posting from which would be wrong?)
Probably you have already double checked the URL you entered, haven’t you?
January 11th, 2010 at 14:44
Hi, just like to say what an excellent plugin…something I’ve been wanting for ages so thanks! My question is, how do I xpost a sticky post? I know xmlrpc now supports it but I’m not sure of the code I’d need to put in the xpost_post.php file. Any ideas would be gratefully received. Thanks again.
January 12th, 2010 at 07:01
I think, at the moment it is not possible to xpost a sticky post. I didn’t even know that Wordpress supports sticky posts. If xmlrpc supports it, it should be not big deal to implement. Could you point me to some documentation of that xmlrpc support?
January 12th, 2010 at 13:46
In response to your questions on Dec 21st, yes I have enabled xml-rpc on both blogs and have double-checked the URL that was entered. I’m not really sure why it’s not working. Could it be a setting in the install of PHP itself?
January 13th, 2010 at 13:43
I do not think that it is a setting in the install of PHP. But I have really no idea what the problem is at the moment. Some debug information like the data transmitted from the and to the blogs would be helpful. But it is not that easy to provide this data.
January 14th, 2010 at 16:30
Hi,
We’re finding that posts initially cross posted as draft sometimes don’t switch to published in the cross post when the original is published. We’re using 1.0.4. Updating the original invariably clears this up but we’re publishing posts in advance so sometimes don’t catch this until after the date.
January 14th, 2010 at 18:03
I did some research on this and it might be a bug in wordpress itself. When I tried to schedule crossposts in my testing environment they also did not get published. In the article overview Wordpress said then “missed schedule”. I do not really know why this only occured with the crosspost itself, but not the original post (and I had both blogs at the same server with Wordpress 2.8). However this seems to be a known problem and a workaround (which worked for me) is described at http://www.newbloghelp.com/wordpress/wordpress-missed-schedule-future-posts-fix
There exists also a plugin fixing this problem which I have not tried: http://blog.5ubliminal.com/posts/missed-schedule-future-posts-scheduled-mias-wordpress-plugin/
Afterwards I tried it also with Wordpress 2.9.1 and had no problems with this version.
Therefore you might want to check your Wordpress version and whether it says “missed schedule” for the unpublished post.