Include image with RSS feed similar to Discovery Channel example

Newsgator Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Include image with RSS feed similar to Discovery Channel example Expand / Collapse
Author
Message
Posted 1/23/2008 2:25:27 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 1/24/2008 5:37:32 PM
Posts: 3, Visits: 8
I'd like to include an image that goes with each feed. The image would be static and not relate specifically to the article feed item but would come from the feed owner. The image would need to be clickable.

It looks as though I need some code similar to this: http://forum.newsgator.com/Topic33494-53-1.aspx?Highlight=image+widget

but I'm not at all sure.

Any help appreciated.

Thanks
Post #35821
Posted 1/23/2008 10:14:19 AM
NewsGator

NewsGator

Group: Administrators
Last Login: 6/29/2008 10:04:05 PM
Posts: 38, Visits: 143
dahowlett,

The first thing to mention here is that not all feed owners include a feed image in the RSS that they publish. But if you can find some feeds that you want to use which all include such an image, then what you're asking certainly may be possible.

The other caveat that I must throw in here is that in order to do the type of customization it would take to use these images in the way you've described, you would need to have a premium level account. The basic free account does not give you access to the code that will need to be changed.

How do you know if a feed has an image?
When you go to a feed's xml URL, like this for example: http://rss.news.yahoo.com/rss/oped

You need to "view source" on the page to reveal the xml tags. Next, look for an < image > tag before the first < item > tag. Like shown here:

< channel >
< title >Yahoo! News: Opinion< /title >
< copyright >Copyright (c) 2008 Yahoo! Inc. All rights reserved.< /copyright >
< link >http://news.yahoo.com/i/742< /link >
< description >Opinion< /description >
< language >en-us< /language >
< lastBuildDate >Wed, 23 Jan 2008 15:10:45 GMT< /lastBuildDate >
< ttl >5< /ttl >
< image >
< title >Yahoo! News< /title >
< width >142< /width >
< height >18< /height >
< link >http://news.yahoo.com/i/742< /link >
< url >http://us.i1.yimg.com/us.yimg.com/i/us/nws/th/main_142b.gif< /url >
< /image >

< item > .....etc

The above image tag (in bold) is part of the channel element ("channel" corresponds to the feed itself). Once you go past the first item tag (which corresponds to the first post in the feed), any images are basically thumbnails for the specific post that it is part of.

If you build a widget made up of feeds that all have this channel image element, then we can look into what it might take to pull those images into the widget somehow.

In general I would estimate that about a third of the feeds we have in our system have these optional feed images.



Regards,




Dan Borrego
NewsGator Technologies,
Technical Support, Syndication Services
Post #35847
Posted 1/23/2008 10:45:21 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 1/24/2008 5:37:32 PM
Posts: 3, Visits: 8
Hi Dan - I was under the impression Jeff Nolan had arranged for my account to be upgraded? I'll look into the other issues you mention.
Post #35854
Posted 1/24/2008 2:52:20 PM
NewsGator

NewsGator

Group: Administrators
Last Login: 6/29/2008 10:04:05 PM
Posts: 38, Visits: 143
originally posted by dahowlett:
Hi Dan - I was under the impression Jeff Nolan had arranged for my account to be upgraded?

He certainly could have. If he did then yes, you will be able to get under the hood and muck with all sorts of stuff.  (btw - I have no way of identifying your account by a forum post) 

Let me know when you have all the right feeds built into a widget and we'll move forward.



Dan Borrego
NewsGator Technologies,
Technical Support, Syndication Services
Post #35965
Posted 1/24/2008 3:32:56 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 1/24/2008 5:37:32 PM
Posts: 3, Visits: 8
For security reasons, could you drop me an email to dahowlett [at] gmail.com and I can provide the necessary information re account etc.
Post #35969
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 6:15am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.156. 9 queries. Compression Disabled.

NewsGator.com | Support | Developers | Partners | Press | Company
© Copyright 2003-2008  NewsGator Technologies, Inc. All Rights Reserved.
Copyright Information | Privacy Policy | Terms of Service
Microsoft Gold Certified Partner