Quality stock photos for your creative or marketing needs. Photolibrary - We Get It


Graphic Design Forums: UK forums for graphic designers » Website Design Forums: » Website Coding & Programming Forum: » Adding a custom RSS feed to your website

Reply
Old 06-17-2010, 04:33 PM   #1
Junior Member
 
mymcreative's Avatar
 
Join Date: Jun 2010
Location: UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mymcreative
Default Adding a custom RSS feed to your website

Just was wondering if anyone had a quick 'how to' on adding an RSS feed to a website.

I understand that styling ti can do done via css, but actually generating the code is something that has got be stumped. I have trawled the web and found various services (including Google Reader) that will create a feed for you, but do they let you customise it?

Any help would be great :)

Many thanks,

Mark
mymcreative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-17-2010, 11:47 PM   #2
djb
Senior Member
 
djb's Avatar
 
Join Date: Apr 2010
Location: Farnham, Surrey
Posts: 347
Thanks: 30
Thanked 51 Times in 49 Posts
Send a message via Skype™ to djb
Default

Have you come across this site: Dynamic Drive DHTML(dynamic html) & JavaScript code library

If you do a search on there for RSS Feed it will come up with a few scripts to do it (and style them with CSS like you said).

I can't give you a How To as its been a while since I did it but from what I remember it's pretty straightforward. Grab a coffee (or four) and try some of them out and I'm sure you'll find what you want.
__________________
David John Bennett
Graphic and Web Designer, Farnham, Surrey
djb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-18-2010, 09:50 AM   #3
Member
 
Join Date: Apr 2010
Location: Norfolk
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I built a custom RSS feed a few weeks back for the first time.

It is straight forward to do assuming that you have some PHP knowledge.
There are a couple of approaches - I opted for a method whereby my CMS creates an actual xml file when ever a new file is saved, or an existing one is edited.
Alternatively, you can use php to create it on demand (see link below).

The method that you choose is up to really depending on what the feed comes from & how you want it to work.

Have a look at this tutorial to get an idea of how easy it actually is:
create an rss feed with php/

If you wanted to save it as an xml as I did, you just need to save the xml data into a text file rather than echoing it out.
craftygeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-18-2010, 10:31 AM   #4
Junior Member
 
mymcreative's Avatar
 
Join Date: Jun 2010
Location: UK
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mymcreative
Default

Thanks CraftyGeek, PHP isn't my strongest skill to be honest, but I will have a look through it.

Is there a slightly simpler method? :)

Thanks,

Mark
mymcreative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-18-2010, 10:55 AM   #5
Member
 
Join Date: Apr 2010
Location: Norfolk
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Default

if you want it as simple as it can get....you can do it manually - create an xml file & add new articles as you create them....this would get tedious very quickly though.

You don't state what you want the RSS feed to run from...I presume that you have some form of CMS that is having new content added? - without knowing more I don't think anyone can be of much help.
craftygeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-26-2010, 07:52 PM   #6
Senior Member
 
creatabledesign's Avatar
 
Join Date: Mar 2010
Location: Swindon
Posts: 137
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Thanks for the link to the Tutorial CraftyGeek, I am a designer slowly learning development and need to create an xml feed for a news system that I am working on.

Thanks again :)
__________________
Regards,
Jonathan
http://www.creatabledesign.co.uk
creatabledesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 07-03-2010, 01:08 PM   #7
Junior Member
 
AMI Creative's Avatar
 
Join Date: Nov 2009
Location: Staffordshire, Stoke-on-Trent
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you're creating a feed for say a news area remeber to include the link rel alternative in your header tag,as some browsers show a feed icon in the address bar when this is present:

HTML Code:
<link rel="alternate" type="application/atom+xml" href="http://www.yoursite.co.uk/rss/news" title="feed/http://www.yoursite.co.uk/rss/news" >
Amy
AMI Creative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 07-03-2010, 01:13 PM   #8
Senior Member
 
creatabledesign's Avatar
 
Join Date: Mar 2010
Location: Swindon
Posts: 137
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Cool, thanks for the quick tip Amy :)
__________________
Regards,
Jonathan
http://www.creatabledesign.co.uk
creatabledesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Reply

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

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



Flyer Printing | Print Reseller Scheme | Graphic Design | Logo Designer | Web Design UK | Graphic Design UK | Letterhead Printing
Business Card Printing | UK Business Forum | Logo Designer | NCR Pads | NCR Books | Receipt Books | Drinks Coasters | A6 Flyers | A5 Leaflets
Web Design & Development | vBulletin Skins | Small Business Websites | Leaflets | Leaflet Printing | Web Design Liverpool | Invoice Books


DISCLAIMER: All posts on this forum express the views and opinions of the author only, not the owners, staff or advertisers, hence we will not be held liable.


Powered by vBulletin®
© Copyright Jelsoft Enterprises Ltd
SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.