Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSS feed in web page 1

Status
Not open for further replies.

Guthro

Technical User
Sep 9, 2006
107
GB
Hi all.
I'm pulling my hair out with RSS feeds.
I've searched all over and tried all sorts.

Can the lucid help from tek tips help me ?
Using the line below and adding a real path, why doesn't it show ?
Am I being really dim here ? Yes, probably !

<link rel="alternate" type="application/rss+xml" title="RSS" href="path_to/feed.xml">



My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
 
Your syntax is fine - it could be that your feed is not valid (at the path you specify in the href attribute).

Try using Firefox to see if the icon shows.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
What is the exact line of code you are using?
i.e. What is the URL of your site/feed?

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
The BBC have many free news feeds you can use.
Naively I was using one from there such as the one below.


I have used a standalone rss reader on my desktop but the idea was to have a window or table showing the feed for visitors to my portal and/or forum.



My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
 
Can you clarify what it is you are trying to do?

Are you trying to show a feed from another site on your site?

Or are you trying to publish a feed containing content from your site?

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
Primarily offering news from an outside source such as the BBC.
From my own sites would be nice but I'd like to get the basic working first.
Or is it easier to start with my own content ?

Thanks for showing patience.

My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
 
It's much of a much.

Both will require some kind of scripting.

To display a feed on your site you need to grab the XML, parse it then output it to your page.

What scripting language(s) do you have available?

There used to be a thing called MagPie for doing this with PHP and it was quite easy to configure. Don't know if it's still around though.

The line of code you gave would be used for creating feed on your site. The URL would point to a script that generates the required XML file from, for example, a database of content. This is quite easy to do if you know how to get content from a database. Just look up "RSS format" or similar in Google.

You can probably find pre-made scripts to create the XML for you too.





--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
My site can use php, javascript, asp. Most types I believe.

The forum can use javascript in its headers.
I can also embed flash in the forum.



My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
 
Your options are open then.

I would steer clear of using Flash since it would require some kind of server side script to actually get the data anyway (I believe, long time since I used it).

Here's a link to Magpie

Though I'm guessing because you support ASP your server is Windows based and so you may be better looking for an ASP specific solution.

The principle is the same though.

Grab the XML file from the remote URL and parse the XML in some way to output HTML.

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Try these Google results to get you started.

[google]PHP RSS parser[/google]
[google]ASP RSS parser[/google]

Forget Javascript, bad solution. Though by all means use Javascript to 'jazz up' the display of the feed by scrolling, fading etc.

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
Javascript may be considered a "bad solution", but I use this and find it painless:

The only reason it's "bad" is that you are doing the processing client side. Putting load on the user's browser etc. and also not getting any seo benefit from including the feed on your site.

Maybe "bad" is the wrong word, it ust feels wrong to me.

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top