Jump to content



Photo
- - - - -

How to add RSS Feed to Information Box


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1   pchem

pchem
  • Members
  • 43 posts

Posted 06 September 2009 - 03:20

I recently added FWR's RSS 2.0 Products Feed and wanted a neat location to place the RSS link and icon. I decided on placing it in the info box as follows:

To catalog/includes/boxes/information.php about line 23 and under $info_box_contents[] = array('text' => I added:
'<a href="' . tep_href_link(FILENAME_RSS_FEED) . '">' . BOX_INFORMATION_RSS_FEED . '</a>');
and made it the last item in the box.

In catalog/includes/filenames.php at about line 50 I added:
define('FILENAME_RSS_FEED', 'fwrrss.xml');

In catalog/includes/languages/english.php at about line 130 under // information box text in includes/boxes/information.php I added:
define('BOX_INFORMATION_RSS_FEED', 'RSS Feed <img src="images/feed_icon.gif" border=0>');

I got an image from RSS Button Maker here. I named the image feed_icon.gif and uploaded it to catalog/images.

#2   100degrees

100degrees
  • Members
  • 9 posts

Posted 06 June 2011 - 09:25

I recently added FWR's RSS 2.0 Products Feed and wanted a neat location to place the RSS link and icon. I decided on placing it in the info box as follows:

To catalog/includes/boxes/information.php about line 23 and under $info_box_contents[] = array('text' => I added:

'<a href="' . tep_href_link(FILENAME_RSS_FEED) . '">' . BOX_INFORMATION_RSS_FEED . '</a>');
and made it the last item in the box.

In catalog/includes/filenames.php at about line 50 I added:
define('FILENAME_RSS_FEED', 'fwrrss.xml');

In catalog/includes/languages/english.php at about line 130 under // information box text in includes/boxes/information.php I added:
define('BOX_INFORMATION_RSS_FEED', 'RSS Feed <img src="images/feed_icon.gif" border=0>');

I got an image from RSS Button Maker here. I named the image feed_icon.gif and uploaded it to catalog/images.


I hope this works because I'm about to try it.