09 August 2006
Improved Lightbox2 JS for Community Server
Qgyen.Lightbox v2.0.60809
A while ago, I'd released my Lightbox2 JS module for Community Server. One of the difficulties people have in using though is that it requires you to either set of disable this cache location, but it uses a custom configuration section in the web.config. The problem with this is that custom configuration sections are not allowed under a stock medium trust configuration, which you'll find on most webhosts. While updating Scott's Flickr for Community Server module to be compatible with my module, I noticed that he coded it to use a <Flickr /> section in the communityserver.org to set those values, bypassing the need for the web.config configuration section. So, I've updated the Flickr Lightbox module to support reading the cache configuration values from the same location.
If you are on a web host, I'd recommend using the communityserver.config to configure the module. At the bare minimum, I'd recommend adding this piece inside the root element:
<Flickr disableCache="true" />
This will disable the FlickrNet module from caching any data and causing any errors. If you do want it to be able to cache, you could set the location for it using this inside the root CommunityServer element:
<Flickr disableCache="false" cacheLocation="e:\path\to\folder" />
