Jump to content

Recommended Posts

Posted

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?

Posted

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 !

  • 2 weeks later...
Posted

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!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...