Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-03-2004, 11:50 AM   #1 (permalink)
Inactive
 
I, Brian's Avatar
 
Join Date: 10-26-03
Posts: 2,466
iTrader: 0 / 0%
Latest Blog:
None

I, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebody
Adding RSS feed to site

Apologies for the remedial question, but how do I add the RSS feed to display on a page on my website?

For example, I have RSS feeds for both a blog and forum on one site - I'd like to be able to display the actual contents of these feeds as active links on my site index page.

I presume this is possible? If so, what little piece of code do I need to use?

My pages are constructed as PHP includes, and an example RSS feed for my forum looks like this:

Code:
http://www.platinax.co.uk/community/external.php?forumids=13
Pointers much appreciated.
I, Brian is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-03-2004, 02:01 PM   #2 (permalink)
Inactive
 
jebby's Avatar
 
Join Date: 08-03-04
Location: Vancouver, BC, Canada
Posts: 55
iTrader: 0 / 0%
Latest Blog:
None

jebby is liked by many
I've looked around for the very thing and have ended up using the free service from this site on my homepage:

http://jade.mcli.dist.maricopa.edu/feed/

Hope this helps.
jebby is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-03-2004, 02:15 PM   #3 (permalink)
Inactive
 
I, Brian's Avatar
 
Join Date: 10-26-03
Posts: 2,466
iTrader: 0 / 0%
Latest Blog:
None

I, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebody
I'm rather hoping for something other than a JS solution - ideally, I want search engines to be able to spider the links.

Is there a way to insert the feed using PHP?
I, Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-03-2004, 04:56 PM   #4 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
http://www.beginnersphp.co.uk/newrss.php
It'll include just about any rss or xml feed you'll find. The links are structured however the xml/rss file structures them.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-04-2004, 02:37 AM   #5 (permalink)
Inactive
 
I, Brian's Avatar
 
Join Date: 10-26-03
Posts: 2,466
iTrader: 0 / 0%
Latest Blog:
None

I, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebody
Thanks for that hatchet - much appreciated.

The single reservation is that when I use it on my blog, I get entry titles, then the naked URLs. How difficult would it be to restructure links so that they appear simply as anchor text? Would anyone be up for the challenge?
I, Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-04-2004, 08:41 PM   #6 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
That's no problem.

<?php
$xmlfile = fopen("http://www.mywebresources.co.uk/php/myscripting.rss", "r");
if(!$xmlfile)die("cannot open the xml file");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
echo "<table border='1'>";
echo "<th colspan='2'>Latest News</th>";
for($i=1 ; $i<=$count-1 ;$i++)
{
ereg("<title>(.*)</title>",$filechunks[$i], $title);
ereg("<link>(.*)</link>",$filechunks[$i], $links);
echo "<tr><td>";
echo "<a href ='$links[1]'\>$title[1]</a>";
echo "</td></tr>";
}
echo "</table>";
?>
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2004, 03:22 AM   #7 (permalink)
Inactive
 
I, Brian's Avatar
 
Join Date: 10-26-03
Posts: 2,466
iTrader: 0 / 0%
Latest Blog:
None

I, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebodyI, Brian is liked by somebody
Hatchet, you're a star.
I, Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2004, 11:10 PM   #8 (permalink)
Inactive
 
Join Date: 08-07-04
Location: New Orleans, LA USA
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

thezman is liked by many
Send a message via AIM to thezman Send a message via MSN to thezman Send a message via Yahoo to thezman
Brian, I have been trying to do the same thing, but am much less experienced at it. I think that my web server has to be contacted before these scripts will work correctly. Did you ever figure out if the text can be spidered?

Best,
Mark
thezman is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-07-2004, 12:42 AM   #9 (permalink)
Inactive
 
Join Date: 05-05-04
Location: america
Posts: 653
iTrader: 0 / 0%
Latest Blog:
None

realestate is liked by somebodyrealestate is liked by somebodyrealestate is liked by somebodyrealestate is liked by somebodyrealestate is liked by somebody
May I ask what a rss feed is?
realestate is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-07-2004, 08:34 AM   #10 (permalink)
Contributing Member
 
chaka42's Avatar
 
Join Date: 02-23-04
Location: midwest
Posts: 442
iTrader: 0 / 0%
chaka42 is on the right pathchaka42 is on the right path
i've tried that script and it doesn't work. all it does is display, "latest news" and only the first headline formatted in 3 separate cells ... a friend of mine gave me a link to another that actually works ... lemme look for it and i'll post the url here
chaka42 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-07-2004, 08:51 AM   #11 (permalink)
Contributing Member
 
chaka42's Avatar
 
Join Date: 02-23-04
Location: midwest
Posts: 442
iTrader: 0 / 0%
chaka42 is on the right pathchaka42 is on the right path
here it is: http://www.rjk-hosting.co.uk/programs/prog.php?id=7

just download the script and insert it where you you need it. then replace the url with the feed you want. the bottom portion of the script controls how the feed is displayed, font sizes, color and so on ...
chaka42 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-07-2004, 05:22 PM   #12 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
Huh - never had any problems with that script. Must've been installed incorrectly.
Is it working for you I,Brian?
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-07-2004, 05:28 PM   #13 (permalink)
Inactive
 
Join Date: 08-07-04
Location: New Orleans, LA USA
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

thezman is liked by many
Send a message via AIM to thezman Send a message via MSN to thezman Send a message via Yahoo to thezman
With (RSS), Really Simple Syndication feed, advanced users can have new headlines and article previews delivered in an RSS reader or aggregator. RSS offers a convenience because you can subscribe to feeds from several sources and automatically aggregate headlines from all the sources into one list. You can quickly browse the list of new content without visiting each site to search for new info of interest. By having these scripts fed directly to a location on a website you are adding to and changing page content automatically. I'm not sure that the spiderbots can read the script because no one answered my question either.

Best,
Mark

Last edited by thezman : 11-07-2004 at 05:31 PM.
thezman is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2004, 08:22 AM   #14 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
The links can be spidered while it's there.. as you said it's continually updating. So what the bot sees one day may not be there the next. I suppose you could put a link to an archive of all the links - the rss feed would have to be modified I would think.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2004, 09:55 PM   #15 (permalink)
Inactive
 
Join Date: 08-07-04
Location: New Orleans, LA USA
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

thezman is liked by many
Send a message via AIM to thezman Send a message via MSN to thezman Send a message via Yahoo to thezman
Thank you, Hatchet.
thezman is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-08-2004, 11:27 PM   #16 (permalink)
Contributing Member
 
chaka42's Avatar
 
Join Date: 02-23-04
Location: midwest
Posts: 442
iTrader: 0 / 0%
chaka42 is on the right pathchaka42 is on the right path
hatchet, it's quite odd though if my current php scripts work and this one doesn't ... but, if it works for i,brian, then no matter ...
chaka42 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-09-2004, 06:55 PM   #17 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
It could be that the particular rss feed just doesn't work with it.. who knows..
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding rss feed to blog??? briggidere Blogging Forum 8 08-23-2007 06:16 AM
RSS: Adding feed to website fotoviva Coding Forum 6 04-13-2007 10:46 AM
Adding javascript feed suzjor Blogging Forum 1 10-05-2006 11:20 PM
adding webcam to site sim Coding Forum 1 08-21-2005 04:43 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:36 AM.
© Copyright 2008 V7 Inc