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: [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/

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!