Page 72 of 96 FirstFirst ... 2262707172737482 ... LastLast
Results 711 to 720 of 955
  1. #711
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by johnk View Post
    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

  2. #712
    Join Date
    Feb 2005
    Posts
    56
    Plugin Contributions
    0

    Default 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.

  3. #713
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by kburner View Post
    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
    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 Code:
    <?php echo rss_feed_link_alternate(); // RSS Feed ?


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

  4. #714
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by kburner View Post
    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

  5. #715
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by countrycharm View Post
    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 Code:
    <?php echo rss_feed_link_alternate(); // RSS Feed ?


    Yes that was it!!

    <?php echo rss_feed_link_alternate(); // RSS Feed ?>
    Thank you so much!

  6. #716
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by kburner View Post
    Yes that was it!!

    <?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

  7. #717
    Join Date
    Jul 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: RSS2 Feed Contribution - White Space

    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

  8. #718
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: RSS2 Feed Contribution - White Space

    Quote Originally Posted by cyber49 View Post
    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

  9. #719
    Join Date
    Jul 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: RSS2 Feed Contribution

    thank you, will try that...

  10. #720
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default 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!

 

 
Page 72 of 96 FirstFirst ... 2262707172737482 ... LastLast

Similar Threads

  1. Rss2 feed & Ultimate SEO URL
    By Jerry5763837 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Feb 2009, 12:42 PM
  2. RSS2 feed contribution support
    By Woodymon in forum All Other Contributions/Addons
    Replies: 73
    Last Post: 26 Sep 2007, 07:38 AM
  3. How to display Price in Rss2.php ( Rss Feed )
    By anand in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 27 Jan 2007, 10:38 PM
  4. rss2.php rss feed contribution - YAHOO picks up only IMAGE URL?
    By gsh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Dec 2006, 05:19 AM
  5. Does rss2 mod also do mailing lists?
    By levander in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Sep 2006, 11:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR