I've done all that and it still doesn't work...
Amy
www.doodlebuckets.com
I've done all that and it still doesn't work...
Amy
www.doodlebuckets.com
Are you still adding code above, as before, to your new zencart sidebox?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');
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','• '); // 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>
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
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 :)
Amy McCoy
Baby Gifts and Baby Gift Baskets
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.