Thread: RSS feed

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    RSS feed

    I just downloaded a program to give me headlines from an RSS feed. The code is php and I'm not sure where to add it to my site pages. I don't even know what it will look like once I add it. The code is this:

    <?php
    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 it were html, I would just add it to a side box or to my main page. Any suggestions for what to do with this code, where to put it (ie a header file or the index.php file), keeping in mind that I want it to look good.

    Thanks!
    Amy
    http://www.doodlebuckets.com

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: RSS feed

    You might try adding it to the Blank Sidebox Contrib.

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

    Default Re: RSS feed

    http://www.mistily.com/zendemo/index.php
    Bottom left hand box... bbc rss feed using carp..
    Carp must be installed on same domain as your zencart install, will release/provide
    details if enough interest..

  4. #4

    Re: RSS feed

    misty, if you look at http://www.doodlebuckets.com main page, I got it to work and my husband thinks it looks nice like it is, without being in a sidebox. I've decided to go with that. I added the carp stuff to the tpl_banner_box file and I'm trying to do the same with the tpl_banner_box2 file, but the sidebox top and bottom show up under the headlines. Do you know how I can get rid of those? I did the same exact thing as with the headlines on the left side, but the side box top and bottom are doing different things. What do you think?

    Thanks!
    Amy
    www.doodlebuckets.com

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

    Default Re: RSS feed

    What exact code did you enter in banner boxes?

  6. #6

    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');




    That's what I put in. I put in in between the $content = '';

    and

    $content .= '</div>';

    in the tpl_banner_box.php and tpl_banner_box2.php files


    Your site looks nice. How did you do it?

    Thanks! Amy
    www.doodlebuckets.com

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

    Default Re: RSS feed

    I did what Kim suggested and used Blank Side Box contrib.
    So my block consists of 3 files plus a working rss php file.
    There is now an updated rss block announced in thread at
    http://www.zen-cart.com/forum/showthread.php?t=40167
    which may help.

  8. #8

    Default Re: RSS feed

    Thanks! I'll give it a go :)

    Amy
    www.doodlebuckets.com

  9. #9

    Re: RSS feed

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


    Trying the blank sidebox contrib but am getting this error. I'm using her example of "button" sidebox to try it out. Any idea of why I'm getting this error?

    Thanks, Amy
    www.doodlebuckets.com

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

    Default Re: RSS feed

    Trying the blank sidebox contrib
    I took a copy and renamed it to tpl_rss_feed.php, but you also
    need to add corresponding files i.e. includes/modules/sideboxes/rss_feed.php
    and /includes/languages/english/extra_definitions/rss_feed_defines.php
    Carp also looks for files ending in rss.xml.. so linking to an existing working carp
    file, via your new zencart sidebox, works best
    HTH

 

 
Page 1 of 2 12 LastLast

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