1) Script Title:
php photo album script v2.11
lightbox v2.04
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...photoalbum.htm
3) Describe problem:
yes another php photo album and light box integration post... sorry.
I'm trying to integrate php photo album with lightbox in my website but even following the suggestions mentioned in previous post, all the stuff doesn't work.
what i've done :
1) I've included the following in my header :
2) as here suggested i've done this :Code:<script type="text/javascript" src="images/Catering/getalbumpics.php?id=catering"></script> <script type="text/javascript" src="ddphpalbum.js"></script> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <link href="css/screen.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="css/ddphpalbum.css" />
now i can see the generated gallery but when i click an image nothing happens . Using chrome developer tools i can read this error message :Code:<script type="text/javascript"> (function(groupName){ var d = document.createElement('div'), tmpLink = document.createElement('a'), lbLink, arObj = window[groupName]; d.style.display = 'none'; tmpLink.rel = 'lightbox[' + groupName + ']'; for(var i = 0; i < arObj.images.length-1; ++i){ lbLink = tmpLink.cloneNode(false); lbLink.href = arObj.baseurl + arObj.images[i][1]; if(arObj.desc[i]){ lbLink.title = arObj.desc[i]; } d.appendChild(lbLink); } document.body.insertBefore(d, document.body.firstChild); arObj.hiddenLinks = d.getElementsByTagName('a'); })('catering'); new phpimagealbum({ albumvar: catering, //ID of photo album to display (based on getpics.php?id=xxx) dimensions: [3,2], sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"] // autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date) // showsourceorder: false, //Show source order of each picture? (helpful during set up stage) onphotoclick:function(thumbref, thumbindex, thumbfilename){ Lightbox.box.start(catering.hiddenLinks[thumbindex]); } }) </script>
any idea?Code:Uncaught TypeError: Cannot call method 'start' of undefined phpimagealbum.onphotoclickilcatering.html:102 (anonymous function)
that is the page that does'nt work




(

Bookmarks