educational

Easy RSS Feeds

The increasingly popular RSS feed is something that may seem complex at first glance, but once you have its nuances down, can easily be implemented in a matter of minutes.

This article is written in basic terms so that it can be understood by all levels of web developer — from the fresh-to-the-biz newbie all the way up to the experienced webmaster. Because this is a "basics" article, we will discuss the basics first.

Originally known as an RDF (Resource Description Framework) site summary, RSS is commonly referred to today as really simple syndication, or occasionally, a rich site summary. Whatever the name you use, RSS feeds can be used in many different ways.

RSS feeds, which can be a simple summary of the linked-to content or a full text of the content — are read using special software, which is called either an RSS reader, feed reader or aggregator or sometimes directly on websites which embed these feeds into their pages.

Standard RSS feeds are written in XML (eXtensible Markup Language), but some feeds are also written in the original RDF format or Atom syndication format — another XML-related language.

In this article we will focus on the more popular XML RSS feed.

Typically we think of a feed as a listing of news items, forum or blog postings or other information from a favorite site or resource. Many portal sites feature content that is comprised completely of RSS feeds.

You can find RSS feeds in use within CMS (content management system)-driven sites; in community forums (such as those powered by the popular vBulletin message board); and on blogs, where feeds are automatically created by platforms such as WordPress and Blogger.com.

If your website utilizes a program such as WordPress, vBulletin or another program that creates its own feeds, then you already have access to an RSS feed. You can use these feeds within your site network to display new posts on another page or site — or even to offer to your site's visitors for use in their feed readers.

Creating an RSS feed is very similar to creating an HTML page — there are required tags to begin and end your feed and required tags that must be used within the markup in order to get it all to work. Refer to the example below to see how the basic structure of the RSS feed must be created:

<?XML VERSION="1.0" ?>
<RSS VERSION="2.0">
<CHANNEL>
<TITLE>MY RSS FEED</TITLE>
<LINK>https://WWW.MYWEBSITE.COM</LINK>
<DESCRIPTION>A BASIC DESCRIPTION FOR MY FEED OR MY WEBSITE GOES HERE.</DESCRIPTION>
</CHANNEL>
</RSS>

Within this basic structure — after the <description></description> tags and before the </channel> closing tag — you can add each item that you want displayed in your feed.

When linking to your feed or giving visitors a chance to subscribe to your feed, you will be able to set the number of items that will be linked or offered, so keep in mind you will need a couple of items to be added to this section. The individual item markup is below; just add a new set of tags like this for each and every item to be updated on your list:

<ITEM>
<TITLE>NEWS ITEM TITLE</TITLE>
<LINK>https://WWW.MYWEBSITE.COM/ACTUALARTICLEORITEM.HTML</LINK>
<DESCRIPTION>DESCRIPTION GOES HERE — CAN BE AS LONG OR SHORT AS YOU WANT IT. CAN BE A BRIEF SUMMARY OR EVEN JUST THE FIRST PARAGRAPH OR COUPLE OF SENTENCES FROM THE MAIN CONTENT PAGE THAT YOU ARE LINKING TO IN THE FEED…</DESCRIPTION>
</ITEM>

Once your page is created you must name it using an .xml extension — for example: RSSfeed.xml would be a suitable name, or you could use keywords to name the feed, which is an excellent idea, especially if you are utilizing multiple feeds.

Familiarize yourself with how others are using RSS feeds and try to get new ideas. You will see that there are other elements that you can list within your feed. Here are a few extras that you can add to your feed structure to enhance your content or to make it more available to feed directories and readers:

<CATEGORY>KEYWORD</CATEGORY>

This is especially helpful for sites that have multiple feeds built for various categories and targeted areas of their site. Adult site examples include: Big Breasts, Lesbian, Fetish, etc. — use as you would categorize free sites or areas of your site for your traffic.

<COPYRIGHT>COPYRIGHT YOURSITE.COM © 2008 — ALL RIGHTS RESERVED. </COPYRIGHT>

The above adds a simple copyright to your feed to let others know that this content — even in feed form — belongs to you and your site.

<IMAGE>
<URL>https://WWW.WMYWEBSITE.COM/IMAGES/LOGO.GIF</URL>
<TITLE>MYWEBSITE.COM</TITLE>
<LINK>https://WWW.MYWEBSITE.COM</LINK>
</IMAGE>

The image element requires a beginning <image> and ending </image> tag of course, but also must include the URL of the image, the title or alternate text for the image and a link to the main site. Use this to add your site logo or other related graphic to your feed.

<PUBDATE>FEBRUARY 1, 2008</PUBDATE>

This identifies the most recent publication date of your feed and is good for keeping aggregators and feed readers current with your most recent updates.

<WEBMASTER>WEBMASTER@MYWEBSITE.COM — WEBMASTER</WEBMASTER>

The above identifies and adds a contact e-mail address for the webmaster or creator of the feed or site.

There are a number of ways that you can use your RSS feed. You can simply link to your feed on your site so that your readers can get feeds sent to them automatically whenever the site updates, for example, <a href="https://www. mywebsite.com/feed.xml><img src="rss.gif"></a>, which uses an RSS image file; but you can also use a basic text link.

You can auto-add your feed to an online aggregator such as FeedBurner.com by using the program to create a personalized feed and then follow the linking instructions to add a code to your site which will allow visitors to add feeds using all of the top feed readers currently in-use.

You can also directly embed your feed into an HTML or other type of web page so that your readers can view content from all over your site network.

The simplest way to embed your RSS feed into your web page is to utilize the free, open source program found at Feed2JS.org. You can either use the program via its website or you can download and install the program on your server to run your own copy. Feed2JS works in three-easy steps. First you just add a link to your feed that you've uploaded to your server; then use the tools provided to build the JavaScript command; and finally personalize the feed to control how many items to display and create CSS formatting which is easily handled through the program using pre-made themes that you can use or modify to create a theme that will blend with your site's design. Then all you do is copy and paste the provided code into your web page — and that's it.

The program even provides a direct link to validate your feed before the JavaScript is created to ensure that your feed will display properly.

Below is an example of the code that you would use to embed your feed into your pages:
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="https://FEED2JS.ORG//FEED2JS.PHP?SRC=HTTP%3A%2F%2FWWW.Y OURWEBSITE.COM%2FYOURFEED.XML&NUM=4&DESC=1& UTF=Y" TYPE="TEXT/JAVASCRIPT"></SCRIPT>
<NOSCRIPT>
<A HREF="https://FEED2JS. ORG//FEED2JS.PHP?SRC=HTTP%3A%2F%2FWWW.YOURWEBSITE.COM%2 FYOURFEED.XML &NUM=4&DESC=1&UTF=Y&HTML=Y">VIEW RSS FEED</A>
</NOSCRIPT>

There are literally thousands of RSS resources and programs available online for you to use that will help you maximize the potential for your feeds in your online project. Rather than simply list a bunch of ideas, here are a few resources that will help you to develop your own unique feeds with a look, feel and usefulness that your site's visitors will appreciate:

Related:  

Copyright © 2024 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

Best Practices for Payment Gateway Security

Securing digital payment transactions is critical for all businesses, but especially those in high-risk industries. Payment gateways are a core component of the digital payment ecosystem, and therefore must follow best practices to keep customer data safe.

Jonathan Corona ·
opinion

Ready for New Visa Acquirer Changes?

Next spring, Visa will roll out the U.S. version of its new Visa Acquirer Monitoring Program (VAMP), which goes into effect April 1, 2025. This follows Visa Europe, which rolled out VAMP back in June. VAMP charts a new path for acquirers to manage fraud and chargeback ratios.

Cathy Beardsley ·
opinion

How to Halt Hackers as Fraud Attacks Rise

For hackers, it’s often a game of trial and error. Bad actors will perform enumeration and account testing, repeating the same test on a system to look for vulnerabilities — and if you are not equipped with the proper tools, your merchant account could be the next target.

Cathy Beardsley ·
profile

VerifyMy Seeks to Provide Frictionless Online Safety, Compliance Solutions

Before founding VerifyMy, Ryan Shaw was simply looking for an age verification solution for his previous business. The ones he found, however, were too expensive, too difficult to integrate with, or failed to take into account the needs of either the businesses implementing them or the end users who would be required to interact with them.

Alejandro Freixes ·
opinion

How Adult Website Operators Can Cash in on the 'Interchange' Class Action

The Payment Card Interchange Fee Settlement resulted from a landmark antitrust lawsuit involving Visa, Mastercard and several major banks. The case centered around the interchange fees charged to merchants for processing credit and debit card transactions. These fees are set by card networks and are paid by merchants to the banks that issue the cards.

Jonathan Corona ·
opinion

It's Time to Rock the Vote and Make Your Voice Heard

When I worked to defeat California’s Proposition 60 in 2016, our opposition campaign was outspent nearly 10 to 1. Nevertheless, our community came together and garnered enough support and awareness to defeat that harmful, misguided piece of proposed legislation — by more than a million votes.

Siouxsie Q ·
opinion

Staying Compliant to Avoid the Takedown Shakedown

Dealing with complaints is an everyday part of doing business — and a crucial one, since not dealing with them properly can haunt your business in multiple ways. Card brand regulations require every merchant doing business online to have in place a complaint process for reporting content that may be illegal or that violates the card brand rules.

Cathy Beardsley ·
profile

WIA Profile: Patricia Ucros

Born in Bogota, Colombia, Ucros graduated from college with a degree in education. She spent three years teaching third grade, which she enjoyed a lot, before heeding her father’s advice and moving to South Florida.

Women In Adult ·
opinion

Creating Payment Redundancies to Maximize Payout Uptime

During the global CrowdStrike outage that took place toward the end of July, a flawed software update brought air travel and electronic commerce to a grinding halt worldwide. This dramatically underscores the importance of having a backup plan in place for critical infrastructure.

Jonathan Corona ·
opinion

The Need for Minimal Friction in Age Verification Technology

In the adult sector, robust age assurance, comprised of age verification and age estimation methods, is critical to ensuring legal compliance with ever-evolving regulations, safeguarding minors from inappropriate content and protecting the privacy of adults wishing to view adult content.

Gavin Worrall ·
Show More