TCwho Posted July 10, 2005 Share Posted July 10, 2005 Hey everyone. Im trying to create an rss feed of our store's products. I cant get any of the contributions to work. The closest one, and the one that I started working from is this one: RSS contribution that I am trying to modify Now when I try to show this feed testing on a postnuke installation locally .. the file I am using is rss.php .... but nothing shows up except the title of the 'item' - but no image .. the link does work however... <?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="0.91"> <channel> <title>Title Here</title> <source></source> <link>http://www.website.com</link> <language></language> <url>http://www.website.com/catalog/images/3572sm.gif</url> <item> <title>Fi Al Mazr'aa (Rotating Dictionary - Children)</title> <price>$7.00</price>> <link>http://www.website.com/catalog/product_info.php?products_id=179</link> <url>http://www.website.com/catalog/images/3572sm.gif</url> </item> </channel> </rss> ------------ Is it because the file ends in .php or is it using wrong tags??? :( Thank You Quote Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00 Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2005 Share Posted July 10, 2005 Hey everyone. Im trying to create an rss feed of our store's products. I cant get any of the contributions to work. The closest one, and the one that I started working from is this one: RSS contribution that I am trying to modify Now when I try to show this feed testing on a postnuke installation locally .. the file I am using is rss.php .... but nothing shows up except the title of the 'item' - but no image .. the link does work however... <?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="0.91"> <channel> <title>Title Here</title> <source></source> <link>http://www.website.com</link> <language></language> <url>http://www.website.com/catalog/images/3572sm.gif</url> <item> <title>Fi Al Mazr'aa (Rotating Dictionary - Children)</title> <price>$7.00</price>> <link>http://www.website.com/catalog/product_info.php?products_id=179</link> <url>http://www.website.com/catalog/images/3572sm.gif</url> </item> </channel> </rss> ------------ Is it because the file ends in .php or is it using wrong tags??? :( Thank You <{POST_SNAPBACK}> Well these are required elements from the 0.91 rss specification, (http://backend.userland.com/rss091) Required <channel> sub-elements Following are the required elements of a <channel>. <title> -- The name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website. Maximum length is 100 characters. <link> -- A URL pointing to the website named in the <title>. Maximum length is 500 characters. <description> -- A phrase that describes your channel, your channel's positioning statement. Maximum length is 500 characters. <language> -- Indicates the language your channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element is here. <image> -- An XML element that contains several sub-elements, explained here. So you are missing <description> and not sure if <language> can be empty, have a look at that web page for more info Quote Link to comment Share on other sites More sharing options...
TCwho Posted July 11, 2005 Author Share Posted July 11, 2005 Thank You. I eventually figured it out and got it working. However this page you listed could have really saved me alot :lol: of trial and error. After looking at JavaRoasters feed and others feed I saw how they were flowing... Only problem, Its very specific to how I wanted it to show and for the purpose of what I needed. If I release it as contribution, I dont know how many or if any would benefit.... I did write something that logs and registers the ip address and shows it when you are looking at the customers table in the admin section... maybe some would like that... Quote Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.