Register   Login
     
  Latest Posts  
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
Google Maps
by bmurphy on 11/22/2008 11:11 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 10:47 PM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 10:22 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 9:22 PM
  Forums  
Subject: Possible Rss Enhancement
Prev Next
You are not authorized to post a reply.

Author Messages
Greg EstesUser is Offline
Gold Membership
Nuke Newbie
Nuke Newbie
Posts:3

1/10/2007 7:53 PM  

Currently, the RSS feed will only take you to the thumbnail view of the photos.  I understand the reasoning behind this due to the different display modes, but in my case I'm just using the standard mode, so I wanted the rss link to take me directly to the photo instead of the thumbnail list.  Below are the code changes that I made to accomplish this.

It would be cool if this was added into a module setting or something of that nature, that is if you find it to be useful.  Let me know what you think.

Here is a sample of the updated Rss - http://www.estesfam.net/DesktopModules/SimpleGallery/Rss.aspx?t=375&m=770&tm=500&MaxCount=10&portalid=15

Rss.aspx.vb line 156

For Each objPhoto As PhotoInfo In objPagedDataSource

'***************************************
Dim slideshowURL As String
slideshowURL = "mid=" & objPhoto.ModuleID & "&ctl=SlideShow&itemID=" & objPhoto.PhotoID
'***************************************

writer.WriteStartElement("item")
writer.WriteElementString("title", objPhoto.Name)

If (_albumID = Null.NullInteger) Then
 writer.WriteElementString("link", NavigateURL(_tabID, "", slideshowURL))
Else
 writer.WriteElementString("link", NavigateURL(_tabID, "", "AlbumID=" & _moduleID.ToString() & "-" & _albumID, slideshowURL))
End If

writer.WriteElementString("linkThumbnail", "http://" & System.Web.HttpContext.Current.Request.Url.Host & Me.ResolveUrl("ImageHandler.ashx?width=" & GetPhotoWidth(CType(objPhoto, Object)) & "&height=" & GetPhotoHeight(CType(objPhoto, Object)) & "&HomeDirectory=" & Server.UrlEncode(Me.ResolveUrl("~/Portals/" & objModule.PortalID.ToString & "/") & objPhoto.HomeDirectory) & "&fileName=" & Server.UrlEncode(objPhoto.FileName) & "&portalid=" & objModule.PortalID.ToString))
writer.WriteElementString("dc:creator", objPhoto.AuthorUserName)
writer.WriteElementString("description", objPhoto.Description)
writer.WriteElementString("pubDate", objPhoto.DateApproved.ToString("r"))
writer.WriteEndElement()

Next

You are not authorized to post a reply.
Forums > Modules > Simple Gallery > Possible Rss Enhancement



ActiveForums 3.7