I'm trying to get lightbox working, I've searched these forums and google and could not find an answer that works.
In the image.php file I've added:
`
/lightbox/js/prototype.js">
/lightbox/js/scriptaculous.js?load=effects,builder">
/lightbox/js/lightbox.js">
`
to the header.
Then changed the a href for lightbox:
`
Comments
The general issue may be that you set full images with protection. These lightbox scripts generally need the unprotected images.
Regards,
The the how-to is decribed on the lightbox page. Of course you will need to get familiar with Zenphoto themes in general by reading our theming tutorial for example as you will have to change your theme.
I am not programmer and it is a little bit troublesome to study all Theming Tutorial and Function Tutorial to add that feature.
<script type="text/javascript" src="<?= $_zp_themeroot ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?= $_zp_themeroot ?>/js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="<?= $_zp_themeroot ?>/styles/jquery.lightbox-0.5.css" media="screen" />
Then I am little confused 'cause I have no idea what function use.
Any help is appreciated.
First of all you should decide on which page you would like to have the effect. For myself the album page was the best choice. In this case you should modify the album.php of the default theme. Insert your Lightbox code AFTER the call of zenJavascript in line 5 (regarding to ZP 1.2.6 RC1 code).
To prevent any mistakes with notation I worked with absolute pathes at first.
Finally you should change line 43 "getImageLinkURL()" into "getFullImageURL()" as
AlkaSeltxer mentioned in the intitial post.
Good luck
Sorry, but I have no chance to test or simulate your constellation.
Changes in header image.php:
`
/js/jquery.js">
/js/jquery.lightbox-0.5.js">
/styles/jquery.lightbox-0.5.css" media="screen" />
$(function() {
$('a[@rel*=lightbox]').lightBox();
});
'
`
Change in "The Image" section:
`
" ... getBareImageTitle();?>" rel="lightbox">
`
Last problem is that no images "next" "prev" etc. are attached to displayed picture. I checked jquery.lightbox-0.5.js content and found:
`
// Configuration related to images
imageLoading: 'images/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon
...
`
Now I dont know why. Should I parse php variable ($_zp_themeroot) to javascript ?
You could try adding this one `rel="lightbox[<?php echo getAlbumTitle();?>]"`.
But I'm not sure if this will work.
In my opinion next image does not make a sense when you call the function from a single image page.
If anyone wants to use modified files - it can downloaded from http://photos.troyniak.com/default.7z. Feel free to visit my photo gallery under http://photos.troyniak.com .
Regards,
EDIT: Forgot you already tried that...