Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsFlickr feed generating error.Flickr feed generating error.
Previous
 
Next
New Post
9/5/2008 5:28 PM
 

Bill Caterino wrote

Trying to create a basic photo gallery for my site using a Flickr news feed and the latest news module (4.0).  I get the following error:

Feed 'api.flickr.com/services/feeds/photoset.gne?set=72157600674590441&nsid=8067485@N02' could not be loaded. Error: Download error

What might be the problem?  Thanks!

Bill,

I tried the following feed (it is in ATOM 1.0 format) and got a result (you might want to tune the XSL to show the pictures, though):

http://api.flickr.com/services/feeds/photos_public.gne

Peter


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
New Post
9/7/2008 10:06 AM
 

Using the public flickr feed link, you could use this custom xsl.  Don't know if it would suit your taste but it gives you a start.  Another thing worth mentioning again - if you have issues using the new module, try using the xml module with a custom xsl. Could give you an idea or two of what else to look at if it works with the xml module, then something in the new news modules validation contraints might be giving you the issue.

<?xml version="1.0" encoding="utf-8"?>
<!--
Modified Atom Feed xsl - tuned for Flick photo lists
Phil 'iwonder' Guerra
2007-05-11
-->
<xsl:stylesheet version="1.0"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:flickr="urn:flickr:"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:dc="http://purl.org/dc/elements/1.1/">
   <xsl:output method="html"/>
 <xsl:template match="/">
  <style>
   <xsl:comment>
   .syndication-content-area {
   }
   .syndication-title {
    font-size: 1.1em;
    font-weight: bold;
   }
   .syndication-description {
    font-size: .9em;
    margin: 0 0 10px 0;
   }
   .syndication-list {
    font-size: .8em;
    margin:0 0 0 20px;
   }
   .syndication-list-item {
    margin: 0 0 5px 0;
   }
   .syndication-list-item a,
   .syndication-list-item a:link {
    color: blue;
   }
   .syndication-list-item a:active,
   .syndication-list-item a:hover {
    color: red;
   }
   .syndication-list-item a:visited {
    color: black;
    text-decoration: none;
   }
   .syndication-list-item-date {
    font-size: .8em;
   }
   .syndication-list-item-description {
    font-size: .9em;
   }
   </xsl:comment>
  </style>
  <xsl:apply-templates select="/atom:feed"/>
 </xsl:template>
 <xsl:template match="/atom:feed">
  <div class="syndication-content-area">
   <div class="syndication-title">
    <xsl:value-of select="atom:title"/>
   </div>
   <div class="syndication-description">
    <xsl:value-of select="atom:tagline"/>
   </div>
   <ul class="syndication-list">
    <xsl:apply-templates select="atom:entry"/>
   </ul>
  </div>
 </xsl:template>
 <xsl:template match="atom:entry">
  <li class="syndication-list-item">
   <a href="{atom:link/@href}">
    <xsl:value-of select="atom:title"/>
   </a><br/>
   <xsl:value-of select="atom:content" disable-output-escaping="yes"/>
   <span class="syndication-list-item-date">
     (Date Taken: <xsl:value-of select="dc:date.Taken"/>)
      </span> 
  </li>
 </xsl:template>   
</xsl:stylesheet>

 
New Post
9/8/2008 4:04 AM
 

Hi Phil,

Thanks for that, but please note this only works for Newsfeeds 03.01.01 and below. The new 04.00.00 transforms any inbound feed to RSS before rendering. The reason is aggregation. Potentially you're aggregating ATOM with RSS, so an internal standard is used in RssToolkit.

For those wishing to use the sheet above: use the XML module with this one. The XML module does the same as the old Newsfeeds module.

Cheers,

Peter


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
New Post
9/8/2008 11:24 AM
 

Oh, sorry Peter, I thought that the new module allowed for custom transformations to be used.  I didn't have it loaded until this morning.  I see that you are right about that not working.  The example will work for the XML/XSL module though, and this brings up a couple of questions about the new module's settings that I'll email you about.

Thanks,

Phil

 
New Post
9/8/2008 11:36 AM
 

iwonder wrote

Oh, sorry Peter, I thought that the new module allowed for custom transformations to be used.  I didn't have it loaded until this morning.  I see that you are right about that not working.  The example will work for the XML/XSL module though, and this brings up a couple of questions about the new module's settings that I'll email you about.

Thanks,

Phil

Well ... custom transformations are supported, but what comes out of the module is certified RSS 2.0. Just dotting the i's here. I'll be glad to hear from you through mail.

Cheers


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsFlickr feed generating error.Flickr feed generating error.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out