Does anybody have an instruction list for .....

Discussion in 'XML & RSS' started by ST12, Feb 1, 2006.

  1. #1
    Does anybody have an instruction list how to setup Yahoo RSS News Feeds? I need the step by step instructions, would like to have fresh content links on my site. Probably very simple for many of you.



    I have this code for yahoo news, but don't know how to make it work: Can somebody tell me what else I need to make this Yahoo News Feed (or whatever they call it) work?




    <?php
    $sfn = $_SERVER["DOCUMENT_ROOT"];
    $pos = strrpos($sfn, '/');
    $filename = substr($sfn,0,$pos).'/carp/carp.php';
    require_once($filename);

    // Show 3 items
    CarpConf('cborder','');
    CarpConf('maxitems',3);
    CarpConf('poweredby','');
    CarpConf('iorder','link,date,desc');
    CarpConf('bilink','<font face="Verdana" size="1pt"><b>');
    CarpConf('ailink','</b></font>');
    CarpConf('bidesc','<font face="Verdana" size="1pt">');
    CarpConf('aidesc','</font><br><br>');
    CarpConf('filterout','Yahoo! News');
    CarpConf('cacheinterval',300);
    CarpConf('linktarget',1);
    $t="diet";
    $r = '%22'.urlencode($t).'%22';
    $s ='http://news.search.yahoo.com/news/rss?ei=UTF-8&p='.$r;
    CarpCacheShow($s);
    $s='http://news.search.yahoo.com/search/news?p='.$t.'&sm=Yahoo%21+Search&fr=FP-tab-news-t&toggle=1';
    $t = htmlentities($s);
    echo '<p align="left">[ Read the latest diet News <a href="'.$t.'">here.</a> ]</p>';
    ?>






    Thank you,
    st12
     
    ST12, Feb 1, 2006 IP
  2. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi

    I don't know the YPN very well, being is Australia Yahoo! tells me i'm not allowed to join... anyway, looking at the code:

    - Did yahoo give you a file called 'carp.php'?
    - Does your website support php?

    Looks like a file is required to make this work called carp.php and it needs to be put in a folder called 'carp' off the root of your website. You should then be able to put this code into a file with the extension .php and run it from your website.

    Jay
     
    jaymcc, Feb 2, 2006 IP
  3. stuw

    stuw Peon

    Messages:
    702
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3
    stuw, Feb 2, 2006 IP
  4. ST12

    ST12 Active Member

    Messages:
    1,205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    90
    #4
    My webhost company Hostgator told me they have blocked RSS. Their servers got overloaded. Is there any other way I can get fresh content on my site?
    Thank you,
    st12
     
    ST12, Feb 3, 2006 IP