#1
|
||||
|
||||
Making an RSS Feed!
I was wondering how to make these. Then I made one. It was epic. So I'm sharing this new-found knowledge with all of you now XD
For those that don't know what an RSS Feed is, it stands for Really Simple Syndication. Really Simple. They're those little orange boxes people post on their sites nowadays. (like these: ) Lots of webmasters use these to allow users to keep up-to-date with new content, making this great for News posts. Make a new file (using whatever you make your codes in). The file should be called "rssfeed.xml". Copy and paste this: Code:
<?xml version="1.0"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <atom:link href="http://YOURURLHERE/rssfeed.xml" rel="self" type="application/rss+xml" /> <title>SITENAME</title> <description>SITEDESCRIPTION</description> <link>LINKTOSITENEWSARCHIVE</link> <item> <title>ENTRYTITLE</title> <description>ENTRYDESCRIPTION</description> <link>ENTRYLINK</link> <guid>ENTRYLINK</guid> </item> </channel> </rss> A quick overview of the different tags, then I'll help you customize this for your site. :3
Now that we've got that out of the way, how about we customize this for yourself? We'll start near the beginning: Code:
<channel> <atom:link href="http://YOURURLHERE/rssfeed.xml" rel="self" type="application/rss+xml" /> Code:
<title>SITENAME</title> <description>SITEDESCRIPTION</description> <link>LINKTOSITENEWSARCHIVE</link> Code:
<item> <title>ENTRYTITLE</title> <description>ENTRYDESCRIPTION</description> <link>ENTRYLINK</link> <guid>ENTRYLINK</guid> </item> And that's all for the coding! But what about adding more content you might say? Well, that's easy enough! Just duplicate the <item> section above and edit the information to reflect a new entry. I haven't tested this out extensively, so I don't know which order you'll need to set it in to display newer information on top. If you need a validation of your code, paste the link to your code in this website and it should tell you if you have any errors. If you need more help, just paste the code here and I'll take a look at it. :3 ----- Now that we've got the code working, let's give your users a link. First, you'll need an image; a text link works, but a cute little orange box is more adorable and demands you to click it. You can use images from this site, for free, without credit. Just be sure to save the images to your computer, then upload them to your own host. Then, you just need to make an image with a link (someplace people will see, like your homepage and/or the news archive). The link should be to your XML file. And that's all! The working example I made of this is sadly for a WIP site (non-adoptable, writing stuff) and has no entries in it so I figured it wouldn't be good to use. But you could click on this to subscribe to my Smackjeeves webcomic just to see how it works (then feel free to unsubscribe if you don't want to watch it). If you have Firefox you can view your RSS Feeds by clicking on Bookmarks>Bookmarks Toolbar>then your RSS Feeds will be listed there. Hovering over one will show recent feeds. Other browsers should work the same, but IDK. Enjoy <3 If you have any questions feel free to ask! :3
__________________
"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo My Adoptables|Nuzlocke Webcomic |
#2
|
||||
|
||||
This looks great Gigi, a very interesting tutorials about RSS Id say. In fact I've never used RSS on my sites, but now I guess I may give it a try. Hopefully it will help some members here, at least for those who are already kinda familiar with programming.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
News Feed | Yuki Night | Suggestions and Feature Requests | 0 | 01-30-2013 12:04 AM |
Implementing A News Feed | Yuki Night | Questions and Supports | 0 | 01-29-2013 05:25 PM |
News feed script? | Aasixx | Staff Central | 3 | 06-18-2012 03:06 AM |
Making a map... help! | dulop | Questions and Supports | 5 | 05-23-2012 08:14 PM |
Feed & Play | Canaille | Questions and Supports | 4 | 08-21-2011 06:17 PM |
What's New? |
What's Hot? |
What's Popular? |