- // Posted on Jul 15, 2008 by
Danny
-
Comments (27)
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/.
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
- Download the Installation Package: http://www.dannydouglass.com/file.axd?file=FlickrGalleryInstallation.zip and unzip the contents.
- Add References to FlickrGallery.dll andFlickrNet.dll
- 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-->
- 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
MasterPageFile="~/themes/Standard/site.master"
- 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>
- 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!
