RSS and FireFox

5 posts by 2 authors in: Forums > CMS Builder
Last Post: April 1, 2009   (RSS)

By Itsnoprob - March 30, 2009

Hi,

I have managed to get a functioning - in Internet Explorer - RSS feed up and running at http://www.itsnoprob.co.uk/rss.xml.php but it does not function at all properly in FireFox. All that is displayed is the $summary field from my following code:


<?php // Load record list
require_once "/home/itsnoprobuk/public_html/cmsAdmin/lib/viewer_functions.php";
$options = array();
$options['tableName'] = 'faq';
$options['orderBy'] = 'updatedDate';
$options['viewerUrl'] = 'http://www.itsnoprob.co.uk/faqPage.php';
$options['pageNum'] = '1'; list($listRows, $listDetails) = getListRows($options);
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";

?>

<rss version="2.0"> <channel>
<title>Itsnoprob Web Services - Web Site Content Management</title>
<link>http://www.itsnoprob.co.uk/Content_Management_System.php</link>
<pubDate><?php echo date('r'); ?></pubDate>
<language>en-us</language>
<?php foreach ($listRows as $record): ?> <item>

<title><?php echo ($record['question']) ?></title>
<description><![CDATA[<?php echo htmlspecialchars($record['summary']); ?>]]></description>
<pubDate><?php echo ($record['updatedDate']) ?></pubDate>

<link><?php echo $record['_link'] ?></link>
<guid isPermaLink="true"><?php echo $record['_link'] ?></guid> </item>
<?php endforeach ?>
</channel> </rss>


I would be grateful for any ideas as to amends I need to make it function in Firefox....????

Many thanks,

Nigel
http://www.Itsnoprob.co.uk

Personal Service on the Net!

Re: [Itsnoprob] RSS and FireFox

By ross - March 31, 2009

Hi Nigel

Thanks for posting!

I had a look at the link you posted in FireFox and it was coming up as I would expect an RSS to. Did you already get this one solved?

If you are still having trouble, I think it might be the fact that IE will usually guess how to display you page based on the code inside it. So even though it ends in .php, IE sees the XML and loads it as an RSS.

FireFox doesn't do this. It will see the .php extension and expect there to be PHP in the page. When it opens up and sees xml, it gets confused.

Let me know how things are going and I'll keep at this one for you if we need to.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] RSS and FireFox

By Itsnoprob - March 31, 2009 - edited: March 31, 2009

Hi Ross,

Thanks very much for your reply.

At this end, as I say, I just get summary of content without links... (I have attached a small screenshot of the Firefox output)

Nigel
http://www.Itsnoprob.co.uk

Personal Service on the Net!
Attachments:

firefox.gif 22K

Re: [Itsnoprob] RSS and FireFox

By ross - March 31, 2009

Hi Nigel

I think I see what's happening now. If you check the source on that page, there are <p> tags in the <title> and I think that's why your titles aren't showing up. RSS is very picky about the content it uses.

You don't usually see <p> tags in a title so I am thinking you might have that field setup in CMS Builder as a WYSIWYG editor. If that's the case, you'll want to switch it back to a regular text field and go through your articles removing the <p>

Give that a shot. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/