Hello,
The ‘New Products’ RSS feed that I have as a life bookmark in Firefox shows hundreds of items. Wouldn’t it make sense to limit the feed to what’s really new, maybe one month old maximum?
thanks,
RJ
Hello,
The ‘New Products’ RSS feed that I have as a life bookmark in Firefox shows hundreds of items. Wouldn’t it make sense to limit the feed to what’s really new, maybe one month old maximum?
thanks,
RJ
The feed stuff could definitely use some more attention. I’ll give this some thought.
Thanks mate!
RJ
Just as an update on this, ben___'s been working on feed stuff lately. It’ll be limited to something reasonable the next time we push a major update of the site.
Hmmmm., something has been done. On Google, the RSS feed shows fine, as it does in OSX Mail.
In Firefox however, I get a ‘the Live Bookmark failed to load’, and in Thunderbird I get “http://www.sparkfun.com/commerce/products_rss.php is not a valid feed.”
The problem is the ‘&ndash’ entity used (line 109). It’s a HTML entity, not XML. See also http://en.wikipedia.org/wiki/List_of_XM … references
Here’s a few more hints: http://dotjay.co.uk/2006/sep/named-html-entities-in-rss
even better: http://php.net/manual/en/function.htmlentities.php
Hello, I found a great function when you need a way to encode content from the database as numeric entity references, as that’s a safe way to use high characters and special characters in an xml document, like in an RSS feed.
<?php function xml_character_encode($string, $trans='') { $trans = (is_array($trans)) ? $trans : get_html_translation_table(HTML_ENTITIES, ENT_QUOTES); foreach ($trans as $k=>$v) $trans[$k]= "&#".ord($k).";"; return strtr($string, $trans); } ?>I just pushed a fix for this, things should be a-ok for now =]
Perfect!
thanks a lot, happy Easter.
RJ