Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 11-09-2004, 07:53 PM   #1 (permalink)
Contributing Member
 
Pimpen 2010's Avatar
 
Join Date: 10-13-03
Location: Pffffft
Posts: 8,857
iTrader: 0 / 0%
Latest Blog:
None

Pimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nice
Send a message via AIM to Pimpen 2010 Send a message via Yahoo to Pimpen 2010
Creating an RSS feed

How hard would it be to create an RSS feed for my site?

Anyone know of good coders that can do it for me?
Pimpen 2010 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-09-2004, 11:58 PM   #2 (permalink)
Inactive
 
mysticalmaze's Avatar
 
Join Date: 11-09-04
Location: Rochester, NY
Posts: 21
iTrader: 0 / 0%
Latest Blog:
None

mysticalmaze is liked by many
Send a message via AIM to mysticalmaze Send a message via MSN to mysticalmaze Send a message via Yahoo to mysticalmaze
Hey,

You could try this! http://softwaregarden.com/products/l...den/index.html

Its a free RSS Generator. I haven't used it, but it looks worth trying!

Robert
mysticalmaze is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-10-2004, 01:14 AM   #3 (permalink)
Inactive
 
Join Date: 11-10-04
Posts: 23
iTrader: 0 / 0%
Latest Blog:
None

assiah is liked by many
Easy with RSS

Don't have to know much about coding for RSS feeds.
Here is the Code you need to edit:

<rss version="2.0">
-
<channel>
<title>The Worst Magazine on the Internet</title>
<link>http://www.assiah.net/</link>
<description>
The Worst Magazine on the Internet is a free online magazine, featuring jokes, weird humor, bad news, and stupid facts
</description>
<language>English</language>
-
<item>
<title>The Declaration of Stupidity</title>
<pubDate>November 8, 2004</pubDate>
<link>http://www.assiah.net/entertainment-and-jokes/evidence-against-the-world/the-declaration-of-stupidity.htm</link>
-
<description>
The declaration of Stupidity is now online :-) For all you stupid people out there!
</description>
</item>
-
</channel>
</rss>



Now, let me break it up for you. Copy and paste the above into notepad, and then save it as for instance NEWS.XML - let's edit it a bit, yeah? The stuff you need to edit - I marked out in bold - for your convenience only.
<title>The Worst Magazine on the Internet</title>
<link>http://www.assiah.net/</link>
<description>
The Worst Magazine on the Internet is a free online magazine, featuring jokes, weird humor, bad news, and stupid facts
</description>
<language>English</language>
-
<item>
<title>The Declaration of Stupidity</title>
<pubDate>November 8, 2004</pubDate>
<link>http://www.assiah.net/entertainment-...-stupidity.htm</link>
-
<description>
The declaration of Stupidity is now online :-) For all you stupid people out there!
</description>
</item>
-
</channel>
</rss>

That's pretty easy, yes, and you of course edit the title, link, date etc to fit your needs. I marked those out in bold which you need to concentrate on...
Now, let's run it down fast

The first part is the description of your site, i.e title of it, link to it, description of it, and the language your site is in.

The next part of it is the one you want to really use. It's the news-feed itself. i.e the <ITEM> and what's below it.
1. First there is the TITLE - of the news item, i.e the Declaration of Stupidity
2. Then there is the DATE you published it i.e November 8, 2004
3. Then there is the LINK to item on the internet i.e http://www.assiah.net/entertainment-...-stupidity.htm

You edit those to fit your needs (the ones in bold text, yes) - and voila - save it, upload it - and check it in your own rss-reader to make sure everything is allright. The item should be there, with your description.

If you want to add more, or several other items - then you just copy and paste the following right above the </channel> tag in the buttom:
<item>
<title>YOUR TITLE HERE</title>
<pubDate>YOUR DATE HERE</pubDate>
<link>YOUR LINK HERE</link>
-
<description>
YOUR DESCRIPTION HERE
</description>
</item>
-
And edit it accordingly of course. If you want to check out a little longer newsfeed - you can always go to http://www.assiah.net/news.xml - and see for yourself how the code looks when there's several items in the news feed. You can of course also just use the program the other guy mentioned.

Sincerely,
Martin
assiah is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-10-2004, 01:08 PM   #4 (permalink)
Inactive
 
seonewbee's Avatar
 
Join Date: 05-12-04
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

seonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really nice
One a RSS feed is made, how is it used? How is it imported into a webpage?
seonewbee is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-10-2004, 01:37 PM   #5 (permalink)
Contributing Member
 
Pimpen 2010's Avatar
 
Join Date: 10-13-03
Location: Pffffft
Posts: 8,857
iTrader: 0 / 0%
Latest Blog:
None

Pimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nice
Send a message via AIM to Pimpen 2010 Send a message via Yahoo to Pimpen 2010
So I always have to update the RSS Feed file? There isn't anything that does it automatically for me?
Pimpen 2010 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-10-2004, 01:50 PM   #6 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,946
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Quote:
Originally Posted by Pimpen 2010
So I always have to update the RSS Feed file? There isn't anything that does it automatically for me?
You could do something like this. You would need to customize the items to fit your data. This is assuming all your feed data in in a database.

=========================================

<?
header('Content-type: text/xml');
?>

<rss version="2.0">
<channel>
<title>Name of your site</title>
<description>A description of your site</description>
<link>http://your_home_page_url/</link>
<copyright>Your copyright information</copyright>

<?
$getItems="SELECT id,title,body,UNIX_TIMESTAMP(datePub)
AS pubDate LIMIT 0,8 ORDER BY pubDate DESC";
$doGet=mysql_query($getItems);

while($item=mysql_fetch_array('$doGet'))
{
$id=$doGet['id'];
$title=strip_tags($doGet['title']);
$body=strip_tags($doGet['body']);
$body=substr($doGet['body'],0,150));
$pubDate=strftime("%a, %d %b %Y %T %Z",$doGet['pubDate']);

// output to browser

?>

<item>
<title><?print htmlentities($title,'ENT_QUOTES');?></title>
<description><?print htmlentities($body,'ENT_QUOTES');?></description>
<link>http://your_url/path/and_page.php?article=<?print $id;?></link>
<pubDate><?print $pubDate;?></pubDate>
</item>

<?
}
?>

</channel>
</rss>

=========================================

imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-10-2004, 02:39 PM   #7 (permalink)
Contributing Member
 
Pimpen 2010's Avatar
 
Join Date: 10-13-03
Location: Pffffft
Posts: 8,857
iTrader: 0 / 0%
Latest Blog:
None

Pimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nice
Send a message via AIM to Pimpen 2010 Send a message via Yahoo to Pimpen 2010
Thanks imaginemn, that's what I was looking for
Pimpen 2010 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-11-2004, 12:04 PM   #8 (permalink)
v7n Mentor
 
Buskerdoo's Avatar
 
Join Date: 10-16-03
Location: USA
Posts: 1,559
iTrader: 0 / 0%
Latest Blog:
None

Buskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web pro
maybe a stupid question???

what does a rss do for you as far as seo? I know the changing content can bring people and bots, but other than that?
__________________
Great CD/DVD Sleeves, Mailers, Inserts, Labels, and More - Buskerdoo. We also carry Shipping Labels.
Buskerdoo is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-11-2004, 01:25 PM   #9 (permalink)
Contributing Member
 
Pimpen 2010's Avatar
 
Join Date: 10-13-03
Location: Pffffft
Posts: 8,857
iTrader: 0 / 0%
Latest Blog:
None

Pimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nice
Send a message via AIM to Pimpen 2010 Send a message via Yahoo to Pimpen 2010
Well, free backlinks for people that use your RSS feed, and free traffic when people check out your stuff!
Pimpen 2010 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-11-2004, 08:29 PM   #10 (permalink)
v7n Mentor
 
Buskerdoo's Avatar
 
Join Date: 10-16-03
Location: USA
Posts: 1,559
iTrader: 0 / 0%
Latest Blog:
None

Buskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web proBuskerdoo is a highly respected web pro
I understand the aadvantage to you offering a feed.
__________________
Great CD/DVD Sleeves, Mailers, Inserts, Labels, and More - Buskerdoo. We also carry Shipping Labels.
Buskerdoo is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I block Feed Scrapers from stealing my blog feed? kagemusha Blogging Forum 0 03-27-2007 11:57 AM
help creating a form I like pie Coding Forum 5 05-12-2006 03:28 AM
Creating a pic from an .ico-file Joakim Graphic Design Forum 8 01-09-2006 05:54 AM
creating a pop-up thebassman Coding Forum 22 06-10-2004 09:05 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:57 AM.
© Copyright 2008 V7 Inc