Welcome to City-Data.com Forum!
U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Science and Technology > Internet
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
Reply Start New Thread
 
Old 11-01-2011, 08:25 AM
 
105 posts, read 573,680 times
Reputation: 133

Advertisements

Hi: Does anyone know of a fairly simple way to install an RSS feed on my homepage? I googled it and have tried three different methods, but none of them seem to work properly.

Your help appreciated.
Reply With Quote Quick reply to this message

 
Old 11-02-2011, 06:34 AM
 
41,813 posts, read 51,051,710 times
Reputation: 17865
Does it need to be automated from content you already have?...or are you going to manually update it?

I would suggest trying the manual root first to familiarize yourself with the format. It's pretty straight forward document you can create in text editor, link to it the head of your document..... Done.

It gets complicated if you want to automate it, needs a programmed script and has to gt the content from somewhere like a database.
Reply With Quote Quick reply to this message
 
Old 11-02-2011, 05:33 PM
 
105 posts, read 573,680 times
Reputation: 133
Thank you for your response, but that really doesn't tell me how to do it, or send me to a page which has instructions which work.
Reply With Quote Quick reply to this message
 
Old 11-02-2011, 10:17 PM
 
41,813 posts, read 51,051,710 times
Reputation: 17865
Open up a text editor like notepad++ and paste an example into it like the one provided on Wikipedia:

RSS - Wikipedia, the free encyclopedia

Save it as myfeed.xml

Open up a page on your site with the text editor and between the head tags paste this, be sure to change example.com to your domain.

<link rel="alternate" type="application/rss+xml" title="Title For Your Feed" href="http://www.example.com/myfeed.xml" />


Save an upload both files, when you load the page the icon in your browser that there is active RSS feed should now be visible -or- you could go directly to the feed. If the icon is not active hit ctrl f5 which does true refresh.
Reply With Quote Quick reply to this message
 
Old 11-03-2011, 08:02 AM
 
105 posts, read 573,680 times
Reputation: 133
Thank you, coalman! I inserted the code in the header, and created an xml file, but how do I connect this with an RSS button graphic?


I did try. Instead of putting that one line of code in the header, I did the following (which doesn't create a link, at all):


<link rel="alternate" type="application/rss+xml" title="bsv RSS feed" href="http://the URL of my page/myfeed.xml" />
<img src="RSS.gif" border="0" alt="RSS button"></a>


When I put just this in the header:


<link rel="alternate" type="application/rss+xml" title="bsv RSS feed" href="http://the URL of my page/myfeed.xml" />

Nothing appears to happen at all.

Last edited by caligali; 11-03-2011 at 08:19 AM..
Reply With Quote Quick reply to this message
 
Old 11-03-2011, 08:45 AM
 
41,813 posts, read 51,051,710 times
Reputation: 17865
Quote:
Originally Posted by caligali View Post


When I put just this in the header:


<link rel="alternate" type="application/rss+xml" title="bsv RSS feed" href="http://the URL of my page/myfeed.xml" />

Nothing appears to happen at all.

Success! I just checked it from the link you provided. This doesn't put anything on the page itself, anything in the head tag is to provide information about the document, script etc. If you look up on the top of the browser you'll find you now have an active RSS feed link. In FF it appears in the address bar, in IE it's going to be somewhere near the settings. You can can click and subscribe to the feed.

To add a link to the feed on the page it's just a regular link somewhere between the <body> tags:

<a href="http://the URL of my page/myfeed.xml"><img src="RSS.gif" border="0" alt="RSS button"></a>
Reply With Quote Quick reply to this message
 
Old 11-03-2011, 08:53 AM
 
105 posts, read 573,680 times
Reputation: 133
That workx! Wow. Thank you.

When I click the button, the hyperlink takes me to the page where you can get a URL for the feed.

However, it says:

Example entry


[IMG]res://ieframe.dll/feedarrowtrans.png[/IMG]
Here is some text containing an interesting description.


...is there something else I need to add?


(thanks!!!!)
Reply With Quote Quick reply to this message
 
Old 11-03-2011, 09:24 AM
 
41,813 posts, read 51,051,710 times
Reputation: 17865
A feed is to provide updates/news/changing information. For example you might want to use it to publish sales etc. You have to manually edit in new items:

<item>
<title>New Violins in Stock</title>
<description>We now have new violins in stock!</description>
<link>http://www.example.com/linktonewvilolins.html</link>
<guid>unique string per item</guid>
<pubDate>Thur, 11 Nov. 2011 00:01:00 +0000 </pubDate>
</item>

For each one of these you put in there will be different listing. RSS feed aren't intended to be viewed in a browser but simply a way for a user on your website to subscribe to it and have it retrieved by a feed reader usually on a daily basis. This way they can easily sort through a lot of websites that interest them without actually pulling up a page from the website. A great example of where you might use RSS is news site. For example maybe you have 2 hour commute in the morning with no internet access, you could have the feed reader retrieve all the feeds you have subscribed too before you leave for work and then look at them during your commute.
Reply With Quote Quick reply to this message
 
Old 11-03-2011, 09:39 AM
 
105 posts, read 573,680 times
Reputation: 133
I recognize that block of code from my attempts elsewhere. And this goes after the code in the body? Or in the header?


I tried both; it doesn't goes in the body, as it shows up as text. I put it in the header, but that doesn't seem to change the text at the hyperlink...

Even above the
</head>

the text shows up on the page....


Where should it be placed?

Last edited by caligali; 11-03-2011 at 09:48 AM..
Reply With Quote Quick reply to this message
 
Old 11-03-2011, 09:48 AM
 
Location: Tyler, TX
23,861 posts, read 24,111,507 times
Reputation: 15135
tcm has given it a valiant effort, but there's certain information that someone has to have in order to give you a good answer, and that info hasn't been asked for/provided yet.

So really the first questions that should be asked are:

1. What information do you want to provide via the feed?

2. What CMS (Content Management System) or other software is running your website? (e.g. Joomla, Wordpress, etc.)

Given your apparent level of technical prowess (not a slight, btw), unless there's a plug-in option for your CMS, you're not likely to succeed in doing what you want. Hand editing an XML file is not only tedious, but it's prone to human error - XML feeds are designed to be read by machines, and typos aren't tolerated.
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:


Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Science and Technology > Internet

All times are GMT -6. The time now is 09:31 PM.

© 2005-2024, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Contact Us - Archive 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 - Top