Automatically Add RSS Aggregated Feeds as Posts to Wordpress 2.2
Here is a how to showing how to add RSS Feed Aggregation to Wordpress 2.2.
Required: Wp-o-matic, Wordpress-2.2
First, let us not find out what kind of fun it is to replace work without a backup.
About the wp-o-matic 0.2 beta archive. It was made on a mac and I had to use a program other than the built in Windows XP Zip Folders to extract the archive entirely. WinRar extracted without difficulty but I still had to erase the extra .DS_Store files and __MACOSX directory.
Wp-o-matic version 0.2 beta had a problem in the mysql field description. This was my first stumbling block. Fix this first even if your tables use the default wp_ prefix.
Now locate the directory your theme is stored in and open index.php. Somewhere in index.php you should find <?php the permalink() ?> next to ‘read more’, depending on the theme you use. Change this to say:
<?php $a_wprss_link=get_post_custom_values(”wprss_link”); if(!empty($a_wprss_link)){echo $a_wprss_link[0];}else{the_permalink();} ?>
This uses the get_post_custom_values() to pull the link data from the post created by Wp-o-matic. If there is nothing in this field then the regular permalink is used.
Good. If you haven’t already uploaded the wpomatic folder to your plugin directory do that now.
Turn on the plugin. If your database tables do not start with wp_ and you get an error here reguarding the database, read the part above that you skipped over a little to fast. Other errors are likely directory permission settings. Try chmodding to 777.
Then go to Options/wp-o-matic and enter in a feed to test. If all goes well you have a working RSS Aggregation system.
Now the interface does not let you enter complicated urls like http://news.search.yahoo.com/news/rss;_ylt=A9j8eu.hUnlGwfcAtRfQtDMD; ylu=X3oDMTA3MTBsZGZsBHNlYwNhZG0-?ei=UTF-8&p=chrysler &c=&eo=UTF-8, so if you have phpMyAdmin installed use it to load the url. Wp-o-matic will then be able to pull feeds where it wasn’t before.
If you want would like to add a target=_blank for outside links only then enter the following inside the <a href> defination next to the code we entered above. Note the code we entered above will be sourounded by quotes so you need to paste this outside of those quotes so this doesn’t become part of the link.
<?php $a_wprss_link=get_post_custom_values(”wprss_link”); if(!empty($a_wprss_link)){echo ‘target=_blank’;} ?>
The idea here is to always open rss links in a seperate window and open internal links in the same window.
Let me know if this helps.
Tags: Chrysler, database, mac, macosx, os x, windows xp, winrar, WordPress, yahoo
Comments
Comment from Ben
Time: June 27, 2007, 8:02 am
I’m not the author of the plugin but the few rss feeds I’ve tried work fine with 0.2beta, namely Yahoo feeds. Have you checked the feed in a browser to see if it is showing everything you are expecting it to show?
Comment from admin
Time: June 27, 2007, 8:17 am
I would think that if it is somebody else’s article and unless redistribution is clearly stated in the article, it shouldn’t be copied 100%. Only just enough of the article to get people interested enough in clicking on it should be copied. If redistribution is clearly stated in the article then those types of articles should not be automated and done by hand. That way authors rights are maintained either way.
My 2 cents.
Comment from purple
Time: July 1, 2007, 5:44 pm
I have managed to install this on a few wordpress installs but one i get this error message
Fatal error: Call to undefined function: get_categories() in /home/xxxxxx/wp-content/plugins/wpomatic/wpomatic.php on line 161
Any ideas how i solve this
Comment from purple
Time: July 1, 2007, 5:47 pm
how do i add feeds via phpMyAdmin can you add a step by step guide to do this
Comment from Ben
Time: July 2, 2007, 7:45 am
how do i add feeds via phpMyAdmin can you add a step by step guide to do this
ok
Step 1. Add any feed that works to the plugin using the plugin interface.
Step 2. Open phpMyAdmin and find and replace the url you entered in Step 1 with the url you wanted to use that wouldn’t work in Step 1.
Comment from Ben
Time: July 2, 2007, 7:48 am
I have managed to install this on a few wordpress installs but one i get this error message
Fatal error: Call to undefined function: get_categories() in /home/xxxxxx/wp-content/plugins/wpomatic/wpomatic.php on line 161Any ideas how i solve this
1 Make sure your php.ini has plenty of memory.
2 If that doesn’t work contact the plugins author but first make sure php.ini has plenty of memory.
Comment from purple
Time: July 2, 2007, 10:46 am
thanks for the replies ben nice work around with phpmyadmin will try that, so will it work with say digg feed and google news etc
the other error msg i left message on authors site so hopefully he can help. It is strange as plugin works with other sites i host on same server with same themes etc
Comment from Ben
Time: July 2, 2007, 12:22 pm
All I can say for sure is I have only tried rss feeds.
These two went in fine without a problem:
http://www.chrysler.com/autoshow/feeds/chrysler-all.xml?CMP=AFC-Autoshow
http://www.chrysler.com/autoshow/feeds/chrysler-pr.xml?CMP=AFC-Autoshow
I had to resort to phpMyAdmin to add this one.
http://news.search.yahoo.com/news/rss;_ylt=A9j8eu.hUnlGwfcAtRfQtDMD;_ylu=X3oDMTA3MTBsZGZsBHNlYwNhZG0-?ei=UTF-8&p=chrysler&c=&eo=UTF-8
Perhaps there is a fix already in the comments at the wp-o-matic site.
Pingback from Adam Crowe - links for 2007-07-15
Time: July 14, 2007, 5:45 pm
[...] Technical Difficulties - Wp-o-matic Getting WP-o-matic to work… “On line 334 of wpomatic.php version 0.2 beta, replace the hardcoded “wp_rssfeeds” with {$this->dbfeeds} .” (tags: wordpress rss plugins hacks) Filed in delicious [...]
Comment from Gangster
Time: January 23, 2008, 8:00 pm
This website really helps alot when you are trying to buy a car and also you can build your own vehcle.
Comment from admin
Time: January 24, 2008, 9:55 am
Gangster, your link goes to an outdated feed. It hasn’t been updated for six months.
Comment from james
Time: June 27, 2007, 6:07 am
hmmm,
how to grab all source articles ? the problem is, the article that shown are no complete because of tag, how to show complete articles on my website using this plugins ?
it runs perfectly if we agregate using ATOM, but if we use RSS, it’s getting suck