Adding RSS feed to sidebar

General ShopSite user discussion

Adding RSS feed to sidebar

Postby Feydakin » Tue Sep 22, 2009 2:31 pm

I want to add an rss feed to the sidebar of my site at http://animalcharms.net right under the charity image.. I've used rss2html in the past and it does everything I need.. However, when I add the code needed to make it work to the page template

Code: Select all
<?php
$XMLFILE = "http://animalcharms.net/blog/feed";
$TEMPLATE = "http://animalcharms.net/rss-template.html";
$MAXITEMS = "1";
include("rss2html.php");
?>


I get nothing on screen.. I added a comment where the code goes just to make sure the template was getting updated.. http://animalcharms.net/butterflyjewelr ... stoon_.php (near the bottom)..

So my question is, is there a way to make the templates read the php code properly, or, is there another solution that I might use that someone else has used successfully??
Feydakin
 
Posts: 42
Joined: Wed Jul 23, 2008 11:24 am
Location: Indiana

Postby robm » Tue Sep 22, 2009 9:11 pm

Is the file "rss2html.php" in the butterflyjewelry directory? If not, make sure you reference it with the proper path with the include, or put a copy of this file in each directory where you are calling it.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby Feydakin » Wed Sep 23, 2009 7:01 pm

Thanks Rob.. I never know whether to be happy is was something simple or sad because I overlooked what was actually sort of obvious..
Feydakin
 
Posts: 42
Joined: Wed Jul 23, 2008 11:24 am
Location: Indiana


Return to User Forum

Who is online

Users browsing this forum: No registered users and 89 guests