Thread: RSS feed

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11

    Default Re: RSS feed

    I've done all that and it still doesn't work...
    Amy
    www.doodlebuckets.com

  2. #12
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: RSS feed

    require_once '/home/doodlebu/www/www/carp/carp.php';
    // Add any desired configuration settings before CarpCacheShow
    // using "CarpConf" and other functions
    CarpCacheShow('http://feeds.feedburner.com/MidwiferyTodayOnline');
    Are you still adding code above, as before, to your new zencart sidebox?
    If so, cannot see an rss.xml link, which is what Carp looks for. Also, do not
    see any carp code for regulating style.. You really need to get a working carp
    page set up first, which is what I did.. my code below should help a little..
    Code:
    <div style="font-family:Arial,sans serif;font-size:1.0em;color:#000000;">
     <center>
       <table border="0" width="150">
         <tr>
           <td width="100%">
             <p align="center"><?php
     require_once '/home/myhostingaccount/carp/carp.php';
     // Add any desired configuration settings before CarpCacheShow
     // using "CarpConf" and other functions
     //Next line strips any text before feed i.e. as at bbc.co.uk
     CarpConf('cborder','');
     // put a bullet before each item
     //CarpConf('bi','&bull; ');
     // show up to 5 items
     CarpConf('maxitems',3);
     // don't say "Newsfeed display by by CaRP" after the newsfeeds
     // CarpConf('poweredby','');
     //CarpConf('cborder','link,desc');
     CarpConf('caorder','image');
     CarpConf('bcb','<div style="font-size:8pt; background:#fed; border:1px solid #999999; padding:5px;">');
     CarpConf('acb','</div>');
     CarpConf('bidesc','<div style="font-size:8pt;color:#000000;">');
     CarpConf('aidesc','</div>');
     CarpConf('bilink','<div style="font-size:10pt;FONT-WEIGHT: bold; color:#000080;">');
     CarpConf('ailink','</div>');
     CarpConf('linktarget',1);
     CarpCacheShow('http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml');
     ?></td>
         </tr>
       </table>
      </center>

  3. #13

    Re: RSS feed

    If you'll look at www.doodlebuckets.com , I have them both working if I hard-code my tpl_banner_box and tpl_banner_box2 files. Carp works, but I end up with the unwanted box top and bottom on the right hand feed. In both instances, I use the code:

    <?php
    /**
    * Side Box Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_banner_box.php 2982 2006-02-07 07:56:41Z birdbrain $
    */
    $content = '';

    // if no active banner in the specified banner group then the box will not show


    require_once '/home/doodlebu/www/www/carp/carp.php';
    // Add any desired configuration settings before CarpCacheShow
    // using "CarpConf" and other functions

    CarpConf('caorder','link,date');
    CarpConf('bcb','</div>');
    CarpConf('acb','</div>');
    CarpConf('acb','<br>');
    CarpConf('ai','<br>');


    CarpCacheShow('http://feeds.feedburner.com/MidwiferyTodayProducts');


    $content .= '</div>';


    ?>

    and they work with this for displaying the feed.

    For the file that I created with the blank sidebox contrib, the code is:

    <?php
    //
    // Blank Sidebox Mod
    // includes/templates/templates_default/sideboxes/tpl_blank_sidebox.php
    //
    // --------------------------------------------------
    // http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
    // --------------------------------------------------
    // zen-cart Open Source E-commerce
    // Copyright (c) 2003-2006 The zen-cart developers
    // http://www.zen-cart.com/index.php
    // Portions Copyright (c) 2003 osCommerce
    // --------------------------------------------------
    // This source file is subject to version 2.0 of the GPL license,
    // that is bundled with this package in the file LICENSE, and is
    // available through the world-wide-web at the following url:
    // http://www.zen-cart.com/license/2_0.txt.
    // If you did not receive a copy of the zen-cart license and are unable
    // to obtain it through the world-wide-web, please send a note to
    // license AT zen-cart DOT com so we can mail you a copy immediately.
    // --------------------------------------------------
    //
    // $Id: tpl_mwrss_feed.php,v 1.0 6/24/2006
    // Original modification by Carter Harris charris AT technettn DOT net based on the tpl_featured.php file
    // Additionally modified by Judi Cox http://www.mommamuse.com

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    $content .= '
    <!-- EDIT BELOW THIS LINE -->
    <table align="center">
    <tr>
    <td align="center">
    require_once '/home/doodlebu/www/www/carp/carp.php';
    // Add any desired configuration settings before CarpCacheShow
    // using "CarpConf" and other functions

    CarpConf('caorder','link,date');
    CarpConf('bcb','</div>');
    CarpConf('acb','</div>');
    CarpConf('acb','<br>');
    CarpConf('ai','<br>');


    CarpCacheShow('http://feeds.feedburner.com/MidwiferyTodayProducts/');
    </td>
    <tr>

    </table>

    <!-- EDIT ABOVE THIS LINE -->
    ';
    $content .= '</div>';
    ?>


    And if I turn it on, I get:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/doodlebu/www/www/store/includes/templates/template_default/sideboxes/tpl_mwrss_feed.php on line 37

    I have it turned off again so that I don't have an error on the page. I just don't get why the error occurs in the blank sidebox contrib but not if I add the very same code directly to the banner boxes.

    Sigh, any ideas?
    Amy
    www.doodlebuckets.com

  4. #14

    Default Re: RSS feed

    http://www.zen-cart.com/forum/showth...less+sideboxes

    Found this fix for myself and thought I would share! Now that's more like it :)

  5. #15
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: RSS feed

    Pleased to hear you have found a way around your problem, because
    cannot offer explanation myself as to why coding in your new zencart box
    fails to work correctly.

  6. #16

    Default Re: RSS feed

    Thanks! I appreciate your help very much :)

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Rss Feed
    By stitchnkitty in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Sep 2014, 02:05 PM
  2. Rss feed
    By AirsoftOutfitter in forum General Questions
    Replies: 7
    Last Post: 16 Dec 2010, 12:49 AM
  3. rss feed external link in the feed?
    By Kitty in forum General Questions
    Replies: 11
    Last Post: 26 Jan 2008, 09:48 PM
  4. Rss Feed
    By Checooper in forum General Questions
    Replies: 1
    Last Post: 16 Apr 2007, 08:33 PM

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