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: [ross] RSS and FireFox

By Itsnoprob - April 1, 2009

Hi Ross,

Thanks again for your assistance - I have used Interactive tools for years and it's a combination of the quality of the products and of the support provided which continues to impress me.

I have added 'Autodiscovery' code to http://www.itsnoprob.co.uk/Content_Management_System_FAQs.php so that browsers identify the RSS feed on the page.

This has not affected Internet Explorer but in Firefox there has been a difference - it now automatically triggers the opportunity to bookmark the main Itsnoprob link but doesn't display the RSS feed....

I take your point, Ross, about removing <p> tags from the title - which is, you're right, a $question variable from CMSB set up using WYSIWYG. I'll try amending as you suggest and let you know the result!

Thanks,

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

Personal Service on the Net!