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" />
When I click the link to the convertion tool from nGallery to CS gives me a 404 page not found. Can you post the link?
Cheers
Al
ken
12 Aug 06 at 1:44pm
I cannot find on your server the convertion from nGallery to CS
http://alpascual.com/blog/al/archive/2006/08/12/My-Blog-running-on-Community-Server-from-Telligent.aspx
ken
13 Aug 06 at 8:28am
Hi Ken,
From a non-programmers point of view, how might I explain to a Blogger how to do this? Once I’ve managed to figure it out myself? I’ve made the changes to the config file as you mentioned. But, If I were making a post, as an author, what would I do at that UI level to assure that I am linking properly to lightbox? Does the "poster" upload the picture to the post box or a gallery? Then link it to a URL? It seems that the URL in your example has assumed that the picture had been uploaded already to the /images folder.
Please elaborate.
Thanks,
Gary
email at hodgegw@hotmail.com
ken
13 Aug 06 at 9:33am
Gary, I’m not quite sure what you are asking. You just link to an image how you would link to any other image, and then add in rel="lightbox". Or you can use use the [flickr] and [photo] textparts to link to items from Flickr or the Photo Galleries. It isn’t that much different from linking to anything else. Of course you need to upload the photos, since they need to be on the internet for someone else to access them, but it doesn’t matter where you upload them so long as you link to them properly.
ken
14 Aug 06 at 7:40am
It seems the lightbox module doesn’t work with it’s popup pictures if you’re using other pic formats then gif or jpg, and want the popup to be the original size. Could be the following code:
case "original":
size = info.ThumbnailUrl.Replace("_t.jpg", "_o.jpg");
break;
ken
2 Sep 06 at 2:03am
If it is for the original image, then yes.
I’ll likely have to change the Flickr module to make 2 webservice calls so that it can get the original image’s format.
ken
2 Sep 06 at 11:35pm