freshJet Posted November 12, 2011 Report Share Posted November 12, 2011 I want to make an RSS Feed for latest news. This is my code: lib/rss/latestnews.rss <?xml version="1.0" encoding="utf-8"?><rss version="2.0"> <channel> <title>Latest News</title> <link>http://www.freshjetvirtual.com</link> <description>All the latest news from freshJet</description> <lastBuildDate>Thu, 10 Nov 2011 06:36:50 CST</lastBuildDate> <language>en-us</language> <item> <title><?php echo PopUpNews::GetFieldValue($popupnews->subject);?></title> <description><?php echo PopUpNews::GetFieldValue($popupnews->body);?></description> <link>http://www.freshjetvirtual.com/index.php/PopUpNews/popupnewsitem/?itemid=<?php echo PopUpNews::GetFieldValue($popupnews->id);?></link> <pubDate><?php echo PopUpNews::GetFieldValue($popupnews->postdate);?></pubDate> <description></description> </item> </channel> </rss> It won't work. I've got a channel but no content. Does the PHP not work because it's external? Quote Link to comment Share on other sites More sharing options...
P.I.A.S Virtual Posted November 12, 2011 Report Share Posted November 12, 2011 I want to make an RSS Feed for latest news. This is my code: lib/rss/latestnews.rss <?xml version="1.0" encoding="utf-8"?><rss version="2.0"> <channel> <title>Latest News</title> <link>http://www.freshjetvirtual.com</link> <description>All the latest news from freshJet</description> <lastBuildDate>Thu, 10 Nov 2011 06:36:50 CST</lastBuildDate> <language>en-us</language> <item> <title><?php echo PopUpNews::GetFieldValue($popupnews->subject);?></title> <description><?php echo PopUpNews::GetFieldValue($popupnews->body);?></description> <link>http://www.freshjetvirtual.com/index.php/PopUpNews/popupnewsitem/?itemid=<?php echo PopUpNews::GetFieldValue($popupnews->id);?></link> <pubDate><?php echo PopUpNews::GetFieldValue($popupnews->postdate);?></pubDate> <description></description> </item> </channel> </rss> It won't work. I've got a channel but no content. Does the PHP not work because it's external? Your idea seems to be nice. Good Luck ! Quote Link to comment Share on other sites More sharing options...
Strider Posted November 12, 2011 Report Share Posted November 12, 2011 Look at how the default RSS feeds are made in the lib/rss folder and copy them. Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 12, 2011 Author Report Share Posted November 12, 2011 That's how I did it, but they show the actual output if you know what I mean - not the PHP codes. Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 13, 2011 Author Report Share Posted November 13, 2011 Anyone else? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted November 13, 2011 Moderators Report Share Posted November 13, 2011 Take a look in the core/common/RSSFeed.class.php Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 13, 2011 Author Report Share Posted November 13, 2011 OK still not sure what it actually means though... Quote Link to comment Share on other sites More sharing options...
Daniel Gallagher Posted November 19, 2011 Report Share Posted November 19, 2011 Has anyone actually got this working? I would quite like to know how to do it... Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 19, 2011 Author Report Share Posted November 19, 2011 No I'm still waiting Quote Link to comment Share on other sites More sharing options...
freshJet Posted November 30, 2011 Author Report Share Posted November 30, 2011 I think I see what's happening. The PHP in the RSSFeed.class.php works so that when you view the RSS files in lib/rss, they are shown in their output form. So it's impossible to know what the source code is to make a new one. Help!!! Quote 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.