Embed news feeds into a iWeb website?

xappeal

macrumors regular
Original poster
Dec 9, 2005
106
0
Brisbane - Australia
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
 

Matteh117

macrumors regular
May 24, 2007
202
0
Surrey, UK
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');
?>
 

bbarnhart

macrumors 6502a
Jan 16, 2002
824
1
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.
 

xappeal

macrumors regular
Original poster
Dec 9, 2005
106
0
Brisbane - Australia
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.
 

xappeal

macrumors regular
Original poster
Dec 9, 2005
106
0
Brisbane - Australia
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...
 

bbarnhart

macrumors 6502a
Jan 16, 2002
824
1
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.
 

yagran

macrumors 6502a
Jan 8, 2007
743
2
Brighton, East Sussex, UK
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