Forums / All Other Contributions/Addons / RSS2 Feed Contribution

RSS2 Feed Contribution

Views: 202,796

Results 701 to 720 of 955
4 Nov 2009, 10:22 PM
#701
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

RSS2 Feed Contribution

a_berezin:

For everyone who received an error

This version does not support gzip compression! Turn it off in the admin.
Pro version works with the enabled gzip.

Thank you Andrew but I still have problems with some of the feeds in Firefox 3.5.4, IE8 and Safari 4.

In Firefox

http://www.theoutletseason.com/electronics/index.php?main_page=rss_feed&feed=specials

and all the others

looks like:

http://www.theoutletseason.com/electronics en Copyright (c) 2009 Outlet Season Brand name Electronics and computers [email protected] (Global Digital Ventures LLC) [email protected] Wed, 04 Nov 2009 07:37:18 -0500 OSLLC v. v 2.1.4 14.02.2008 15:26 RSS 2.0 Feed 1440 http://www.theoutletseason.com/electronics http://www.theoutletseason.com/electronics/includes/templates/apple_zen/images/rss-icon.png http://www.theoutletseason.com/electronics/index.php?main_page=product_info&products_id=4114 http://www.theoutletseason.com/electronics/index.php?main_page=product_reviews&products_id=4114 Outlet Season Brand name Computers and Electronics Store http://www.theoutletseason.com/electronics/index.php?main_page=product_info&products_id=4114 Wed, 04 Nov 2009 07:06:39 -0500 19.25 USD 4114 0.5 Accell Corp 4 DHB041C007B http://www.theoutletseason.com/electronics/images/isimages/DHB041C007B.jpg http://www.theoutletseason.com/electronics/index.php?main_page=product_info&products_id=4051 http://www.theoutletseason.com/electronics/index.php?main_page=product_reviews&products_id=4051 Outlet Season Brand name Computers and Electronics Store http://www.theoutletseason.com/electronics/index.php?main_page=product_info&products_id=4051 Wed, 04 Nov 2009 07:06:36 -0500 20.04 USD 4051 0.7 Accell Corp 16 DHB041C010B http://www.theoutletseason.com/electronics/images/isimages/DHB041C010B.jpg

Not showing any images ...

In IE8 :

The feeds the header show:

**Only one top level element is allowed in an XML document.
Line: 2 Character: 2

<link rel="alternate" type="application/rss+xml" title="RSS New Products Feed" href="http://www.theoutletseason.com/electronics/index.php?main_page=rss_feed&feed=new_products" />**

but the feed on the footer works but with errors:

** ]]> Outlet Season Brand name Computers and Electronics Store http://www.theoutletseason.com/electronics/index.php?main_page=product_info&products_id=28218 Thu, 22 Oct 2009 00:13:57 -0400 109.99 USD 28218 0.3 Microsoft OEM Software 15601 OEMWIN7HP32B1PK http://www.theoutletseason.com/electronics/images/Microsoft/OEMWIN7HP32B1PK.jpg http://www.theoutletseason.com/electronics/index.php?main_page=product_info&products_id=25853 http://www.theoutletseason.com/electronics/index.php?main_page=product_reviews&products_id=25853 inFAMOUS PS3
**
after the buy now button is displaying the end ]]> of the CDATA statement, that supposed to be parsed by XML ...

In Safari 4:

Safari can’t open the page.
Safari can’t open the page “feed://www.theoutletseason.com/electronics/index.php?main_page=rss_feed&feed=new_products” because Safari can’t load any data from this location.

and the bottom feed has exactly the same error as IE8:

after the buy now button is displaying the end ]]> of the CDATA statement, that supposed to be parsed by XML ...

7 Nov 2009, 10:11 AM
#702
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Does anyone know if this mod can be modified to create a manufacturers RSS feed? So for example if I have a manufacturer called "Armani" it would produce a feed of all those Armani products...?

Thanks

11 Nov 2009, 4:14 PM
#703
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

Hi icecold,

You did something very strange - look at the feed source code.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

11 Nov 2009, 4:26 PM
#704
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

twdhosting:

Does anyone know if this mod can be modified to create a manufacturers RSS feed? So for example if I have a manufacturer called "Armani" it would produce a feed of all those Armani products...?

Thanks

Of course you can modify this script to display any feed :)
Good idea! I will release it. Thanks.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

17 Nov 2009, 8:41 AM
#705
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Re: RSS2 Feed Contribution

a_berezin:

Of course you can modify this script to display any feed :)
Good idea! I will release it. Thanks.

Excellent!

When you have the updated code can you post it on here?

Thanks

21 Nov 2009, 5:16 AM
#706
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: RSS2 Feed Contribution

a_berezin:

Hi icecold,

You did something very strange - look at the feed source code.

Weird code? Well that's generated by your module, I don't have anything strange in my product description that might affect the display ... I installed the module and checked that everything was installed as it supposed to be.

21 Nov 2009, 4:28 PM
#707
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: RSS2 Feed Contribution

countrycharm:

Just make sure your override system for includes > templates/your_template is named correct. If that not it I'm not sure why it is not showing on your site. includes > functions > extra_functions > rss_feed.php is the file that controls what you want to show though.

I have file includes/functions/extra_functions/rss_feed.php. Here is code:

@define('RSS_HOMEPAGE_FEED', '');
@define('RSS_DEFAULT_FEED', '');
@define('RSS_TITLE_DELIMITER', ' : ');
@define('RSS_TITLE_DELIMITER2', ' :: ');

  function rss_feed_title($feed=false) {
    global $current_category_id;
    if(!$feed) {
      $feed = $_GET['feed'];
    } else {
      if(($i = strpos($feed, '&')) !== false) {
        $feed_args = substr($feed, $i+1);
        $feed = substr($feed, 0, $i);
      }
    }
    switch (true) {
      case ($feed == 'news'):
          $title = TEXT_RSS_NEWS;
        break;
      case ($feed == 'categories'):
        $title = TEXT_RSS_CATEGORIES;
        if (isset($_GET['cPath']) && $current_category_id > 0) {
          $title .= RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int)$current_category_id));
        }
        break;
      case ($feed == 'specials_random'):
      case ($feed == 'specials'):
        $title = TEXT_RSS_SPECIALS;
        break;
      case ($feed == 'featured_random'):
      case ($feed == 'featured'):
        $title = TEXT_RSS_FEATURED_PRODUCTS;
        break;
      case ($feed == 'best_sellers_random'):
      case ($feed == 'best_sellers'):
        $title = TEXT_RSS_BEST_SELLERS;
        break;
      case ($feed == 'upcoming_random'):
      case ($feed == 'upcoming'):
        $title = TEXT_RSS_UPCOMING_PRODUCTS;
        break;
      case ($feed == 'new_products_random'):
      case ($feed == 'new_products'):
        $title = TEXT_RSS_PRODUCTS_NEW;
        break;
      case ($feed == 'products'):
        if (isset($_GET['products_id'])) {
          $title = TEXT_RSS_PRODUCT . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_products_name((int)$_GET['products_id']));
        } elseif (isset($_GET['cPath']) && $current_category_id > 0) {
          $title = TEXT_RSS_PRODUCTS . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int)$current_category_id));
        } else {
          $title = TEXT_RSS_PRODUCTS_ALL;
        }
        break;
      default:
        $title = TEXT_RSS_FEED;
        break;
    }
    return $title;
  }

  function rss_feed_current_page() {
    global $this_is_home_page, $category_depth, $cPath;
    $title = $feed = false;
    if($cPath > 0) $cpath_parm = '&cPath=' . $cPath;
    else $cpath_parm = '';
    switch (true) {
      case ($this_is_home_page):
        if(RSS_HOMEPAGE_FEED != '') {
          $feed = RSS_HOMEPAGE_FEED;
        }
        break;
      case (isset($_GET['products_id'])):
        $feed = 'products&products_id=' . $_GET['products_id'];
        break;
      case ($category_depth == 'products'):
        $feed = 'products' . $cpath_parm;
        break;
      case ($_GET['main_page'] == FILENAME_PRODUCTS_ALL):
        $feed = 'products' . $cpath_parm;
        break;
      case ($category_depth == 'nested' && $cPath > 0):
        $feed = 'categories' . $cpath_parm;
        break;
      case ($_GET['main_page'] == FILENAME_SPECIALS):
        $feed = 'specials';
        break;
      case ($_GET['main_page'] == FILENAME_FEATURED_PRODUCTS):
        $feed = 'featured';
        break;
      case ($_GET['main_page'] == FILENAME_UPCOMING_PRODUCTS):
        $feed = 'upcoming';
        break;
      case ($_GET['main_page'] == FILENAME_PRODUCTS_NEW):
        $feed = 'new_products';
        break;
      case ($_GET['main_page'] == FILENAME_PRODUCTS_NEW):
        $feed = 'news';
        break;
      default:
        if(RSS_DEFAULT_FEED != '') {
          $feed = RSS_DEFAULT_FEED;
        }
        break;
    }
    $title = rss_feed_title($feed);
    return array($feed, $title);
  }

  function rss_feed_link_alternate() {
    $feed_array = array('specials', 'new_products', 'upcoming', 'featured', 'best_sellers'); // 'news'
    $link = '';
    foreach($feed_array as $i => $feed) {
      $link .= '<link rel="alternate" type="application/rss+xml" title="' . rss_feed_title($feed) . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
    }
    list($feed, $title) = rss_feed_current_page();
    if($feed && !in_array($feed, $feed_array)) {
      $link .= '<link rel="alternate" type="application/rss+xml" title="' . $title . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
    }
    return $link;
  }

  function rss_feed_link($img=false) {
    global $template, $current_page_base;
    list($feed, $title) = rss_feed_current_page();
    if($feed) {
      if(!$img) {
        $anchor = $title;
      } else {
        $tpl_dir = $template->get_template_dir($img, DIR_WS_TEMPLATE, $current_page_base, 'images');
        $anchor = zen_image($tpl_dir . '/' . $img, $title);
      }
      $link = '<a href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" title="' . $title . '" target="_blank">' . $anchor . '</a>' . "\n";
    } else {
      $link = '';
    }
    return $link;
  }

  function rss_feed_href() {
    list($feed, ) = rss_feed_current_page();
    if($feed) {
      $href = zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false);
    } else {
      $href = '';
    }
    return $href;
  }

  function rss_feed_name() {
    list($feed, $title) = rss_feed_current_page();
    return $title;
  }
// EOF[PHP]

I am not good at code. Where would it be located for icon at top menu bar?

Thanks, Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

22 Nov 2009, 8:01 PM
#708
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: RSS2 Feed Contribution

kburner:

I have file includes/functions/extra_functions/rss_feed.php. Here is code:

[php]
@define('RSS_HOMEPAGE_FEED', '');
@define('RSS_DEFAULT_FEED', '');
@define('RSS_TITLE_DELIMITER', ' : ');
@define('RSS_TITLE_DELIMITER2', ' :: ');

function rss_feed_title($feed=false) {
global $current_category_id;
if(!$feed) {
$feed = $_GET['feed'];
} else {
if(($i = strpos($feed, '&')) !== false) {
$feed_args = substr($feed, $i+1);
$feed = substr($feed, 0, $i);
}
}
switch (true) {
case ($feed == 'news'):
$title = TEXT_RSS_NEWS;
break;
case ($feed == 'categories'):
$title = TEXT_RSS_CATEGORIES;
if (isset($_GET['cPath']) && $current_category_id > 0) {
$title .= RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int)$current_category_id));
}
break;
case ($feed == 'specials_random'):
case ($feed == 'specials'):
$title = TEXT_RSS_SPECIALS;
break;
case ($feed == 'featured_random'):
case ($feed == 'featured'):
$title = TEXT_RSS_FEATURED_PRODUCTS;
break;
case ($feed == 'best_sellers_random'):
case ($feed == 'best_sellers'):
$title = TEXT_RSS_BEST_SELLERS;
break;
case ($feed == 'upcoming_random'):
case ($feed == 'upcoming'):
$title = TEXT_RSS_UPCOMING_PRODUCTS;
break;
case ($feed == 'new_products_random'):
case ($feed == 'new_products'):
$title = TEXT_RSS_PRODUCTS_NEW;
break;
case ($feed == 'products'):
if (isset($_GET['products_id'])) {
$title = TEXT_RSS_PRODUCT . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_products_name((int)$_GET['products_id']));
} elseif (isset($_GET['cPath']) && $current_category_id > 0) {
$title = TEXT_RSS_PRODUCTS . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int)$current_category_id));
} else {
$title = TEXT_RSS_PRODUCTS_ALL;
}
break;
default:
$title = TEXT_RSS_FEED;
break;
}
return $title;
}

function rss_feed_current_page() {
global $this_is_home_page, $category_depth, $cPath;
$title = $feed = false;
if($cPath > 0) $cpath_parm = '&cPath=' . $cPath;
else $cpath_parm = '';
switch (true) {
case ($this_is_home_page):
if(RSS_HOMEPAGE_FEED != '') {
$feed = RSS_HOMEPAGE_FEED;
}
break;
case (isset($_GET['products_id'])):
$feed = 'products&products_id=' . $_GET['products_id'];
break;
case ($category_depth == 'products'):
$feed = 'products' . $cpath_parm;
break;
case ($_GET['main_page'] == FILENAME_PRODUCTS_ALL):
$feed = 'products' . $cpath_parm;
break;
case ($category_depth == 'nested' && $cPath > 0):
$feed = 'categories' . $cpath_parm;
break;
case ($_GET['main_page'] == FILENAME_SPECIALS):
$feed = 'specials';
break;
case ($_GET['main_page'] == FILENAME_FEATURED_PRODUCTS):
$feed = 'featured';
break;
case ($_GET['main_page'] == FILENAME_UPCOMING_PRODUCTS):
$feed = 'upcoming';
break;
case ($_GET['main_page'] == FILENAME_PRODUCTS_NEW):
$feed = 'new_products';
break;
case ($_GET['main_page'] == FILENAME_PRODUCTS_NEW):
$feed = 'news';
break;
default:
if(RSS_DEFAULT_FEED != '') {
$feed = RSS_DEFAULT_FEED;
}
break;
}
$title = rss_feed_title($feed);
return array($feed, $title);
}

function rss_feed_link_alternate() {
$feed_array = array('specials', 'new_products', 'upcoming', 'featured', 'best_sellers'); // 'news'
$link = '';
foreach($feed_array as $i => $feed) {
$link .= '<link rel="alternate" type="application/rss+xml" title="' . rss_feed_title($feed) . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
}
list($feed, $title) = rss_feed_current_page();
if($feed && !in_array($feed, $feed_array)) {
$link .= '<link rel="alternate" type="application/rss+xml" title="' . $title . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
}
return $link;
}

function rss_feed_link($img=false) {
global $template, $current_page_base;
list($feed, $title) = rss_feed_current_page();
if($feed) {
if(!$img) {
$anchor = $title;
} else {
$tpl_dir = $template->get_template_dir($img, DIR_WS_TEMPLATE, $current_page_base, 'images');
$anchor = zen_image($tpl_dir . '/' . $img, $title);
}
$link = '<a href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" title="' . $title . '" target="_blank">' . $anchor . '</a>' . "\n";
} else {
$link = '';
}
return $link;
}

function rss_feed_href() {
list($feed, ) = rss_feed_current_page();
if($feed) {
$href = zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false);
} else {
$href = '';
}
return $href;
}

function rss_feed_name() {
list($feed, $title) = rss_feed_current_page();
return $title;
}
// EOFI am not good at code. Where would it be located for icon at top menu bar?

Thanks, Kim

Theirs nothing wrong with the file. The red high light is the part that is suppose to show up in your browser. I'm not sure why it's not showing for you.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

23 Nov 2009, 12:44 PM
#709
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: RSS2 Feed Contribution

countrycharm:

Theirs nothing wrong with the file. The red high light is the part that is suppose to show up in your browser. I'm not sure why it's not showing for you.

Anyone else have this problem? Price not showing up with feed, yet set to true in admin area. How was it resolved?

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

23 Nov 2009, 1:09 PM
#710
johnk avatar

johnk

New Zenner

Join Date:
Feb 2005
Posts:
56
Plugin Contributions:
0

Re: RSS2 Feed Contribution

I had the opposite problem. The price was showing up even when it was set to false in the Admin area. Countrycharm gave me a patch (see a few posts back) and it's now fine.

23 Nov 2009, 1:13 PM
#711
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: RSS2 Feed Contribution

johnk:

I had the opposite problem. The price was showing up even when it was set to false in the Admin area. Countrycharm gave me a patch (see a few posts back) and it's now fine.

Is it the extra space one? I did that one already. I will keep looking. Thanks, Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

23 Nov 2009, 2:07 PM
#712
johnk avatar

johnk

New Zenner

Join Date:
Feb 2005
Posts:
56
Plugin Contributions:
0

Re: RSS2 Feed Contribution

No it wasn't. Just look back a dozen or so posts from me and replies by CountryCharm to me. I don't wish to be rude, but I'm flat out.

23 Nov 2009, 5:46 PM
#713
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: RSS2 Feed Contribution

[quote=kburner;809704]I have file includes/functions/extra_functions/rss_feed.php. Here is code:

@define('RSS_HOMEPAGE_FEED', '');
@define('RSS_DEFAULT_FEED', '');
@define('RSS_TITLE_DELIMITER', ' : ');
@define('RSS_TITLE_DELIMITER2', ' :: ');

  function rss_feed_title($feed=false) {
    global $current_category_id;
    if(!$feed) {
      $feed = $_GET['feed'];
    } else {
      if(($i = strpos($feed, '&')) !== false) {
        $feed_args = substr($feed, $i+1);
        $feed = substr($feed, 0, $i);
      }
    }
    switch (true) {
      case ($feed == 'news'):
          $title = TEXT_RSS_NEWS;
        break;
      case ($feed == 'categories'):
        $title = TEXT_RSS_CATEGORIES;
        if (isset($_GET['cPath']) && $current_category_id > 0) {
          $title .= RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int)$current_category_id));
        }
        break;
      case ($feed == 'specials_random'):
      case ($feed == 'specials'):
        $title = TEXT_RSS_SPECIALS;
        break;
      case ($feed == 'featured_random'):
      case ($feed == 'featured'):
        $title = TEXT_RSS_FEATURED_PRODUCTS;
        break;
      case ($feed == 'best_sellers_random'):
      case ($feed == 'best_sellers'):
        $title = TEXT_RSS_BEST_SELLERS;
        break;
      case ($feed == 'upcoming_random'):
      case ($feed == 'upcoming'):
        $title = TEXT_RSS_UPCOMING_PRODUCTS;
        break;
      case ($feed == 'new_products_random'):
      case ($feed == 'new_products'):
        $title = TEXT_RSS_PRODUCTS_NEW;
        break;
      case ($feed == 'products'):
        if (isset($_GET['products_id'])) {
          $title = TEXT_RSS_PRODUCT . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_products_name((int)$_GET['products_id']));
        } elseif (isset($_GET['cPath']) && $current_category_id > 0) {
          $title = TEXT_RSS_PRODUCTS . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int)$current_category_id));
        } else {
          $title = TEXT_RSS_PRODUCTS_ALL;
        }
        break;
      default:
        $title = TEXT_RSS_FEED;
        break;
    }
    return $title;
  }

  function rss_feed_current_page() {
    global $this_is_home_page, $category_depth, $cPath;
    $title = $feed = false;
    if($cPath > 0) $cpath_parm = '&cPath=' . $cPath;
    else $cpath_parm = '';
    switch (true) {
      case ($this_is_home_page):
        if(RSS_HOMEPAGE_FEED != '') {
          $feed = RSS_HOMEPAGE_FEED;
        }
        break;
      case (isset($_GET['products_id'])):
        $feed = 'products&products_id=' . $_GET['products_id'];
        break;
      case ($category_depth == 'products'):
        $feed = 'products' . $cpath_parm;
        break;
      case ($_GET['main_page'] == FILENAME_PRODUCTS_ALL):
        $feed = 'products' . $cpath_parm;
        break;
      case ($category_depth == 'nested' && $cPath > 0):
        $feed = 'categories' . $cpath_parm;
        break;
      case ($_GET['main_page'] == FILENAME_SPECIALS):
        $feed = 'specials';
        break;
      case ($_GET['main_page'] == FILENAME_FEATURED_PRODUCTS):
        $feed = 'featured';
        break;
      case ($_GET['main_page'] == FILENAME_UPCOMING_PRODUCTS):
        $feed = 'upcoming';
        break;
      case ($_GET['main_page'] == FILENAME_PRODUCTS_NEW):
        $feed = 'new_products';
        break;
      case ($_GET['main_page'] == FILENAME_PRODUCTS_NEW):
        $feed = 'news';
        break;
      default:
        if(RSS_DEFAULT_FEED != '') {
          $feed = RSS_DEFAULT_FEED;
        }
        break;
    }
    $title = rss_feed_title($feed);
    return array($feed, $title);
  }

  function rss_feed_link_alternate() {
    $feed_array = array('specials', 'new_products', 'upcoming', 'featured', 'best_sellers'); // 'news'
    $link = '';
    foreach($feed_array as $i => $feed) {
      $link .= '<link rel="alternate" type="application/rss+xml" title="' . rss_feed_title($feed) . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
    }
    list($feed, $title) = rss_feed_current_page();
    if($feed && !in_array($feed, $feed_array)) {
      $link .= '<link rel="alternate" type="application/rss+xml" title="' . $title . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
    }
    return $link;
  }

  function rss_feed_link($img=false) {
    global $template, $current_page_base;
    list($feed, $title) = rss_feed_current_page();
    if($feed) {
      if(!$img) {
        $anchor = $title;
      } else {
        $tpl_dir = $template->get_template_dir($img, DIR_WS_TEMPLATE, $current_page_base, 'images');
        $anchor = zen_image($tpl_dir . '/' . $img, $title);
      }
      $link = '<a href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" title="' . $title . '" target="_blank">' . $anchor . '</a>' . "\n";
    } else {
      $link = '';
    }
    return $link;
  }

  function rss_feed_href() {
    list($feed, ) = rss_feed_current_page();
    if($feed) {
      $href = zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false);
    } else {
      $href = '';
    }
    return $href;
  }

  function rss_feed_name() {
    list($feed, $title) = rss_feed_current_page();
    return $title;
  }
// EOFI am not good at code. Where would it be located for icon at top menu bar?

Thanks, Kim[/quote]

Check to make sure you did this.
Did you add this to your html_header.php somewhere beetwen <head> and </head> tags: If you didn't this will cause it to not show in your browser. 
[php]<?php echo rss_feed_link_alternate(); // RSS Feed ?
```


Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

23 Nov 2009, 5:56 PM
#714
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: RSS2 Feed Contribution

kburner:

Anyone else have this problem? Price not showing up with feed, yet set to true in admin area. How was it resolved?
Are your feeds still being cached in your sever root/cache_folder, if so look here. Make sure you clear your browser cache also.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

23 Nov 2009, 5:57 PM
#715
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: RSS2 Feed Contribution

countrycharm:

Check to make sure you did this.
Did you add this to your html_header.php somewhere beetwen <head> and </head> tags: If you didn't this will cause it to not show in your browser.

<?php echo rss_feed_link_alternate(); // RSS Feed ? ``` > > Yes that was it!!:clap::clap::clap: <?php echo rss_feed_link_alternate(); // RSS Feed ?>

Thank you so much!

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

24 Nov 2009, 5:47 AM
#716
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: RSS2 Feed Contribution

kburner:

Yes that was it!!:clap::clap::clap:

<?php echo rss_feed_link_alternate(); // RSS Feed ?>

Thank you so much!
You are welcome. I glad you got it sorted out.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

24 Nov 2009, 6:31 PM
#717
cyber49 avatar

cyber49

New Zenner

Join Date:
Jul 2009
Posts:
4
Plugin Contributions:
0

Re: RSS2 Feed Contribution

We are unable to get our feed to display althiough with "view source" the data is there -

Feed

Our programmer says she is unable to find what's causing the whitespace, and I'm pretty desperate.

Anyone interested in tackling this?

Actually, I'd also like to update all and ensure security too, and our programmer is not a ZenCart expert, like she is with WordPress.

Anyone know a good Zencart person? PM me or reply here - thanks in advance

24 Nov 2009, 10:45 PM
#718
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: RSS2 Feed Contribution

cyber49:

We are unable to get our feed to display althiough with "view source" the data is there -

Feed

Our programmer says she is unable to find what's causing the whitespace, and I'm pretty desperate.

Anyone interested in tackling this?

Actually, I'd also like to update all and ensure security too, and our programmer is not a ZenCart expert, like she is with WordPress.

Anyone know a good Zencart person? PM me or reply here - thanks in advance

Download this script and run it to check for extra white spaces. Down load it and extract it and up-load it to your server, run the script like this. http://www your.com/found_extra_space.php

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

25 Nov 2009, 2:39 PM
#719
cyber49 avatar

cyber49

New Zenner

Join Date:
Jul 2009
Posts:
4
Plugin Contributions:
0

Re: RSS2 Feed Contribution

thank you, will try that...

27 Nov 2009, 9:26 PM
#720
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

Re: RSS2 Feed Contribution

Andrew, I would also like to see a product (new_product) feed by
manufacturer. Would be a really useful mod. Thanks for your effort.
RSS feed is a cool tool!