PDA

View Full Version : PHP Photo Album script v2.11 doesn't work



cactusman
02-15-2013, 08:22 PM
1) Script Title: :: PHP Photo Album script v2.11

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem: I just simply cannot get this to work. I did look at other posts on this subject on this forum and did try the new ddphpalbum_obj_desc.js
file. Still no go! Since it should do almost exactly what I want to do on my website I would really appreciate any help. My test page can be seen at http://internationalhibiscussociety.org/Katniss/gallery3.html

jscheuer1
02-15-2013, 09:35 PM
There could also be other problems. But the getalbumspics.php file isn't being used by the page because the ddphpalbum.js tag has no closing </script> tag so is using the getpics script's and ignoring the grtpics script, and:

Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

To take care of all of that, change:


<script type="text/javascript" src="js/ddphpalbum.js">
<script type="text/javascript" src="pics/getalbumpics.php?id=myvacation"></script>

to:


<script type="text/javascript" src="js/ddphpalbum.js">


/***********************************************
* PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>
<script type="text/javascript" src="pics/getalbumpics.php?id=myvacation"></script>

If you're worried about HTML 5 validation of the comment, the validator is wrong about that, it's valid. But you can make the validator happy by adding the red slashes as shown:


<script type="text/javascript" src="js/ddphpalbum.js">


/***********************************************
* PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
// * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>
<script type="text/javascript" src="pics/getalbumpics.php?id=myvacation"></script>

The getpics file looks like it's working, so the above might be the only problems.

The browser cache may need to be cleared and/or the page refreshed to see changes.

cactusman
02-15-2013, 10:00 PM
Ooops! What a dumb mistake! It works great now! Thanks loads for the help!!!