1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Using an RSS Feed (This is Easy)

Discussion in 'XML & RSS' started by yfs1, Jan 5, 2005.

  1. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #141
    Hi Dynn, glad it worked for you.

    I take it that your plan is to get more visitors to your website.

    What I would recommend, is to use a seperate stream for each catergory.

    eg if you had a stream related to widgets in the widgets section of the directory, then it would make the catergorary more relevant.

    Also when people submit to directories they want as few links as possible, I would therefore reccommend that you linit the number of articles in each stream, to one or two.

    If you do these two things I think that you'll have a nice directory what people would like to submit to.

    Deano
     
    Deano, Dec 30, 2005 IP
    yfs1 likes this.
  2. dynn

    dynn Notable Member

    Messages:
    5,046
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    253
    #142
    thanks your recommendations and advice....
     
    dynn, Dec 30, 2005 IP
  3. best-p4u

    best-p4u Peon

    Messages:
    229
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #143

    where do you insert the code(phplinkdirectory)??

    Moreover, it seems there are some mistakes:

    e.g: html code(br,<a href="www.domain.name">.etc...) cann't show correctly.

    I have also created a test page at:

    http://download.best-p4u.com/rss_news.php

    The result is the same.

    Could someone help me!!

    Thanks!!

    Happy new year!!

    :(
     
    best-p4u, Dec 31, 2005 IP
  4. pcdoc

    pcdoc Active Member

    Messages:
    690
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    70
    #144
    pcdoc, Jan 11, 2006 IP
  5. kichus

    kichus Peon

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #145
    i tried copying the script (by yfs1) to my php page and i am getting an error: "Error reading RSS data.

    can anyone help?

    Thanks
     
    kichus, Jan 12, 2006 IP
  6. MattEvers

    MattEvers Notable Member

    Messages:
    1,792
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #146
    Did you set the links, title, etc.?
     
    MattEvers, Jan 12, 2006 IP
  7. kichus

    kichus Peon

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #147
    No I didn't. I just gave some new locations (I think that is links). How do I set title etc...
     
    kichus, Jan 12, 2006 IP
  8. miko67

    miko67 Well-Known Member

    Messages:
    769
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    120
    #148
    Hehe, must be my lucky day. When I finally decide to try it out this website is "down". Must try again in a few minutes.

    Do anybody have alternatives to www.syndic8.com ?
     
    miko67, Jan 13, 2006 IP
  9. Jim_Westergren

    Jim_Westergren Notable Member

    Messages:
    1,882
    Likes Received:
    247
    Best Answers:
    0
    Trophy Points:
    235
    #149
    Jim_Westergren, Jan 13, 2006 IP
  10. devin

    devin Guest

    Messages:
    4,461
    Likes Received:
    449
    Best Answers:
    0
    Trophy Points:
    0
    #150
    i couldn't get syndic8 to work all morning too. :)
     
    devin, Jan 18, 2006 IP
  11. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #151
    Its back up now ;)
     
    yfs1, Jan 18, 2006 IP
    miko67 likes this.
  12. miko67

    miko67 Well-Known Member

    Messages:
    769
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    120
    #152
    Thx :cool:

    I would green-rep you, but the system said "yfs1 has received too much rep in the last 24 hours" - so, sadly I wasn't able to :p - Maybe someone else can help out...?
     
    miko67, Jan 18, 2006 IP
  13. samantha pia

    samantha pia Prominent Member

    Messages:
    4,639
    Likes Received:
    482
    Best Answers:
    0
    Trophy Points:
    310
    #153
    oh god i wet myself 3 times and sprayed my screen with about 2 cups of coffee, Deano that was the best 3 hours i have had in years, it was so funny the air2000 letters, well worth the time. this was one that made me wet myself,
    Aer Lingus Plc
    Travelling with your airline recently I asked one of your charming stewardesses, Bridget I think her name was, what the 'Lingus' in the name Aer Lingus meant.....
    I thought for a moment that it might be a suffix, but quickly discarded that idea as I only know one word which has Lingus as a suffix, and it can't possibly mean that, because although Aer Lingus is by no means the most impressive airline that I have ever flown with, it certainly doesn't suck......

    reply
    Thank you for your recent letter.

    There's a very simple answer to your question. 'Aer Lingus' is an Irish phrase meaning, appropriately enough, air fleet. Initially in 1936, the company operated under the name 'Irish Sea Airways', but this was soon changed to Aer Lingus, which we have been operating under ever since.

    reply
    I assume that you changed the name of your airline from Irish Sea Airlines to Aer Lingus because you wanted to give it an Irish flavour. However Aer Lingus, which I am assuming is Gaelic, only makes sense to someone who speaks this obscure language. If you want to highlight the 'Irishness' of your airline, while at the same time making the name understandable to anyone who speaks English, the perfect appellation for it would be Aer O'Plane....

    well worth a visit
    :D
     
    samantha pia, Jan 20, 2006 IP
    MichaelD likes this.
  14. Kaediem

    Kaediem Well-Known Member

    Messages:
    1,128
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    150
    #154
    Thanks for this, it's just what I needed to have my latest blogs listed on the home page of my new site.

    Wondering though if you could offer some help... I wanted to have the latest blogs to list the last 3 or 5 blogs with the title, date and a couple of lines of the blog. Is that possible with this code? Any assistance would be helpful and appreciated... the page I'm trying to do this on is

    http://www.myrollercoasterkid.com

    it's only a couple of days old and in the development stage so please ignore the "mess".

    Thanks,

    Lisa
     
    Kaediem, Jan 29, 2006 IP
  15. ST12

    ST12 Active Member

    Messages:
    1,205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    90
    #155
    I am not a pro in this, so I would appreciate any and all help.

    What do I need to make this code
    Rotating feed work on my index.htm or index.php work?

    <?php
    $insideitem = false;
    $tag = "";
    $title = "";
    $description = "";
    $link = "";
    $locations = array('http://michaelthompson.org/news/goo-world.xml', 'http://forums.seochat.com/external.php', 'http://michaelthompson.org/news/goo-world.xml');
    srand((float) microtime() * 10000000); // seed the random gen
    $random_key = array_rand($locations);
    function startElement($parser, $name, $attrs) {
    global $insideitem, $tag, $title, $description, $link;
    if ($insideitem) {
    $tag = $name;
    } elseif ($name == "ITEM") {
    $insideitem = true;
    }
    }
    function endElement($parser, $name) {
    global $insideitem, $tag, $title, $description, $link;
    if ($name == "ITEM") {
    printf("<dt><b><a href='%s' target=new>%s</a></b></dt>",
    trim($link),htmlspecialchars(trim($title)));
    printf("<dt>%s</dt><br><br>",htmlspecialchars(trim($description)));
    $title = "";
    $description = "";
    $link = "";
    $insideitem = false;
    }
    }
    function characterData($parser, $data) {
    global $insideitem, $tag, $title, $description, $link;
    if ($insideitem) {
    switch ($tag) {
    case "TITLE":
    $title .= $data;
    break;
    case "DESCRIPTION":
    $description .= $data;
    break;
    case "LINK":
    $link .= $data;
    break;
    }
    }
    }
    $xml_parser = xml_parser_create();
    xml_set_element_handler($xml_parser, "startElement", "endElement");
    xml_set_character_data_handler($xml_parser, "characterData");
    $fp = fopen($locations[$random_key], 'r')
    or die("Error reading RSS data.");
    while ($data = fread($fp, 4096))
    xml_parse($xml_parser, $data, feof($fp))
    or die(sprintf("XML error: %s at line %d",
    xml_error_string(xml_get_error_code($xml_parser)),
    xml_get_current_line_number($xml_parser)));
    fclose($fp);
    xml_parser_free($xml_parser);
    ?>




    Do I need a program installed on the directory it resides? My host allows my unlimited domains. I use Add on domain feature.

    Thank youi!
    st12
     
    ST12, Feb 2, 2006 IP
  16. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #156
    You only need to have php enabled...There is no software involved.

    Have you tried cut and pasting it? If so, what errors have you received?
     
    yfs1, Feb 2, 2006 IP
  17. ST12

    ST12 Active Member

    Messages:
    1,205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    90
    #157
    Yfs1, I tried cut and paste and received the code itself on the index.htm page. Do I need to put the code in the index.htm file? Should I save it as .php?

    Here is the test website:
    www.quitsmokinghelp.be

    Thank you!

    I tried saving the index.htm as index.php still no luck. I spoke with my webhosting company they said php is enabled by default and it is curently enabled.
     
    ST12, Feb 2, 2006 IP
  18. ST12

    ST12 Active Member

    Messages:
    1,205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    90
    #158
    Anybody knows how many things I am missing here with these RSS feeds:)?
     
    ST12, Feb 2, 2006 IP
  19. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #159
    Yes it's php code save as index.php, upload it, then remove your index.htm page from your server, so that there is no conflict.
     
    Deano, Feb 2, 2006 IP
  20. ST12

    ST12 Active Member

    Messages:
    1,205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    90
    #160
    That's what I did saved it as .php, uploaded it, and removed the index.htm didn't work.:(

    A strange animal probably resides in my webhosting company :(
    I sent them an email .... now waiting.

    Thank you Deano!
     
    ST12, Feb 2, 2006 IP