I’ve decided to release our internal RSS/RDF/Atom/XML feed aggregator code here. It is smaller and less resource intensive than a lot of other stuff out there, and we’ll be improving it further over time.Enjoy, and add comments here if any feedback or feature requests!
NEW VERSION!
Please grab the , and use the new version of CG-FeedRead it has!
NEW VERSION!
We ask if you find this useful to go to THIS PAGE, grab one of the cool link graphics, and give us a link back! Thanks!
Change history:
- Updated 04.26.04, lots of cleanup, mini doc.
- Updated 05.04.04, included helper_fns.php for more features, tweaks to code and docs.
- Updated 05.12.04, integration update with CG-Amazon.
- Updated 05.28.04, minor updates across the board.
- Updated 06.02.04, Updated with new XMLParser code, allows HTML in descriptions, makes empty array nodes into null values.
- Updated 06.03.04, Updated to embed the cg-plugins sub-directory structuring.
- Updated 06.13.04, Added support for installing as a WordPress 1.2+ Plugin, other misc fixes.
- Updated 06.14.04, Major bugfix to caching mechanism.
- Updated 06.16.04, Fixes for empty fields, use Title instead of Description, handle duplicate fields (multi-category, etc.).
- Updated 06.21.04, Minor fixes to shared code.
- Updated 06.24.04, Fixes to ’snippet’ code, and code execution flow, to avoid chopping html-ized special character tags partway.
49 Comments
RSS feed for comments on this post.
The URI to TrackBack this entry is: http://www.chait.net/wp-trackback.php/85




when i try to download the file and open it, it is damaged. Is that on my end?
I haven’t heard of anyone having problems downloading the zip – and I just downloaded it myself, came through intact.
Doesn’t seem to work when you follow the directions exactly. Perhaps it is for an old version of wordpress?
Hi Thanx for the script!
But, I gor an error, missing function file_get_contents
feedreed.php: $output = file_get_contents($cachePath);
I serched thru the code and cant find this function, or am I missing something?
Please replay by mail.
I’ve updated the files a bit. People with problems can contact me and I can help you work through them.
“It is smaller and less resource intensive than a lot of other stuff out there” it is indeed beter, thanks. (オンラインカジノ from Japan)
Thanks for the feedback! Glad you like it. The latest version is much cleaner, and now integrates with the CG-Amazon code, so you can use more of my solutions interchangeably.
I like the aggregator–small and simple. I’m using it to feed a sidebar on my site from another WP-powered site. Seems to choke on quotation marks, apostrophes and html in the content section, though. Is it just me, or is this a known issue? I know, it’s probably just me…
All better now. Wasn’t grabbing the description from the right XML field, wasn’t encoding properly, etc.
I seem to keep coming back go ChaitGear for WP plugins! Is there any hope that this will be re-written as a “plugin” for WP 1.2. Currently the documentation still says to “modify your index.php or my-hacks.php file.” T
Plugin mods are coming!
Hi David. I’m using the FeedRead on my site at the moment. I use WP but have set FeedRead up as a separate page unconnected with WP. It works fine with one slight problem. There isn’t always a “title” for each feed. Is it possible to use the site’s address for the “title” instead?
Yeah, some minor bugs there – should be a new version up soon.
Thanks David. Downloaded and installed the latest update and everything is working fine.
[…] Quick Links
Added sidebar lists of Wiki Changes and deli.icio.us links using CG-Feedread Minor tweak to suppress feed titles see BlogFeedReader
Links del.icio.us Sources U […]
It seems that it has problems listing output if there is only one in the XML feed. If I have two or more, then it works fine. Is this a known problem, or do I have something wrong? Thanks.
It seems that it has problems listing output if there is only one ITEM in the XML feed. If I have two or more, then it works fine. Is this a known problem, or do I have something wrong? Thanks.
(sorry for the double post, darn brackets)
Hmmm. Yep, that could happen due to the way the system collapses things. Let me do some testing as I’m in the midst of an overhaul anyway.
I keep getting this error:
Fatal error: Call to undefined function: parseurl() in /home/virtual/site117/fst/var/www/html/oomsonline.com/index.php on line 107
Where do I define the function? I must sound like an idiot, I read the instructions ten times over and I think I’m missing something obvious. I’m using wordpress.
I’m having trouble using $filtercat. How exactly does one pass values into it. I get pageload errors when I use “General” or ‘General’, for example. Thanks for the code.
I’m having a bit of a problem, but I think it’s user error, not the plugin. I’m still hoping you might be able to help though!
I want to use this to do a “recent photos” section on a different blog. I figured that it should be possible and I do get the RSS to show up, but I can’t figure out how to make the pictures work with the RSS feed. I hesitate to break everything by editing wp-rss. Any suggestions for me or places where I might be able to look for more information on doing this? Thanks a bunch for your help! (I love your plugin, btw.)
Like Marius Ooms, I keep getting this error : “Fatal error, call to undefined function: parseurl()”. Can someone help me ? I’ve installed WordPress 1.2. I don’t understand why it doesn’t work, what could I do ?
Mmmhhh, I guess I’m unlucky because I get a “Forbiden” page when I try to download the zip package… Does it mean that I won’t have my RSS/aggregator ? T_T
Hi - great script! The only minor problem I have is with the the nordic charset. Can You guide me to a solution?
Quick followups:
1. EVERYONE should get the CG-PowerPack and use that version. This is now two months out of date.
2. Casj, would love to help. Don’t know what problems you are having, feel free to leave your email or use my About:Contact Form.
Hi! It seems that this script doesn’t work with non-english feeds. When I tried to FeedRead feeds in Russian I got “CGFR: Feed contains invalid format.”
Estaq bien este invento… Un saludito.
Hi, I’m having a problem with CG-Feedread on WordPress… I was able to activate the plugin on the admin page, but when I clicked install, I got this error:
Fatal error: Call to undefined function: feedreadinstall() in /home/moero/www/www/blog/wp-content/plugins/cg-feedread-plugin.php on line 31
Help please.
Thanks
Just as an update, CG-Feedread supports non-english feeds (either in UTF8, or converting them to UTF8), and the install button is a ‘left over’ that will be removed in the next release. Just change cache_feedread so that it is writeable by the server, and it’s good to go.
[…] ¥á¥â(WordpressME) - KINAMI @ 17:38
Skype¤Ç¤ªÃÞ¤ê¹ç¤¤¤Ë¤Ê¤Ã¤¿Êý¤«¤é¶µ¤¨¤Æ¤¤¤¿¤À¤¤¤¿FeedRead¤òÆþ¤ì¤Æ¤ß¤¿¡£ RSS¤äXML¤Ê¤É¤Þ¥ê¡¼¥À¡¼¤À¤±¤É¡¢¼«Ê¬¤Þ¥µ¥¤¥È¾å¤Ë¸Æ¤Ó½Ã¤¹¤Þ¡£ ¤ä¤ê¤¿¤¤¤±¤ì¤É¤â¤ä¤êÊý¤¬¤ï […]
Tried your FeedRead plugin in Wordpress 1.2 and can see it’s potential. But is it possible to get it to work through a firewall? Most of the RSS aggregators nowadays need to allow proxy and port configuration. Without this feeds from beyond the intranet just don’t make it.
Many thanks for your work.
I am actually having one issue with the FeedRead script. The entity is being converted to by the script. Am I missing some flag or preference here? I also noticed that if each line is not terminated by a trailing space, lines get squished together coming out of WordPress.
finally! something useful on the internet
thanks a lot for making this for us. I’ve been going through the PHP code, but can’t seem to find the part where it composes the portion where it assembles the stuff to be displayed on the site – i’d like to have it just show the actual links and supress the rss feed title. any idears? TIA
Is it possible to use more than one instance of feedread on a (non-wordpress) page? I’ve been trying this by creating two feedread directories and referring to them separately, but the second one won’t display.
hey great script!!! thanks so much.
one issue. when using multifeed, the parameter that limits the description character length doesn’t seem to be working. any thoughts? it pulls in multiple feeds just fine though it pulls in more than i want to display.
here’s my applicable code:
$feedOut = getSomeFeed($feeds, $count, true, 'multifeed', '', 30, 30, false, false, 0, false, false, true);
if (!empty($feedOut)) echo $feedOut;
thanks!
mark
hi! like mark im trying to figure out how to change the number of characters or words on the descriptions. Do you change this on the multifeed code itself? on the cg-feedread.php file or the cgfeeds.php file? many thanks in advance!
Is there any way to not show a feed’s title? The title of the RSS feed that is, not the individual entries titles….
If the $noTitle param is set to true, you won’t get a feed title – if it’s set to false, you should (at least with the latest version in the CG-PowePack). Also, if you set the $titleImages param to true, it will show whatever image/graphic the feed defines as its ‘title graphic’.
how about a search function?
lov the reader… thanks
What kind of search function would you want in an RSS aggregator?
Hey David, I checked out the Feedread plugin. I was thinking if you have (or happen to know of another) php resource that allows one to read rss from wordpress and display it on a standalone page somewhere else.
Feedread’s code can be used from any PHP-based website, and I think I included an example PHP file that shows grabbing multiple feeds – applicable for doing a news page somewhere. All you need is to include cg-feedread.php (using the proper path to it…) from within your main code.
Hi David! I am experiencing a strange behavior: Everything is set to utf-8 in my pages (in the making…) When I try to import feeds set to 8859-1, they simply don’t show up! Is there something I do not understand/forgot to set? Thanks!
Hello, can this plugin pack be used on the latest versions of wordpress ?
I think this could be very useful
The CG-PowerPack runs pretty well on WP2. There have been minor issues reported, nothing major. A new version is expected at some point.
Hi, David, Joni here. I’m finding that my beloved ChaitGear Power Pack doesn’t seem to work with WP Ella. Fortunately, CGPHP works just fine (phew!), but CGFeedReader and some of the other PowerPack items return a blank index page when they are activated.
Joni
P.S. Your next latte and bran muffin are on me.. (Hitting the PayPal link..)
:)
Having some odd problems with FeedRead. It’s working perfectly on my site’s home page, but I’m trying to set it up on a subdomain and it goes haywire. I can’t understand it as I’m using exactly the same settings (same files, in fact). Have tried using newly downloaded files as well, but same problem. If anyone can contact me, I can show you the details as it’s too complex to write here!
anyone tried to use the script on latest wp2.3.3 ? thanks