Flickr Gallery Modified for GoDaddy

July, 29. 2008 at 06:55 PM

Danny Douglass created an excellent flickr photo gallery for Blogengine.NET. It's located here. Since GoDaddy is my host, I have to deal with medium trust issues, so Danny's gallery wouldnt work for me. Fortunately, Danny released the source for this module, so I modified it for my purposes.

After debugging a bit, I found that the security on my IIS 7 hosted site wouldn't allow me to cache downloaded flickr photos. You would think that I could just point the cache folder to one on my site with write permissions. Unfortunately, the FlickrNET provider that the gallery was built with asks for a location in the <drive>:\<folder> format (for example: c:\Inetpub\temp). I noticed that it would be possible to find out the drive/folder location of my site on my webhost, but its likely my website wouldn't be able to access the local file system, so I didn't go wandering down that road. Besides, who knows when they might change it.

To get things going, I simply disabled the the flickr caching. The first function that is called when the gallery is accessed is called GetPhotoSets(). I added Flickr.CacheDisabled = true; as the first line of module to make this happen. I rearranged some other code as well, but this was the main thing.

To use my modified version:

  1. Remove any previous installations first (remove the files)
  2. Unzip the contents of the attached zip of to the root of your website
  3. Add your flickr api key, shared secret, etc to your web.config (same as Danny's original)
  4. Reference the theme being used in Default.aspx and PhotoAlbum.aspx (same as Danny's original)
  5. Create a content place holder called "scriptholder" in the head section of your selected theme site.master (add <asp:ContentPlaceHolder ID="scriptholder" runat="server" />)
  6. Go to <your website url>/photos
  7. Go to Danny's website to thank him for his great Blogengine.NET addition 

 


BlogEngineFlickrPhotos.zip (115.79 kb)

Web.Config (14.29 kb)

Comments

8/20/2008 3:59:14 AM

vp

I'm also use godaddy to host my page and getting the error below while using your code. any ideas how to fix this?

I'm not a dotnet developer though :-(

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

Line 3:  using System.Collections.Generic;
Line 4:  using System.Configuration;
Line 5:  using System.Linq;
Line 6:  using System.Text;
Line 7:  using FlickrNet;


Source File: d:\hosting\vp\App_Code\FlickrConnector\Gallery.cs    Line: 5

vp United States

8/20/2008 11:25:02 AM

vp

I tried the tweak you suggested and getting the error below. any idea how I can fix this?

The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

vp United States

8/21/2008 5:36:21 AM

Alex Tafoya

I have my website running on IIS 7 in integrated mode using .NET 3.5. Basically, your error is a result of not referencing .NET 3.5 libraries, linq to be specific. I have attached my web.config; you could use it as a template to modify your web.config. By doing this, your site would reference .NET 3.5 assemblies as opposed to only .NET 2.0. In the meantime, I will recompile an assembly for use in a .NET 2.0 environment. My apologies...I should have mentioned that I converted my site to .NET 3.5. Let me know if this helps!

Alex Tafoya United States

8/21/2008 5:39:27 AM

Alex Tafoya

I should mention that you would need to be using IIS7 in integrated mode for my web.config to be of any use. Cheers!

Alex Tafoya United States

8/21/2008 1:45:24 PM

vp

Could you please send me the libraries for .NET 2.0 alteast.

Thanks!

vp United States

8/21/2008 2:33:08 PM

vp

I can't download your web.config file either...

vp United States

8/25/2008 8:46:31 AM

Alex

You should be able to download the files now. I upgraded to a new build and somehow broke the original links.

Alex

11/19/2008 7:39:53 AM

SEO Test

its such a good blog thanks for the view Laughing

SEO Test

11/24/2008 9:57:55 PM

Phil

I figured out how to get this working with GoDaddy running under IIS, with .NET 2.0. If anyone needs the files, please let me know.

Phil United States

11/29/2008 4:14:41 AM

Busby SEO Test

Nice tips about Flickr Gallery Modified for GoDaddy

Busby SEO Test

12/8/2008 8:34:02 AM

speed dating testimonials

These are all great tips. I am glad I can work with Flckr and Godaddy.

speed dating testimonials United States

1/18/2009 7:31:12 AM

busby seo test

This is really a good tips for flicker gallery & godaddy. Everyone should read it

busby seo test Malaysia

1/18/2009 7:50:41 PM

Busby SEO Test

lickr Gallery Modified for GoDaddy

Busby SEO Test

4/10/2009 7:31:55 AM

Leadership Expert

Could you just send me the libraries for .NET 2.0 alteast please. Many thanks

Leadership Expert United Kingdom

4/11/2009 8:09:19 AM

Alex

Several people have shown interest in this. I am going to revive it. Would .NET 3.5 be okay?

Alex United States

4/15/2009 8:41:50 PM

seminyak villas

Well written. Thanks for sharing this great info

seminyak villas United States

4/26/2009 8:54:55 AM

My Little Blog

Flickr Gallery Modified for GoDaddy?really?great job and nice post

My Little Blog United States

6/6/2009 1:39:18 PM

yachtcharter griechenland

That's great, I never thought about Flickr Gallery Modified for GoDaddy like that before.

yachtcharter griechenland Greece

6/7/2009 10:07:59 PM

Leadership Styles

I've only just jumped onto godaddys windows hosting a week ago, so I'm sure this will come in handy once I've sorted the basics out!

Leadership Styles United Kingdom

6/27/2009 9:07:00 AM

tukang nggame

Thanks for sharing this great article! That is very interesting Smile I love reading and I am always searching for informative information like this.

tukang nggame United States

7/4/2009 6:42:18 AM

Halifax dentists

Flickr is the best and big source for photo collection.

Halifax dentists United Kingdom

7/18/2009 5:58:59 AM

biodental

Everywhere is seo test.. Strange. I like your blog. Is it wordpress?

biodental United States

7/18/2009 6:50:23 AM

Alex Tafoya

"Seo test" does look like a spamming bot.  I definitely need to implement some anti-spam features.

This site runs on the blogengine.net blog engine, along with some additions I've made. The theme is an original I created. Did you create biodentalbudapest.co.uk?

Alex Tafoya United States

7/20/2009 8:08:17 AM

The Linden Method

I see u are using BLogEngine from microsoft on this website - Looks absolutely excellent. I conclude it will be a approved alternative to wordpress. Thanks for letting me comment on your attractive blog by the way. Regards, Martin.

The Linden Method Netherlands

7/29/2009 11:18:19 PM

cosmetic dentistry bradford

The article is useful for me. I’ll be coming back to your blog. Thanks a lot.

cosmetic dentistry bradford United Kingdom

8/1/2009 10:00:59 PM

composite front doors

Interesting posting with useful information and helping concepts.

composite front doors United Kingdom

8/2/2009 2:48:10 PM

St Johns Wood dentist

Good way to share useful information with helping guidelines.

St Johns Wood dentist United Kingdom

8/5/2009 4:33:01 PM

Conveyancing Solicitor Quotes

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on. You have done a marvellous job!

Conveyancing Solicitor Quotes United Kingdom

8/10/2009 1:03:31 AM

watch anime online

thats good post i like it very much

watch anime online United States

9/27/2009 11:13:09 AM

Ed Hardy

Good post and nice design, is this a regular template?

Ed Hardy

Ed Hardy United States

9/27/2009 6:36:04 PM

Alex

The skin is an original. Thanks Ed.

Alex United States

10/17/2009 4:02:45 PM

personal loans

I always wanted to write in my site something like that but I guess you'r faster Smile

personal loans United States

10/27/2009 10:03:16 AM

pay day loans

Just wanted to say thanks for this.

pay day loans United States

10/31/2009 7:11:28 AM

online cash loans

I guess there's always an easier way ...

online cash loans United States

11/10/2009 12:56:11 PM

pay day loans

Thank you for your help!

pay day loans United States

11/11/2009 8:42:28 PM

Yeast Infection Cure

That's nice analytical work to get the flickr photo's to work for you.

Yeast Infection Cure United States

11/20/2009 4:43:40 AM

payday loans

Just wanted to say thanks for this.

payday loans United States

12/8/2009 2:19:22 PM

Ed Hardy Clothing

good

Ed Hardy Clothing People's Republic of China

12/16/2009 4:01:38 AM

payday loans

I always wanted to write in my site something like that but I guess you'r faster Smile

payday loans United States

1/7/2010 10:20:40 PM

payday loans

I guess there's always an easier way ...

payday loans United States

1/22/2010 8:23:38 PM

payday loans

Happiness is the sense that one matters.

payday loans United States

1/29/2010 12:30:56 AM

Loans in NY

Good business leaders create a vision, articulate the vision, passionately own the vision, and relentlessly drive it to completion.

Loans in NY United States

1/29/2010 8:53:43 AM

no credit check personal loans

Be true to your work, your word, and your friend.

no credit check personal loans United States

2/5/2010 6:31:42 AM

no fax payday loans

Problems are not stop signs, they are guidelines.

no fax payday loans United States

2/16/2010 11:02:52 PM

free online games

Valuable information and wonderful style you bought here! I would love to many thanks for expressing your thoughts and time into the stuff you submit!! Thumbs up

free online games Turkey

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading