Irish SEO,  Marketing & Webmaster Discussion

 
ThinkGeek - Cool Stuff for Geeks and Technophiles

Setting up rss feeds

This is a discussion on Setting up rss feeds within the Coding Help forums, part of the Webmaster Help category; To be honest I'd not used magpie before yesterday very handy to set up and run with a bit of ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 21-12-2007, 03:38 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,016
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

To be honest I'd not used magpie before yesterday very handy to set up and run with a bit of php knowledge


You may be interested in the international aspect of Last RSS http://lastrss.oslab.net/demo4.phps
__________________
Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it )
Recent Work: Safari Club African Safari Holidays - South Africa Safaris
Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #22 (permalink)  
Old 21-12-2007, 03:42 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,016
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

bloody hell ... just saw this thread has 585 views ? ... not bad considering it was only created yesterday
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #23 (permalink)  
Old 21-12-2007, 04:50 PM
ghost's Avatar
Wannabe Geek
 
Join Date: Dec 2007
Location: Ennis
Posts: 160
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ghost will become famous soon enough
Default wood and trees

Found the problem with my last Rss feeds
yes it was encoding . the site example I gave was built with html and php scripts on seperate pages , I had placed the document character encoding
on the php page instead of the html page.
I only noticed when I viewed the demo thanks forbairt .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #24 (permalink)  
Old 21-12-2007, 04:58 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,016
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

no problem

Character Encoding was the bane of my existance about 4 years ago when I started working on a multilingual website application featuring about 13 languages .. UG ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #25 (permalink)  
Old 22-12-2007, 01:34 AM
ghost's Avatar
Wannabe Geek
 
Join Date: Dec 2007
Location: Ennis
Posts: 160
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ghost will become famous soon enough
Default 624 and counting

Quote:
Originally Posted by Forbairt View Post
bloody hell ... just saw this thread has 585 views ? ... not bad considering it was only created yesterday
624 and counting
I am not surprised This was a Good Tutorial on RSS set up and should be up graded to Sticky.
has my vote.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #26 (permalink)  
Old 03-01-2008, 05:49 PM
Frontpage User
 
Join Date: Dec 2007
Posts: 24
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Big D will become famous soon enough
Default encoding?

'scuse my ignorance in this, but I too am having problems with Irish newsfeeds where the letters have accents, like the `e' in RTE and `i' in Gardai.

My problem is that I don't know what you mean by the `encoding' and where I would find it - is it part of the doctype?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #27 (permalink)  
Old 03-01-2008, 06:41 PM
ghost's Avatar
Wannabe Geek
 
Join Date: Dec 2007
Location: Ennis
Posts: 160
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ghost will become famous soon enough
Default UTF Encoding

I am using last rss and if everything else is set up right placing the following code in the head of your html document should do the trick.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
if not post again and I will direct you to the rest of the code for last rss.
Mick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #28 (permalink)  
Old 03-01-2008, 06:57 PM
Frontpage User
 
Join Date: Dec 2007
Posts: 24
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Big D will become famous soon enough
Default xhtml

I am using Magpie and this is the line of coding i have in my header:

<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

I swapped it with the line you suggested but to no avail.

Does my problem lie with using Magpie perhaps?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #29 (permalink)  
Old 03-01-2008, 07:25 PM
ghost's Avatar
Wannabe Geek
 
Join Date: Dec 2007
Location: Ennis
Posts: 160
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ghost will become famous soon enough
Default

Sorry Big D I have not used Magpie before ,so I cant help you with that.
But heres the low down on Last RSS I use this because I find it simple to set up .
you can download from here. http://lastrss.oslab.net/lastRSS.zip this is the class file.
Here is the code to use in your page or as an include page.
I have set my cache directory to ./Temp'; change this to suit your system.
cache_time = 14000; // (4hrs)
and Items limit = 5
you will also notice I have a style for the table table class="rss_section"

PHP Code:
function ShowOneRSS($url) {
global 
$rss;
if (
$rs $rss->get($url)) {
echo 
'<h2><a href="'.$rs['link'].'">'.$rs['title']."</a></h2>\n";
echo 
$rs['description']."<br>\n";
echo 
"<ul>\n";
foreach (
$rs['items'] as $item) {
echo 
'<li><a href="'.$item['link'].'" title="'.$item['description'].'">'.$item['title'].'</a></li>';
}
if (
$rs['items_count'] <= 0) { echo "<li>Sorry, no items found in the RSS file :-(</li>"; }
echo 
"</ul>\n";
}
}
// ===
// include lastRSS
include "lastRSS.php";
// List of RSS URLs
$rss_left = array(
'http://www.rte.ie/rss/gaa.xml',
);
$rss_right = array(
'http://www.independent.ie/sport/hurling/rss'
);
// Create lastRSS object
$rss = new lastRSS;
// Set cache dir, cache interval and character encoding
$rss->cache_dir './Temp';
$rss->cache_time 14000// (4hrs)
$rss->cp '';
$rss->items_limit 5;
// Show all rss files
echo '<table class="rss_section" cellpadding="5" border="0"><tr><td width="50%" valign="top">';
foreach (
$rss_left as $urlShowOneRSS($url);
echo 
'</td><td width="50%" valign="top">';
foreach (
$rss_right as $urlShowOneRSS($url);
echo 
'</td></tr></table>'
You can view mine here St Columba's Hurling Club,Renmore Galway GAA bottom of the home page.
Ghost

Last edited by ghost; 03-01-2008 at 07:49 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #30 (permalink)  
Old 03-01-2008, 07:36 PM
Frontpage User
 
Join Date: Dec 2007
Posts: 24
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Big D will become famous soon enough
Default Ta!

Ghost, thanks for that - I will look at last rss and your code tomorrow, but I reckon it could take me hours to figure this out whilst a wizard webmaster could sort it in seconds - I am setting up a new web page and also trying to convert Library Ireland: Irish History and Culture to the same format so I think I'll need to get some expert help to ensure I don't make some grave error - if I can get someone to check my code and css template then I'll get them to sort the feed problem as well.

Thanks again for the replies.

D.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
feeds, rss, setting

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
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
rss feed or newsletter Busarus Webmaster Discussion 4 02-03-2007 09:29 PM
RSS feeds ph3n0m Forum Feedback, Development and Competitions 6 31-01-2007 12:39 AM
1 Bag of RSS feed: 100% RDA of internet. Warning: may contain nut traces. gary.b General Chat 15 29-01-2007 10:03 PM
Web RSS readers Cormac Webmaster Discussion 3 18-10-2006 01:26 PM
rss feed louie General Chat 0 29-04-2006 08:18 PM


All times are GMT +1. The time now is 04:44 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0