Page 1 of 2 12 LastLast
Results 1 to 10 of 955

Hybrid View

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

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by kburner View Post
    Hi countrycharm,

    My website www.burnerbooks.com has rss feed icon in bottom
    left corner. Fee link is http://www.burnerbooks.com/index.php...d=new_products. Not sure what you mean by icon with choice of new products fee, featured fee or all products...?

    Thanks, Kim
    Look at my site here, you will see an orange icon at the top where my web address is on the right. I don't see it on neither one of your sites.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

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

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by countrycharm View Post
    Look at my site here, you will see an orange icon at the top where my web address is on the right. I don't see it on neither one of your sites.
    Yes, now I see it! I do not have that...wonder what happened???

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

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by kburner View Post
    Yes, now I see it! I do not have that...wonder what happened???
    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.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  4. #4
    Join Date
    Feb 2005
    Posts
    56
    Plugin Contributions
    0

    Default Re: RSS2 Feed Contribution

    Countrycharm, although it's not really important for my site, i'd still like to get it right.

    • The templates directory is named correctly. I have heaps of stuff in there and everything else is working fine.
    • I'm a bit confused about the SQL files. Update 2.0.2 has an older date than install.sql so I didn't run it. I did on the first attempt to get the script to work and ran into trouble. Without it, the script works fine.
    • Update 2.1.3 has the same date as install,sql so I didn't run it either, thinking that it may be updating an earlier version.
    • As far as I can see, there's nothing in the docs about either update.
    • The rest of the modules files are all in the right place.
    • There's no gif or png file for the little icon. How is it generated?

    I can't offer any more info I'm sorry.

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

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by johnk View Post
    Countrycharm, although it's not really important for my site, i'd still like to get it right.

    • The templates directory is named correctly. I have heaps of stuff in there and everything else is working fine.
    • I'm a bit confused about the SQL files. Update 2.0.2 has an older date than install.sql so I didn't run it. I did on the first attempt to get the script to work and ran into trouble. Without it, the script works fine.
    • Update 2.1.3 has the same date as install,sql so I didn't run it either, thinking that it may be updating an earlier version.
    • As far as I can see, there's nothing in the docs about either update.
    • The rest of the modules files are all in the right place.
    • There's no gif or png file for the little icon. How is it generated?

    I can't offer any more info I'm sorry.

    First of all anytime you do a clean install the install.sql has all the update their are needed. The other 2 are just updates if you are running and older version ad need to update to the current version. Now why you 2 are not showing the icon in the web address I'm not sure why as of yet. If everything is installed correctly it should show up. Maybe this is a question that Andrew should answer.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

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

    Default Re: RSS2 Feed Contribution

    Quote Originally Posted by countrycharm View Post
    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.
    Yes, I have the file includes/functions/extra_functions/rss.feed.php loaded. Where should I look within the file?

    Thanks, Kim

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

    Default Re: RSS2 Feed Contribution

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

    [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

  8. #8
    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
    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

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

    Default Re: RSS2 Feed Contribution

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

  10. #10
    Join Date
    Feb 2005
    Posts
    56
    Plugin Contributions
    0

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

 

 
Page 1 of 2 12 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

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