Author |
Message |
vannquish
Joined: 18 May 2006
Posts: 5
|
Posted: Thu May 18, 2006 11:04 am |

|
Im having problems displaying the rss feeds within my webpage.
I changed to rss link to the one I want to display.
I created a table in the centre of my page (where I want the rss to appear).
But im not sure what Im supposed to do now.
can anyone help?
|
|
|

|
 |
vannquish
Joined: 18 May 2006
Posts: 5
|
Posted: Thu May 18, 2006 12:09 pm |

|
Ive managed to get the RSS feed to display but I have another problem now.
I have set the target to = blank, so when someone clicks on a news item it will open up in a new page.
but the problem is when you click on a link it just opens up the rss page instead of the news story.
I have included my page so you can have a look.
thanks
http://www.midlandsfc.co.uk/rss2html.php
|
|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2394
|
Posted: Thu May 18, 2006 2:46 pm |

|
vannquish wrote: |
Ive managed to get the RSS feed to display but I have another problem now.
I have set the target to = blank, so when someone clicks on a news item it will open up in a new page.
but the problem is when you click on a link it just opens up the rss page instead of the news story.
I have included my page so you can have a look.
thanks
http://www.midlandsfc.co.uk/rss2html.php
|
That is because in your template you have hard-coded the URL for the feed. You should be using ~~~ItemLink~~~ there.
Jim
|
|
|
 
|
 |
vannquish
Joined: 18 May 2006
Posts: 5
|
Posted: Thu May 18, 2006 3:30 pm |

|
Im not to sure what you mean.
the code from that page is as follows
Code: |
? ?
? ?
? ? ? ? ? ? ~~~BeginItemsRecord~~~
? ? ? ? ? ?
? ? ? ? ? ? ? |
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ~~~ItemPubShortDate~~~ ~~~ItemPubShortTime~~~? ? ? ? ? ? ? ? |
? ? ? ? ? ?
? ? ? ? ? ?
? ? ? ? ? ? ? |
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ~~~ItemTitle~~~? ? ? ? ? ? ? ? |
? ? ? ? ? ?
? ? ? ? ? ?
? ? ? ? ? ? ? |
? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ~~~ItemDescription~~~? ? ? ? ? ? ? ? ? ? ? ? ? ? |
? ? ? ? ? ?
? ? ? ? ? ? ~~~EndItemsRecord~~~
? ?
? ?
|
What do I need to change?
thanks for your help by the way :-)
|
|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2394
|
Posted: Thu May 18, 2006 3:38 pm |

|
vannquish wrote: |
Im not to sure what you mean.
the code from that page is as follows
What do I need to change?
thanks for your help by the way :-) |
In your template you have
Which is saying that every item in your table has a link to the feed's XML. I think it really should be
See if that works better.
Jim
|
|
|
 
|
 |
vannquish
Joined: 18 May 2006
Posts: 5
|
Posted: Thu May 18, 2006 3:43 pm |

|
MacSupport wrote: |
vannquish wrote: |
Im not to sure what you mean.
the code from that page is as follows
What do I need to change?
thanks for your help by the way :-) |
In your template you have
Which is saying that every item in your table has a link to the feed's XML. I think it really should be
See if that works better.
Jim
|
YOU ARE A STAR.
Works brilliant mate.
thanks for all your help.
one last question. can I have 2 different RSS feeds on one page.
|
|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2394
|
Posted: Thu May 18, 2006 3:46 pm |

|
YOU ARE A STAR.
Works brilliant mate.
thanks for all your help.
one last question. can I have 2 different RSS feeds on one page.[/quote]
Yes. You just include it twice, once for each feed. If you edited rss2html.php to put the feed's URL in there you can do the same make a second copy. Or you can use rss2html.php?XMLFILE=http://www.server.com/feed.xml&TEMPLATE=template.html . The safest way to make sure the URL is correct is to use rss2html.php?buildURL
Jim
|
|
|
 
|
 |
|