Lightbox/slimbox are not Zenphoto features. So you probably use a custom made theme, so you would have to rework this maybe.
We have included thickbox by the way, which is basically the same. Take a look at the image.php file of the included default theme, how to use it (it's used for the exif date only there).
I'm using the chilli-light theme and it "was" working before the upgrade. When i click on a thumbnail it opens the picture on a new page without the theme.
I don't know that theme in detail (it's not a "official" one). It seems that the lightbox javascript might not be where it should. Did you try the version from our site? (you didn't say what zp version you upgraded from).
Yesterday I installed a different theme that uses a similar sript (can remmber the name right now) and it didn't work either.
I also tried moving the sript to the root folder and writting the full URL, no sucess there either. Later I will try Greybox (my personal favorite) to see if it works. But I kind of belive that there is a comflict in the new version and the "___box" scripts.
BTW - you might try login off, It was suggested to me. It didn't work for me, but it might work for you.
Moving the location of builder.js didn't work for me. After many late nights trying to figure out what the problem is, I think I finally found it. It seems to be a problem with some code in either ajax.js or or scripts-common.js. Both of these are included by the function zenJavascript which is located in the functions.php file. The zenJavascript function is called by the theme files that can at least include the following: album.php, archive.php, image.php, index.php and search.php.
What worked for me is to edit the files and move the zenJavascript line directly below the HEAD tag.
It should look something like this:
.... <HEAD> <?php zenJavascript(); ?> ....
In a template such as Effervescence+ the call to that function will look like this: zenJavascript();
Just delete that line and add the php zenJavascript(); line as stated above.
I don't know exactly what the problem is, but this worked for me.
Thanks for figuring this out. Works for me, even when logged in as admin (which never worked for me before.) I will incorporate this fix into the release.
I was having this problem as well, when trying to use the Simple+ theme. I tried what was suggested, and it now works in Firefox, but not Internet Explorer. Help in simple terms please, I'm somewhat of a PHP newbie.
Comments
We have included thickbox by the way, which is basically the same. Take a look at the image.php file of the included default theme, how to use it (it's used for the exif date only there).
When i click on a thumbnail it opens the picture on a new page without the theme.
I'm using the following code.
<div class="imagethumb">" rel="lightbox[<?=getAlbumTitle();?>]" title="<?=getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></div>
</div>
Does anyone have a idea or experiencing the same problem?
Did you try the version from our site? (you didn't say what zp version you upgraded from).
I upgraded from 1.1.5 to 1.1.6 and i didn't change anything in the theme.
This is why i'm confused
Where can i find the lightbox javascript on the zenphoto site?
Thanks
A similar solution called Thickbox, also nothing Zenphoto specific, is already included in Zenphoto: http://jquery.com/demo/thickbox/
http://www.zenphoto.org/support/topic.php?id=3045
Yesterday I installed a different theme that uses a similar sript (can remmber the name right now) and it didn't work either.
I also tried moving the sript to the root folder and writting the full URL, no sucess there either. Later I will try Greybox (my personal favorite) to see if it works. But I kind of belive that there is a comflict in the new version and the "___box" scripts.
BTW - you might try login off, It was suggested to me. It didn't work for me, but it might work for you.
<script src="http://path-to/builder.js"> type="text/javascript"></script>
And before
<script src="http://path-to/lightbox.js" type="text/javascript"></script>
Hope this is a fix you can use Zucye
Where exactly did you do that? album.php?
Is builder.js part of the Lightbox package?
I added it to album.php
builder.js can be found in the default "js" folder that comes with lightbox.
http://www.lokeshdhakar.com/projects/lightbox2/
I have the code inserted in the following order.
<script src="http://path-to/builder.js"> type="text/javascript"></script>
<script src="http://path-to/lightbox.js" type="text/javascript"></script>
What worked for me is to edit the files and move the zenJavascript line directly below the HEAD tag.
It should look something like this:
....
<HEAD>
<?php zenJavascript(); ?>
....
In a template such as Effervescence+ the call to that function will look like this:
zenJavascript();
Just delete that line and add the php zenJavascript(); line as stated above.
I don't know exactly what the problem is, but this worked for me.
Thanks krainbolt!!
Thanks