Embed news feeds into a iWeb website?

Discussion in 'Web Design and Development' started by xappeal, Aug 24, 2007.

  1. xappeal macrumors regular

    Joined:
    Dec 9, 2005
    Location:
    Brisbane - Australia
    #1
    Is there a way to embed (using the html tool) an RSS (or any) news feed from another website into my own?

    Something similar to the way macbytes feeds are displayed on the homepage is what I am talking about.

    Thanks
     
  2. Matteh117 macrumors regular

    Joined:
    May 24, 2007
    Location:
    Surrey, UK
    #2
    Using just HTML? No. That is, unless you want to use an inline frame.

    Using a server side language such as PHP or Lasso you can import data from other sources and display them as you wish.

    HTML:
    <iframe src="http://www.website.com/file.bla" width="200" height="300" frameborder="1"></iframe>
    PHP:
    <?php
    include('filename.php');
    ?>
     
  3. xappeal thread starter macrumors regular

    Joined:
    Dec 9, 2005
    Location:
    Brisbane - Australia
    #3
    Specifically I want to put feeds from feed://www.sciencedaily.com/rss/ into www.middleyearsscience.com on the right where the ads are.

    Is it possible?
     
  4. bbarnhart macrumors 6502a

    bbarnhart

    Joined:
    Jan 16, 2002
    #4
    Matteh117 mentioned two ways to do it. One with a frame and the other with server side processing. The frame idea is pretty much out. Server side is what you should do.
     
  5. xappeal thread starter macrumors regular

    Joined:
    Dec 9, 2005
    Location:
    Brisbane - Australia
    #5
    Thanks Matteh117, I just wish I wasn't too useless to actually use what you wrote.

    I would prefer to use php as I've read somewhere that search engines can read this.

    I'm guessing I would have to make the php file for the feed, and you gave me the code to get iweb to insert it?

    Off to do more research. Thanks for your time.
     
  6. xappeal thread starter macrumors regular

    Joined:
    Dec 9, 2005
    Location:
    Brisbane - Australia
    #6
    It appears that the problem is getting the server to read php off a html webpage from iweb.

    I could change the file extension but then I would have to do this every-time I publish as well as change the index file to point at the new file.

    I have tried a .htaccess file, but this keeps crashing the page, I either get a blank page load or I get a error 500.

    confused...
     
  7. bbarnhart macrumors 6502a

    bbarnhart

    Joined:
    Jan 16, 2002
    #7
    Are you trying to do this on an Apple iWeb page? That's not going to work. I don't think iWeb allows php. Your only option really is the <iframe>.

    One way to make sure that php is not supported on iWeb is to upload a new page with a .php extension that contains the following.

    <?php
    phpinfo();
    ?>

    If the same thing is returned, php is not supported.
     
  8. yagran macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #8
    ok this is really easier to do than your making out.

    if you take a trip to http://www.howdev.com/products//feedsweep/create_adv.asp

    then you can simply put in the address of your feed, fill in the colour scheme and other display options you want and it will give you a few lines of javascript, then simply put that in the html section of iWeb and your done.

    only downside is that search engines cant read the rss content, but its pretty immoral to have you page get ranked higher for someone elses content anywayz

    have fun :D
     
  9. bburrow macrumors newbie

    Joined:
    Feb 24, 2006
    #9

Share This Page