Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

>Anyone experienced with RSS..?

Status
Not open for further replies.

myblueshoes

Level 4
Legacy Platinum Member
Joined
Jun 24, 2004
Messages
176
Reaction score
0
I'd like to try RSS in my site to give it some usful info.

Can anyone give me some tips on how to imbed RSS, where to put the agregator, files, code, etc. in the webpage and on the host server?

please break it down for me - it will be my first.

Tks :-D
 

myblueshoes

Level 4
Legacy Platinum Member
Joined
Jun 24, 2004
Messages
176
Reaction score
0
Alright- many thanks!

(I took a tour of these sites and I'm still a bit clueless- but w/ some time, I'll get it.)
 

harleyx

Level 4
Legacy Platinum Member
Joined
Oct 23, 2003
Messages
241
Reaction score
0
LTmaster said:
Alright- many thanks!

(I took a tour of these sites and I'm still a bit clueless- but w/ some time, I'll get it.)

Here's a couple scripts for putting some rss on your site. One is very simple, but only works for 1 feed. The other is somewhat more complex, but still very cookbook in the setup and administration.

Both are written by programmers I have known for a long time, and both are very nice scripts.

Mark's script, multiple feeds, nice administration panel, runs on php/mysql
http://www.neonbubble.com/?postid=10

Jay's script, quick and easy, works for one rss feed, runs on php, no database needed
http://www.gtds.net/jaysin-rss.txt
 

Sharpy

Level 8
Legacy Exclusive Member
Joined
Dec 15, 2002
Messages
1,714
Reaction score
0
I use rss equalizer. It cost me $97 but it's well worth it. Can be used on any # of sites. You can choose the news feed. here's www.chubby.org using the yahoo news feed and the keyword "diets" The content is always fresh.

Click on the "Powered by RSS Equalizer" link(aff) at the bottom of chubby for more info
 

myblueshoes

Level 4
Legacy Platinum Member
Joined
Jun 24, 2004
Messages
176
Reaction score
0
harleyx said:
Here's a couple scripts for putting some rss on your site. One is very simple, but only works for 1 feed. The other is somewhat more complex, but still very cookbook in the setup and administration.

Both are written by programmers I have known for a long time, and both are very nice scripts.

Mark's script, multiple feeds, nice administration panel, runs on php/mysql
http://www.neonbubble.com/?postid=10

Jay's script, quick and easy, works for one rss feed, runs on php, no database needed
http://www.gtds.net/jaysin-rss.txt



THanks- let's take the simple one (Jay's) the script mentions:
"in the .php file" & "where you want the RSS to show up"

where does this script go (or is it two parts put together)?
do I have to create a .php and upload it to my mysql server- then put a portion of the code where the rss will apear in the page? as you can see, I have no clue how to get this babby going- any help to get me started
 

harleyx

Level 4
Legacy Platinum Member
Joined
Oct 23, 2003
Messages
241
Reaction score
0
It's very easy, just cut and paste the function code above the <html> tag in whatever file you wish to display the feed, like this:

Code:
<?
function RSSFeeds($newsfeed){
$fp = @fopen($newsfeed, 'r');
while(!feof($fp)){
  $row .= @fgets($fp, 4096);
}
@fclose($fp);
if( eregi('<item>(.*)</item>', $row, $rowitem ) ) {
$item = explode('<item>', $rowitem[0]);
for( $i = 0; $i < count($item) - 1; $i++ ) {
  eregi('<title>(.*)</title>', $item[$i+1], $title );
  eregi('<link>(.*)</link>', $item[$i+1], $link );
  eregi('<description>(.*)</description>', $item[$i+1], $description);
  echo '<a href="' . $link[1] . '">' . $title[1] . '</a> - ' .
$description[1] . '<br />';
}}}
?>

<html>
<head>
<title>Title</title>
</head>
<body>
Yada Yada
Here's where I want my feed, so I use this php code:<br>
<? RSSFeeds("http://www.gtds.net/rss.php"); ?>
<br>
More stuff here<br>
</body>
</html>

You'd just need to replace the feed in there with whatever feed you wanted to display. Nothin to it =P
 

myblueshoes

Level 4
Legacy Platinum Member
Joined
Jun 24, 2004
Messages
176
Reaction score
0
harleyx said:
It's very easy, just cut and paste the function code above the <html> tag in whatever file you wish to display the feed, like this:

Code:
<?
function RSSFeeds($newsfeed){
$fp = @fopen($newsfeed, 'r');
while(!feof($fp)){
  $row .= @fgets($fp, 4096);
}
@fclose($fp);
if( eregi('<item>(.*)</item>', $row, $rowitem ) ) {
$item = explode('<item>', $rowitem[0]);
for( $i = 0; $i < count($item) - 1; $i++ ) {
  eregi('<title>(.*)</title>', $item[$i+1], $title );
  eregi('<link>(.*)</link>', $item[$i+1], $link );
  eregi('<description>(.*)</description>', $item[$i+1], $description);
  echo '<a href="' . $link[1] . '">' . $title[1] . '</a> - ' .
$description[1] . '<br />';
}}}
?>

<html>
<head>
<title>Title</title>
</head>
<body>
Yada Yada
Here's where I want my feed, so I use this php code:<br>
<? RSSFeeds("http://www.gtds.net/rss.php"); ?>
<br>
More stuff here<br>
</body>
</html>

You'd just need to replace the feed in there with whatever feed you wanted to display. Nothin to it =P
Harley,

- I've been on a hiatus for a while

Thanks for your help above, BUT

I have tried and tried and even following your simple instructions have not yet been able to resolve RSS in my webpage.

This is not advertising (there's nothing to buy here) : www.myblueshoes.com

The script is there- RSS Feed is not.

Tell me, do I need a .php file or special server - side requirements/ type of server, etc.

Hoping to get to the bottom of this!

Thanks- again!
 

MediaHound

Former DNF Admin
Legacy Exclusive Member
Joined
Feb 25, 2004
Messages
4,162
Reaction score
7
Thats because that page is index.html
What you need to do, is add this line to your .htaccess file.
AddType application/x-httpd-php .html .htm .php

Then watch the magic happen.
Be careful overwriting your .htaccess file if your using frontpage to edit your site,
dont just create a file called .htaccess and upload it.
First see if you can edit it by hand from your control panel file manager.
 

harleyx

Level 4
Legacy Platinum Member
Joined
Oct 23, 2003
Messages
241
Reaction score
0
The simplest solution would be to change the file extention (index.php instead of index.html). Won't affect your html, but it will allow for parsing of php code.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 5) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom