FeedWordPress 0.991: bug fixes, reorganization, minor features added — and MU compatability(posted on 22 November 2007)

Update 2008-11-06: FeedWordPress 0.991 is now out of date. You can download the latest release — 2008.1105 at the time of this writing — from the project homepage.

FeedWordPress 0.991 is now available for download.

Version 0.991 fixes some bugs that were present in version 0.99, adds a couple of minor features, reorganizes the file structure of the archive, and adds one very significant change. Let’s start with the significant change, which I am very happy to announce:

  • WORDPRESS MU COMPATABILITY: FeedWordPress should now be compatible with recent releases of WordPress MU. Once FeedWordPress is made available as a plugin, each individual blog can choose to activate FeedWordPress and syndicate content from its own set of contributors.

And now on to the bug fixes:

  • BUG RELATED TO INTERNATIONAL CHARACTERS IN AUTHOR NAMES FIXED: Due to a subtle incompatability between the way that FeedWordPress generated new user information, and the way that WordPress 2.0 and later added new authors to the database, FeedWordPress might end up creating duplicate authors, or throwing a critical error message, when it encountered authors whose names included international characters. This incompatability has now been fixed; hopefully, authors with international characters in their names should now be handled properly.

  • media:content BUG IN MAGPIERSS FIXED: A bug in MagpieRSS’s handling of namespaced elements has been fixed. Among other things, this bug caused items containing a Yahoo MediaRSS <media:content> element (such as many of the feeds produced by wordpress.com) to be represented incorrectly, with only a capital “A” where the content of the post should have been. Feeds containing <media:content> elements should now be syndicated correctly.

  • MAGPIE WARNINGS NO LONGER DISPLAYED BY DEFAULT: A number of MagpieRSS warnings or error messages that were displayed when performing an automatic update are no longer displayed, unless debugging parameters have been explicitly enabled.

Some minor bugs in the administrative interface have also been fixed.

I have received some feature requests concerning the new updating system that I introduced in FeedWordPress 0.99. Under the old system, there was a (needlessly complicated) system for having FeedWordPress poll its feeds for updates, which could be activated with a cron script on a regular schedule, thus keeping FeedWordPress up to date. In version 0.99, I replaced this with a much simpler system, in which FeedWordPress would automatically poll its feeds, according to a certain schedule, when users visited your website. (Of course, a cron script could still be used to make sure that this was activated on a regular schedule.) However, some users wrote me that they preferred that visitors not have to wait for the polling to finish before the page loads. So, I’ve added an HTTP parameter which gives you the option. If you prefer not to use WordPress’s cron-less automatic updates, you can now use the update_feedwordpress parameter instead. Here’s how it works:

  • Leave Automatic Updates turned off. This will ensure that FeedWordPress polls for updates only when you tell it to do so.

  • Add a line something like the following to your crontab:

    */15 * * * * curl --silent http://www.zyx.com/blog/?update_feedwordpress=1
    

    … replacing http://www.zyx.com/blog/ with the address of the blog where FeedWordPress is installed. This line will instruct FeedWordPress to poll for updates once every 15 minutes. If you have left Automatic Updates off, it will only check for updates on the 15 minute interval.

If you prefer the cron-less update method, then that’s still available; just go to Options –> Syndication and turn Automatic Updates on.

Finally, a word about the re-organization of the archive. FeedWordPress is now listed in, and hosted by, the kind folks at the WordPress Plugin Directory. In line with their style guide about how to organize archives, I have moved the main plugin files — feedwordpress.php and syndication-options.php — to the root directory of the archive, and I have relocated the MagpieRSS upgrade to a subdirectory called, creatively enough, MagpieRSS-upgrade. However, please remember that in order to take advantage of the MagpieRSS upgrade — which you will definitely want to take advantage of, unless you don’t care about Atom 1.0 feeds, proper handling of multiple categories, or several bug fixes — you must still copy the contents of the MagpieRSS-upgrade directory to the wp-includes folder of your WordPress installation.

Enjoy, and have a wonderful Thanksgiving, y’all.

Advertisement

Replies to FeedWordPress 0.991: bug fixes, reorganization, minor features added — and MU compatability (41 so far…) Syndication feed

  1. [...] FeedWordPress users may be pleased to know that this bug has been fixed in the latest release of FeedWordPress, version 0.991. [...]

  2. Blogie says:

    Yipee an upgrade!! Congrats! I looove your plugin. I use it for the aggregator site of some of my city’s best blogs.

    One request? I wish FeedWordPress would have the functionality to NOT update already-aggregated posts from syndicated blogs. See, when posts are edited or modified by their authors, FeedWordPress seems to treat these modified posts as new entries. Hence, I get duplicate posts in the aggregator site.

    On the whole, I am very very happy with your plugin. Thanks!!! m(_ _)m

  3. [...] the new version here. Related posts Evil Automated Income #1 – Onlywire and Feedwordpress*** Disclaimer: The [...]

  4. [...] nueva versión de FeedWordPres, un plugin para crear planetas de blogs en WordPress,   es ahora compatible con [...]

  5. Zed says:

    What do I need to do to get the links to open in a new window?

    Thanks

  6. lazyleo says:

    Thanks Rad Geek :) this is really nice of you keep giving to the community,

    Have a nice Day.

    Regards, Kenny G

  7. Great plug in, my overall fave aggregator

  8. jeff says:

    on one of my blog when im activate feedworpress the plugin page become blank and unavailable:( the syndicate button is there but the plugin page on worpress is unreachable because i get a blank page i use wordpress-2.3.1 can you help me out:(

  9. Marre says:

    Any news on filtering? I really want to auto-assign categories to posts with the help of keywords, but I don’t know enough PHP to make it work.

  10. Steve J Bayer says:

    Great Plugin, My overall fave aggregator for WPMU.

  11. Kaleo Silva says:

    Blogie,

    To make feedwordpress ignore updated posts, just find this line:

    $this->_freshness = 1; // Updated content

    and replace with

    $this->_freshness = 0;

    This will make it treat updated posts as old posts and not update them in your database.

  12. Jon Phillips says:

    This is an awesome update! Thanks for getting it into SVN! Now I will run from the latest stable branch always!

    But, when I upgrade to the latest, when I go to either the Syndication Option or

    http://overlap.org/wp-admin/feedwordpress/syndication-options.php

    or

    http://overlap.org/wp-admin/feedwordpress/feedwordpress.php

    FWP, automatically loads up all posts outside the admin interface? I can’t find a workaround right now…anyone else getting this?

  13. Jon Phillips says:

    Nevermind, my main feedwordpress folder I had named ‘feedwordpress-svn’ which was causing the problem. Once I named ‘feedwordpress’ as you recommended, then all worked well. Cheers!

  14. dinamic says:

    Hi, great plugin! it’s awesome, sure.

    Just three comments to know how to improve some new things on the plugin.

    1. I want to display in every post displayed a intro of few words, for example characters. And finally a “read more” link to the full post in the original blog syndicated. Do you know if it’s possible? any “code” to add to my template?

    2. Now the plugin displays “comments” and it’s linked to the original blog comments zone. Is it possible to show the exactly number of comments in the original blog post, like “6 comments”. And of course be linked to the comments zone. Do you know if it’s possible? any “code” to add to my template?

    3. I’ve read your API and documentation several times but i don’t find how to display this info: I want to syndicate may be 20 blogs and i want to show only the last post of each one. So in the syndication page i will find only 20 posts, one of each blog, but each one must be the latest one. Do you know if it’s possible? any “code” to add to my template?

    4. Finally, in point 3 i’ve wrote that i’m going to syndicate 20 blogs displaying the last post. It’s possible to syndicate 20 and onlye display the last 10 posts updated with the same criteria (only display the last post of each blog, showing in this case only 10 of 20?) Do you know if it’s possible? any “code” to add to my template?

    THANKS A LOT!

    This would be great to use in any wordpress installation and of course in a wpmu installation. I think this could be possible because the api is very customizable but i don’t find how to do it or the way to do it.

    Any help are going to be vry appreciated.

    Thanks a lot, regards, i’m waiting a response from you. ;)

  15. nullamatix says:

    Rad Geek!

    Sent you an email yesterday, not sure if it went to spam or not. I’ve yet to receive a reply, so here I am :) Perhaps this will spark some discussion.

    Anyway, here’s the question:

    I was wondering how difficult auto inserting rel="nofollow" into every retrieved URI would be. Can you provide some guidance? I’ve been looking through the code but PHP isn’t anything like coldfusion.

  16. Premasagar says:

    Very nice. Thank you for releasing and maintaining this.

    I’d like to have it assign any tags or categories from the RSS as WordPress post tags (rather than WordPress categories). I’d still like the option to post a feed’s posts to a specific WordPress category, though.

    Any thoughts or suggestions before I lunch into the code?

  17. Amirali says:

    i hope dinamic you got your solution but i m looking for the same solution can anyone help me with the same query as dinamic had.

    waiting to hear from the author.

    tc

  18. mark says:

    Is it possible to display the contents of the feeds, as well as the titles?

  19. arun says:

    I tried it with Atom feeds provided by blogspot sites. ( hosted free on blogger.com). But it is syndicating only title of feed not full feed. It is working great with RSS feed. How can i resolve problem with Atom feed. Sending you message too regarding this.

  20. xonito says:

    No work fine with wordpress 2.3.2, no indexing a categories :(. Please, a need a soluction.

  21. We’re trying to use the feedwordpress plugin, but the software is not importing the enclosures. We are using Wordpress 2.3.1 and the latest feedwordpress (0.991 I think). I copied over the rss.php and rss-functions.php files. The post is imported perfectly – there is just no link to the enclosure.

    Do you have any suggestions for fixing this?

  22. Ignore my earlier comment. The RSS IS displaying the enclosure correctly. The issue is that a link to the enclosure is NOT being displayed in the post. Our users like to be able to click on the link off the website if they are not subscribed. We use anarchy to embed a player for links to media files so the users can click on the website. It would be nice to have an option in FeedWordPress to “Include link to the enclosure”.

  23. John Mark says:

    I have 2 working implementations of feedwordpress, so I was a big flummoxed to discover that installing it a 3rd time on wordpress 2.3.2 yielded a “no feed found” error. Any guesses why this one would work?

    The underlying PHP is 5.1.4.

    -JM

  24. Steve says:

    A few of my feeds have query strings in them that were being ignored.

    I fixed the problem by removing the call to wp_specialchars in the sample preview form on lines 639 and 643 – all works OK now.

  25. Steve says:

    Delete previous comment. It doesn’t work as expected. Somewhere the ampersands are being converted and breaking the feed :(

  26. SHGirl says:

    Love the plug in except all my entries are going backwards. I was feeding in LJ friends and all their newest entries are at the bottom and the oldest are on top. Is there something I should be doing? Everything else works lovely. Thanks!

  27. dave says:

    Here’s my first problem with feedwordpress… feedburner gives this result, after an autoupdate using cron job, havent tried without cron job yet.. The URL you entered does not appear to be a valid feed. We encountered the following problem: Error on line 33: The reference to entity “ct” must end with the ‘;’ delimiter. So far I’ve had to deactivate feedwordpress then reactivate to again have a valid feed again— help!!! I dont want to shut it down but need the feeds

  28. dave says:

    found the problem, dont know how to filter the feed, it was actually an update that caused the ‘bad’ post from showing up. each bad post link is like this: LA Poker Classic Begins Thursday – CardPlayer.com

    the ct= caused the error apparently, it was looking for a ; rather than =, if I edit manually the link down to: LA Poker Classic Begins Thursday – CardPlayer.com then there is no error, so how do I filter this???

  29. Niro says:

    Hi there seems to be a bug when I try to syndicate feedwordpress with wordpress sub diomains. Some sub domains works but some don’t can you address this issue..

    Hmm for example http://hamzeen.wordpress.com when syndicated I get only the header.. The content is said “A”

    Please tell me why is this..

  30. gigger says:

    There is a serious problem with FeedWordPress 0.991. In automatic mode it can’t syndicate the Feeds with embedded video (like YouTube ones) when “Check for new posts” option set to “automatically”. All the videos are being stripped off!

    On the other hand, FeedWordPress 0.991 does syndicate such feeds w/o any problems in case if “Check for new posts” option is set to “only when I request”.

    Is there any solution to fix this problem? Otherwise the new version of FeedWordPress is useless for everyone who want to syndicate feeds with embedded flash videos.

    Please help!

  31. Richy says:

    Great plugin.. I have a feature request :) Who hasn’t :P

    I found this autotag plugin which uses the yahoo term extraction web service.

    It runs whenever you press save after typing your post. Is their a way to integrate this plugin into feedwordpress?

    The autotag plugin: http://www.semiologic.com/software/publishing/autotag/

  32. Richy says:

    Strike that last comment. I already found the way to integrate the Yahoo! term extraction service into feedwordpress.php using part of the autotag plugin.

  33. I’ve got the same problem as Blogie. Namely that if we edit posts once they have been syndicated into Word Press, then the old unedited post is added again when you come to update from Feedwordpress again.

    I think Kaleo Silva might have misunderstood the problem. When I tried his solution new items in the original RSS feed are not being syndicated.

  34. T Agee says:

    Seems like just what I need, but does it work with video? When I put in a YouTube feed, for example, I get a long link with all sorts of info as the post title, but no video.

    Thanks.

  35. Rad Geek says:

    Niro:

    Hi there seems to be a bug when I try to syndicate feedwordpress with wordpress sub diomains. Some sub domains works but some don’t can you address this issue..

    Hmm for example http://hamzeen.wordpress.com when syndicated I get only the header.. The content is said “A”

    From your description of the problem it sounds like you need to install, or re-install, the optional MagpieRSS upgrade. In order to do so, copy the files rss.php and rss-functions.php from the MagpieRSS-upgrade/ directory in the FeedWordPress archive, to the wp-includes directory of your WordPress installation. This will replace the buggy, old version of MagpieRSS that ships with WordPress, with a newer version in which this bug is fixed.

    Steve,

    A few of my feeds have query strings in them that were being ignored.

    [...]

    Somewhere the ampersands are being converted and breaking the feed :(

    The problem you encountered is due to a bug in WordPress 2.x. The latest release of FeedWordPress, 0.992, corrects for the bug and should solve your problem.

  36. daveand5 says:

    ->Ricky How did you get autotag to work with FWP? I’m using simpletags and it consistantly misses on an erratic schedule, and need a consistant way to auto ad tags to FWP feeds posts

  37. Niro says:

    From your description of the problem it sounds like you need to install, or re-install, the optional MagpieRSS upgrade. In order to do so, copy the files rss.php and rss-functions.php from the MagpieRSS-upgrade/ directory in the FeedWordPress archive, to the wp-includes directory of your WordPress installation. This will replace the buggy, old version of MagpieRSS that ships with WordPress, with a newer version in which this bug is fixed.

    No, no! The optional MagpieRSS WAS installed. You didn’t get my explanation. The feed with embedded video syndicates without problems if I do it manually from FeedWordPress control panel. But it syndicates without video if FeedWordPress does it automatically using pseudo-cron. That is a problem.

  38. Richy says:

    Well here’s what I did for the autotagging part

    Download the software from http://www.semiologic.com/software/publishing/autotag/

    Drop the extract-terms.php into the feedwordpress dir.

    Edit the feedwordpress.php

    • Do an include somewhere at the top include_once dirname(FILE). '/extract-terms.php';

    • Comment thecontent filters (I dont wrie my own posts, just feedwordpress posts) // addfilter('thecontent', 'feedwordpresspreservesyndicatedcontent', -10000); // addfilter('thecontent', 'feedwordpressrestoresyndicated_content', 10000);

    • add an action below the fwppublishposthook action addaction('publishpost', 'autotagentry');

    • add the autotag function below the fwppublishposthook function around line 1630 function autotagentry($postid) { $post = getpost($postid); $terms = getthepostterms($post);

          if ( $terms )
          {
              $tags = '';
      
              foreach ( $terms as $term )
              {
                  $tags .= ( $tags ? ', ' : '' ) . $term;
              }
      
              wp_set_post_tags($post_id, $tags, true);
          }
      

      }

  39. Darren says:

    Thanks for a fantastic plug-in, Rad Geek! If I can get this problem I am having fixed, I am definitely planning to donate. I spent two weeks trying to make Joomla do what FeedWordPress did in 5 minutes.

    My problem is the same as Blogie and John Thompson’s. Occasionally I’ll need to edit the title, description, or category of a syndicated post. But when FeedWordPress checks the RSS again, all my changes are blown away. (Fortunately I’m not getting duplicate posts.)

    Any way to disable this, or give us an option to disable it?

  40. Sonny says:

    Hi - I can’t get my feed(s) to update when I want them to anymore. Although I set FeedWordPress to check every minute for changes, it’s still scheduling them for a few hours away. The strangest thing though is that when I click ‘Update Selected Feeds’, it finds no new posts, even though the RSS file has updated, often numerous times. I’m taking the feeds from a Blogspot blog which publishes RSS to an offsite server.

    Thanks!

  41. Esther says:

    I use FeedWordPress to operate a blog portal that syndicates a few of the blogs from a WPMU installation — and I’m really happy with it!

    Recently, a user asked for the ability to embed media in posts and I’m testing Anarchy. The weird thing is that the syndicated feeds do not “grab” the media content. Posts made in the blog that acts as a portal work fine, but not ones that are being syndicated.

    For anyone that might have suggestions, here’s a link to my test site: http://sophia.smith.edu/betablog/