Hello Everybody,
I was wondering if any of you could figure this out.
I am using thickbox, to get a pop up window (similar to lightbox), for a zenphoto gallery I've set up.
However, after I put in the code I thought was right, and click on the thumbnail, instead of the full image popping up, a window pops up containing gibberish characters.
It seems that when the link is clicked, the browser treats the image as though it were a page, and renders it thusly.
Here is the code I used in album.php:
<a class="thickbox"
href="<?=getFullImageURL();?>"
rel="[<?=getAlbumTitle();?>]" title="<?=getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?>
Is the code wrong, and if so, what code should I use instead?
Thanks in advance for any help!
-Jahan
Comments
<a
href="<?php echo htmlspecialchars(getFullImageURL());?>
That made a window into a page containing the image, instead of just the image itself.
I want the image only, within the thickbox window.
Thanks,
-Jahan
This worked - an image was displayed correctly in the thickbox window.
But this was just to test it.
It can't be a solution, since the same large image will be shown, regardless of which thumbnail I click on.
...the whole point of having a zenphoto gallery, is for it to be dynamic.
One minor problem: I noticed that in firefox, when the thickbox window is activated by clicking on the thumbnail, the background doesn't darken the way it is supposed to - but the thing works normally in Safari.
Any idea why?
-Jahan
There's a file apparently missing from the Thickbox files.
It's macFFBgHack.png - I googled it, and downloaded it, and now it works.
The code for it was already there, for the hack, but this file was missing.