Aug 29 2006
FAlbum & Lightbox Bug Fix
I’ve updated the latest version of my FAlbum with LightboxJS2 mashup in order to fix a bug that was brought to my attention by Martin. The error caused lightbox to fail to load when viewing the individual photo page. I have not bothered to update the version number as neither FAlbum nor WP-Lightbox versions have been updated.
THe fixed version can be downloaded from here (falbum-lightbox-preload-0.6.6.zip) or my downloads page.
Credit goes to:
Gringod, is it correct if I say that only 2 files have been corrected? Namely lightbox.js.php and photo.tpl.php?
I believe that is correct. The changes on photo.tpl.php was to get the load icon working, the change to lightbox.js.php was to fix the javascript error you mentioned.
As far as I can tell its all working now.
Okay that’s great. Reason I ask is that I made some minor mods of my own. Secondly, asfar as I can tell you haven’t updated your own version on your site I see. There are still the js errors present.
I think you may still be seeing the error on my site due to browser caching. I fixed the bug “live” on my site.
The person that turned the LightboxJS library into a wordpress plugin sees to have tried to implement intelligent browser caching HTTP headers but they don’t appear to be working correctly. I’ll see if I can fix that.
Gringod, unfortunately there are still errors. On the index page of my blog I still see an js error about line 719. It refers to the loading.gif wich isn’t present at that time. The error is there also on my photo page but is gone in my album-set page (when I choose an album). Also a thing that doesn’t work is the single photo page. The lightbox starts but shows nothing. Funny thing though, the links to the sizes (SQ, TH, L and O) do work. The lightbox shows up correctly here. I think it still needs some tinkering I am afraid
Hang in there, someday…. 
Ok, the latest round of bug fixes are now online (available from the above links) and as far as I can tell all the bugs you’ve pointed out are now fixed. This latest update only affects the javascript files in the wp-lightbox plugin, it doesn’t touch FAlbum.
The changes are as follows: disabled browser caching of the wp-lightbox plugin as it wasn’t working correctly and caused more problems than it solved… that may change in the future. Stop looking for the loading gif div when not using the falbum preload templates (and on any other page in wordpress).
This has been tested with IE 7, Firefox 1.5+ & 2.0 but not IE 6.
If this doesn’t fix it I shall leave it for today, have a stiff drink tonight and attacking again tomorrow.
I really should say a big thank you to whoever created the wonderful and powerful Venkman javascript debugger for Firefox.
Almost there…

Nasty errors gone except for the single photo page. It reads something at line 1507 (req.object). And then the lightbox starts but no picture is shown. Hummmm, bugger hehehe
I don’t seem to be able to find the error you mentioned. Could you send me a link to a page you’re getting it on, which browser you’re using and also can you check that you have forced a full-refresh and are still getting the error.
I’ve checked both your site and mine in IE 6, IE7, FF1.5+ and FF2.0 and I don’t see the error - but that doesn’t mean it isn’t there.
I am terribly sorry. My bad, caching mayhem… But on this page of mine the lightbox doesn’t do it’s thingy…
Gringod, I really want to thank you for all your troubles, know that it is appreciated :), now on for the last stone….
That page is working fine for me in IE 6, IE7, FF1.5+ and FF2.0 and I’ve even just grabbed Opera 9 and its working in that as well.
The only thing I can think of is caching woes.
And sorry about the spanking by Spam Karma, I’ve added you to the whitelist so that shouldn’t happen again
Hi Adrian, got your name this time

Indeed not a single js error in sight anymore. But, still the link I gave you still doesn’t produce a lightbox (direct from the photo) filled with a picture
I see what you’ve done… you want to click on the image and have it open the image in a lightbox. The address in the <a href=”..”> needs to be the address of the image you want to open in the lightbox.
Its currently set to another falbum page, which is why you’re not getting anything opening in the lightbox. Change it to the flickr url of the image and everything should be just dandy.
Adrian I have found it. You gave the right directions. Here it is.
In photo.tpl.php line 31 the should look like this:
‘ title=” rel=”lightbox”>. It now opens in a lightbox, shows the picture with the right title in a medium size. I am a happy man! Update yours, I love it.Second trap we should look into. When logged in into Flickr, or saved a cookie from that login one shoud be able to access title and description on ones website and save it to Flickr, right? Helas this doesn’t work. It looks like it does, when clicked upon you see a editable box, but when clicked on ’save’ nothing is altered. How come?
Oops, the interesting line should read:
<a href=’<?php echo $image; ?>’ title=’<?php echo $title; ?>’
rel="lightbox">
Sorry.
Hi Martin, good to see its working now.
As far as the editing titles goes, I’m not involved on that side of things. I simply took the FAlbum plugin and bolted on the LightboxJS script.
I’d recommend heading over to the RandomByte FAlbum forums
Just a short note:
The position of the onmouseover-img wont work quite well in ie. For ie7 (beta) you can build a work around. just put a second class html*.falbum-lightbox-overlay in the falbum.class.css and add top:-90px (if you using the small sizes of the thumbnails, for the other sizes try different numbers). Be sure theres no space between html and *. So every other browser will ignore this, and the ie7 will show the small icon in upper left position of the thumbnail.
Sorry to bother you. I have uploaded your plugin/mashup onto my blog. Both the falbum plugin and the lightbox seem to be working ok seperately, but the lightbox effects are not working on the falbum. Any idea why this might be. I have enabled the lightbox effects in the plugin options. I’m using k2 if that makes any difference. Thanks very much!
Hi Olly,
I’ve been contacted about problems with k2 previously and someone has sent me a bundled version that they had working with k2. I haven’t had a chance to go through thier version yet but I can email to you to see if that sorts out your problems.
Now that I have broadband at home I will set up a test server so that I can check the mashup works with different types of themes and I’ll post any updates as required.
Thanks very much! If you could send that to me I would be very grateful! Thanks again for your time! Really appreciated!
Wow, just checked my mail and you have already sent it! Thanks!
I’m just trying to get this integrated into my site, which isn’t very customized at all. I’ve been running falbum for awhile, but this is the first time trying it with lightbox. I’m struggling with a few issues so I’ll address them one at a time.
First, how I got to where I am:
1. Renamed falbum directory to falbum_old
2. Copied in your latest 0.6.6 package
3. Activated the lightbox plugin and verified that falbum was still activated
4. Made the code change to falbum that allows it to authenticate properly to flickr.
So now the album is up, not yet perfectly styled but leaving it as is so I can troubleshoot lightbox.
First note: the default style doesn’t appear to have been modified to work with lightbox, just the hemingway style. Should it be working?
Second note: when I switch to the hemingway style, I see the loading icon for hemingway but none of the overlays appear. This is both on IE7 and Firefox. I’ll be digging into that one some more, but have to admit that right now I’m stumped because it looks like it “just worked” for everyone else.
Scratch the second note. Somehow the “use Lightbox” option got toggled to no in the options menu in all of my fiddling. Duh!
I can confirm the IE7 workaround, to put it terms that the less technical visitors here can use, paste the following code at the very bottom of “/wp-content/plugins/falbum/styles/hemingway/falbum.css.php”
html*.falbum-lightbox-overlay {
top:-90px;
}
This should make the overlay icon work in IE7.
Hi Peter,
Thanks for the updates and its good to see the lightbox up and running on your site. I’ll try and get the IE7 workaround included over the next day or two.
My js is a bit weak, and I can’t figure out how to do the following customizations to the lightbox. Perhaps you could point me in the right direction or consider for a future release:
- an icon to save the full-sized image. A small disk in line-art that would allow my mother-in-law to easily download the picture for printing at home.
- display of captions. It looks like the script supports it, but just isn’t getting the caption info in correctly from falbum.
Otherwise I’ve got it all up and running now. If anyone would like a style that works with Rounded v2 Blue Edition, just shoot me an email.
Thanks
Pete
Hi Peter, I just wanted to say thanks for the updates and everything. If you want to take a look at my version check out:
http://www.davidcflood.com/photobook
Hello,
I am trying to get this to work and I do not know what I am doing wrong. I would like something like http://neueinc.com/portfolio but cannot seem to make it work. Could someone take a look at my site and could help me out wit what is going wrong.
http://edsmiley.com/?page_id=6
Thanks,
Ed
[…] So I updated my WordPress. Pretty much followed the directions on WordPress.com and everything went smoothly. I would really like to get the Falbum and Lightbox mashup found here to work. I really like the way this site is setup and maybe I will email him to find out how he did it. Let me know if you find anything that is broken. […]
i downloaded the lastest version and i’m using wordpress 2.1.3 and it won’t go pass the initial setup. i get just a plain error message w/ no reason.
Hi terin,
Have you tried just installing FAlbum to see if that works?
I haven’t been keeping up with FAlbum updates for a while, I think its about time I did a catch-up release.
I fixed it. The 0.6.6 release had a problem with the API, but had instructions in the forum on how to fix it. I’m in love with your version of the plugin. Great work. and THANK YOU THANK YOU THANK YOU!!!