Flickr Gallery v1.0 Released!

My apologies for the delay, but I have (finally) put together the release of my Flickr Gallery for BlogEngine.NET, or any other website for that matter.  BlogEngine.NET users should understand this is not a typical "extension" where you drop a .cs file into the App_Code directory.  It is a stand-alone section that can be dropped into your BlogEngine.NET instance.  You can see an example implementation live on my blog at http://DannyDouglass.com/Photos/.

Flickr Gallery v1.0

My previous post goes into more detail about this code plug-in.  I would highly recommend reading that before installing Flickr Gallery on your website/blog.  Here's a quick recap of the feature list:

  • Integration with Flickr
  • Set (Album) Support
  • Title/Description Support
  • Flickr Slideshow Integration
  • LightView Integration
  • Automatic Paging (Configurable)
  • Utilizes Flickr's Bandwidth for image loading
  • and more!

I've also installed the generic version of the Flickr Gallery to a default BlogEngine.NET 1.4 instance that can be downloaded at http://DannyDouglass.com/file.axd?file=BlogEnginePlusFlickrGallery.zip.

Installation Steps for BlogEngine.NET 1.4

  1. Download the Installation Package: http://www.dannydouglass.com/file.axd?file=FlickrGalleryInstallation.zip and unzip the contents.
  2. Add References to FlickrGallery.dll andFlickrNet.dll
  3. Add the following code to your web.config appSettings section and replace the placeholders with your Flickr Account information.

    <!-- flickr integration settings-->
    <add key="flickrAPIKey" value="###FlickrAPIKey###" />
    <add key="flickrAPISharedSecret" value="###FlickrAPISharedSecret###" />
    <add key="flickrUserId" value="###FlickrUserId###" />
    <add key="flickrSetUrl" value="http://flickr.com/photos/ddouglass/sets/$id/" />
    <add key="flickrPageSize" value="24"/> <!-- enter 0 to disable paging -->
    <!-- end flickr integration settings-->

  4. Copy the "Photos" directory into the root of your website
  5. If you are using any theme besides the standard BlogEngine theme, replace the Master Page File value in the following files the Photos/Default.aspx & Photos/Albums/Default.asp

    MasterPageFile="~/themes/Standard/site.master"

  6. Add the following script references to your site.master file:

    <script type="text/javascript" src="../../photos/js/prototype.js"></script>
    <script type="text/javascript" src="../../photos/js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="../../photos/js/lightview.js"></script>
        
  7. Add your navigation link to your site.master page to point to http://yourwebsite.com/Photos/ and your done!

Helpful Flickr Links

I could have spent more time organizing the code in this release a little more, but I decided I would rather get v1 out there since I have procrastinated getting it out.  I will streamline the release for the next version.

Hopefully you enjoy this release as much as I do.  Feel free to send any suggestions/bugs to ddouglass@gmail.com.  I plan on doing a serious of "how to" posts to explain how to customize the code in the near future.  Cheers!

Kick It!

  • Permanent link to this post Permalink 
  • Share this post! Share It! 
  • View this post's comments Comments (27) 
  • RSS Feed for this post's comments Comment RSS
  •    


Comments

Posted on 07.15.2008 13:13 PM #

trackback

DotNetKicks.com
Trackback from DotNetKicks.com

Flickr Gallery for BlogEngine.NET 1.4 Released!

Posted on 07.16.2008 06:48 AM #

Rene

Rene nl
Hi Danny,
Great this gallery, thank you for this.

I am implementing it, I followed the points mentioned above, however when I click the photo link I get this message:

" The type or namespace name 'FlickrGalleries' could not be found (are you missing a using directive or an assembly reference?) "

Am I missing something?

Thanks,
Rene[quote]

Posted on 07.16.2008 07:22 AM #

Danny

Danny us
@Rene - I left out a step. It has been added above...

2. Add References to FlickrGallery.dll andFlickrNet.dll

Posted on 07.16.2008 07:37 AM #

Rene

Rene nl
ok ,
Yeah its working now they should be added in the bin directory.

Thank you!

Posted on 07.16.2008 09:05 AM #

Danny

Danny us
@Rene - No problem, enjoy!

Posted on 07.16.2008 13:15 PM #

Luiz

Luiz br
Danny,
thank you so much for this control. I'll download now and will be testing in my website.

Posted on 07.16.2008 14:25 PM #

Danny

Danny us
@Luiz - no problem! Let me know when you have it up, I'd love to take a peak and see how you implemented it.

Posted on 07.18.2008 16:56 PM #

Jamie

Jamie us
Has anyone had any issues running this on their hosting site? I can run this locally on my development server and it works great....however, when I move to my Webhosting4life site, it gives me the "(If page is blank you need to specify your Flickr Account values in the web.config)" message?

Any thoughts?

Posted on 07.18.2008 18:27 PM #

michael

michael nl
yep the same for me the page is blank message specify your flickr account in the web.config
any help?

Posted on 07.21.2008 09:04 AM #

Danny

Danny us
@Jamie, Michael - Try adding the following values to your web.config:

Replace ###CachePath### with some path with access for the ASP.NET account to write to disk.

<configuration>
<configSections>
<section name="flickrNet" type="FlickrNet.FlickrConfigurationManager,FlickrNet" />
</configSections>
<flickrNet cacheLocation="###CachePath###" />
</configuration>


For example - my caching location looks something like this:

<flickrNet cacheLocation="c:\flickrnet temp\" />

Posted on 07.26.2008 06:46 AM #

Mannus Etten

Mannus Etten nl
Hello Danny!

great extension for dotnetblogengine which i am going to use soon Smile i have version 1.4 and i want to integrate it with your extension.
exactly the thing I am looking for.

Now is my question: can you integrate a slideshow into a blogpost?

greetings,
Mannus

Posted on 07.28.2008 14:23 PM #

Alex Tafoya

Alex Tafoya us
Thanks for the good work! I had to modify it bit to make it work with Godaddy. In my case, I couldnt redirect the cache anywhere; I simply turned off caching when FlickrNet functions are first called, Flickr.CacheDisabled = true.
Cheers!

Posted on 07.29.2008 20:37 PM #

trackback

alextafoya.com
Trackback from alextafoya.com

Flickr Gallery Modified for GoDaddy

Posted on 07.31.2008 10:24 AM #

Luiz

Luiz br
Hey Danny,
I've put on my website and its working great. If you want to view the site is http://www.luizeluana.com.br.
One friend of mine get one little bug. The flickr API gets photos in pages of 500 items and of course my album have more than this and I put an page size of 102. When I get in the page 5 of my album, it won't get any more photos, because the Gallery get only the first page.
This is one simple bug that its good to report. I already working to path this, but the code is yours and I have Refactored to VB.

Posted on 07.31.2008 11:15 AM #

Danny

Danny us
Hi Luiz,
Thanks for reporting that issue. This is definitely a case I did not anticipate. Could you email me the patch you applied to fix this issue?

Also, your link is not working unfortunately.

Posted on 08.6.2008 12:35 PM #

Luiz

Luiz br
Hi Danny,
I have sent an e-mail to you, but I don't know if you have received, so I decided to describe here how to do the patch since its too simple.
On your Photos class when you call PhotosetsGetPhotos from FlickrNet, instead you call passing just the Album ID, you can use an overload that has page number and page size. So it just forward your configuration to it and all its good.
if you want to see it, my link is this: www.luizeluana.com.br/.../default.aspx

Posted on 08.16.2008 20:23 PM #

vp

vp us
I tried your extension, but it doesn't work on godaddy hosting. so, I tried the tweak on http://www.alextafoya.com/ and I'm 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?)

Posted on 08.18.2008 07:45 AM #

Danny

Danny us
Hi VP - I see on your blog that you managed to fix the issue. FlickrNet does try to create a local cache for the images that you didn't have rights for on your server. Glad you fixed the problem!

Posted on 08.18.2008 09:20 AM #

Nick

Nick
Please note that a license is required for using Lightview, redistribution is not allowed. If you want to have the option to provide Lightview support you still can, people will have to download Lightview from the website themselves so they are aware of the License details.

Posted on 08.18.2008 20:24 PM #

vp

vp us
Hi Danny,

Unfortunately, it still doesn't work for me. I tired it on my local machine by providing the local cache location, but no go.
I'm using blogengine 1.4.5 and dotnet 2.0.

Any suggestions?

Thanks!

Posted on 09.4.2008 23:20 PM #

Chad

Chad us
Hey Doug,

You forgot to tell them to link to the lightview.css file in the master file. Without it, everything screws up on the photo page.

Just add

<link rel="Stylesheet" href="../../photos/css/lightview.css" type="text/css" />

to step 6

Posted on 09.8.2008 20:49 PM #

some.net(guy)

some.net(guy) us
has anyone actually gotten this to work? I keep getting the "(If page is blank you need to specify your Flickr Account values in the web.config)" error no matter what i try.

Posted on 09.9.2008 07:50 AM #

Danny

Danny
Jason - have you specified the values correctly from step #3? I do know that several people have successfully implemented this gallery.

Posted on 10.8.2008 19:54 PM #

Brian

Brian gb
Hi Danny
I have installed your flickr gallery on my blog at http://www.briandorey.com/photos/ and got it working after installing the latest release of .net 3.5 on the server. Is there any way of sorting the gallery sets by name or number of photos as a future addition to this very useful extention?
Thanks
Brian

Posted on 10.8.2008 20:00 PM #

trackback

Brian Dorey.com
Trackback from Brian Dorey.com

Flickr gallery added

Posted on 11.20.2008 08:45 AM #

Site ekle

Site ekle uy
I tired it on my local machine by providing the local cache location, but no go.
I'm using blogengine 1.4.5 and dotnet 2.0.

Posted on 11.20.2008 08:53 AM #

Program download forum

Program download forum ca
# Copy the "Photos" directory into the root of your website
# If you are using any theme besides the standard BlogEngine theme, replace the Master Page File value in the following files the Photos/Default.aspx & Photos/Albums/Default.asp

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading

search


AddThis Feed Button

blog categories

blog tags

my pictures

Flickr Gallery Coming Soon!

recent comments   RSS Feed for this post's comments