On the PHP issue - I just tested it, and it did not work. However, this did - instead of making the change to getpics that I thought, do this, change:
PHP Code:
function returnimages($dirname=".") {
$pattern="\.(jpg|jpeg|png|gif|bmp)$";
to:
PHP Code:
function returnimages() {
$dirname="./" . $_GET["folder"] . "/";
$pattern="\.(jpg|jpeg|png|gif|bmp)$";
As to your other question, captions? Sure we can do just about any sort of captions that you like. But I would need to know where these captions should appear, and what the typical content of the captions would be, as well as how you want to define the captions.
With this script, the easiest way to define captions is as a subset of each image's filename. Like if you want a caption:
Great Image!
The image should be called:
Great_Image!.jpg
Working on that basis, if you want the captions to appear below the images in the gallery itself, you would edit this line in the script:
Code:
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
to be like so:
Code:
tempcontainer+=galleryarray[i][0].replace(/_|(\..*)/g,' ');
If there is something else that you have in mind, or you have any problems with implementing this let me know.
Bookmarks