#64512 - 04/28/06 01:23 PM
Re: Addding RSS Feeds to Website
|
Junior Member
Registered: 03/01/06
Posts: 8
Loc: Orange County, CA
|
If you are adding less then one article to your website per week, and want to share it through RSS, then you can easily do/edit RSS manualy. It is not required to automate FEED generation.
|
|
Top
|
|
|
|
#64513 - 04/28/06 04:45 PM
Re: Addding RSS Feeds to Website
|
Member
Registered: 12/29/04
Posts: 38
|
I was using magpie, and still do on my asp sites but found the following on digital point for php and it's the as simple as can be. Just add the full url of the desired feed in place of http://www.yourfeedhere. <?php
$insideitem = false;
$tag = "";
$title = "";
$description = "";
$link = "";
function startElement($parser, $name, $attrs) {
global $insideitem, $tag, $title, $description, $link;
if ($insideitem) {
$tag = $name;
} elseif ($name == "ITEM") {
$insideitem = true;
}
}
function endElement($parser, $name) {
global $insideitem, $tag, $title, $description, $link;
if ($name == "ITEM") {
printf("<dt><a href='%s'>%s</a></dt>",
trim($link),htmlspecialchars(trim($title)));
printf("<dt>%s</dt>
",htmlspecialchars(trim($description)));
$title = "";
$description = "";
$link = "";
$insideitem = false;
}
}
function characterData($parser, $data) {
global $insideitem, $tag, $title, $description, $link;
if ($insideitem) {
switch ($tag) {
case "TITLE":
$title .= $data;
break;
case "LINK":
$link .= $data;
break;
}
}
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
$fp = fopen("http://www.yourfeedhere","r")
or die("Error reading RSS data.");
while ($data = fread($fp, 4096))
xml_parse($xml_parser, $data, feof($fp))
or die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
fclose($fp);
xml_parser_free($xml_parser);
?>
|
|
Top
|
|
|
|
#64516 - 05/23/06 05:04 AM
Re: Addding RSS Feeds to Website
|
Member
Registered: 05/15/06
Posts: 21
Loc: Austin, TX
|
Hi Kevin. You have some good technical advice here. So let me offer a bit of the non-technical... An often-overlooked fact about RSS feeds is that many web users have no clue what they are. Sure, webmasters and web marketers know about them, but a lot of the intended audience remains clueless. RSS becomes more popular every day, but it's a long way from being a household term. Before I knew about RSS, I used to see links on websites all the time that just said "our feed" or "RSS." I ignored them because they never meant anything to me. Then one day I stumbled across a website that explained the purpose and value of RSS. My reaction: "You mean I can add this to my 'My Yahoo' page with a simple click? And it sends me fresh content regularly and anonymously? Cool. Why didn't anybody tell me that before?" The websites that explain the value of RSS are the websites with the most RSS subscribers. Seth Godin, a internet marketing pioneer, says it well in his blog post below: http://sethgodin.typepad.com/seths_blog/2005/08/whats_rss.html Here are a couple of articles you might find helpful: http://www.digitaldivide.net/articles/view.php?ArticleID=68 http://www.chacocanyon.com/resources/rss-explained.shtml Hope that helps!
|
|
Top
|
|
|
|
#64517 - 09/17/06 11:06 AM
Re: Addding RSS Feeds to Website
|
Junior Member
Registered: 09/17/06
Posts: 5
Loc: uk
|
I agree with Brandon, with the fact that RSS is largely overlooked by a lot of website owners because it seems very complicated.
I have an articles section on one of my websites and use magpie to feed the articles here and there. It is fairly easy to implement, but probably wouldn't be for a novice website owner. There do seem to be a lot of very user friendly RSS parsers available now, some you have to pay for. have not ried any, so cannot comment.
I have the feeds in a lot of the RSS search engines, but have found the take up very poor, even though there are some very good original articles all related to the travel industry.
In conclusion, the take up of RSS and similar feeds is still in its early stages, but will be commonplace sometime in the future, is my opinion.
|
|
Top
|
|
|
|
#64519 - 09/18/06 01:53 PM
Re: Addding RSS Feeds to Website
|
Member
Registered: 12/22/04
Posts: 29
Loc: San Diego
|
Hey, thanks for bumping this post. I should have reported back earlier (my bad). I did find a solution. It is a software program called CaRP They have a short article here called Two simple steps to higher search engine placement They have a free version or the paid version gives you more options. Since it is PHP, the only tricky part I found was that you do have to follow the steps to modify your htaccess file to recognize htm and html ending. Here are a couple of pages I've been working with. This is a develoment page for San Diego Real Estate site: http://www.garykentteam.com/dev/rss-feed-carp.htm Here is a domain incubation information site I am developing I think it is a cool idea to add fresh content to otherwise static page. From what I've read, it probably will not be a great SEO benefit from the content as much as from the amount of changing content.
|
|
Top
|
|
|
|
#64520 - 09/18/06 08:46 PM
Re: Addding RSS Feeds to Website
|
Member
Registered: 12/22/04
Posts: 29
Loc: San Diego
|
Okay, now I'm going to have a little fun, But here is another example of how I used the CaRP RSS Feed. Check out my homage to September 19th, International Talk Like A Pirate Day! http://www.white-hat-domains.com/tlap.html Even though this is tongue-in-cheek it does show another way of adding dynamic content.
|
|
Top
|
|
|
|
|
|