Hi jaurday, welcome to the forum! :)
Yes, you're right. It's just as simple as moving the fields around. You'll see some code like this that displays the images:
<?php foreach (getUploads(...) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>
<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
<?php endif ?>
<?php endforeach; ?>
Just replace that with this:
<?php foreach (getUploads(...) as $upload): ?>
photos.push("<?php echo $upload['urlPath'] ?>");
<?php endforeach; ?>
And that will produce code like this:
photos.push("/full/path/to/photo1.jpg");
photos.push("/full/path/to/photo2.jpg");
photos.push("/full/path/to/photo3.jpg");
I just used push instead of [number] to add the photos to the javascript array. It does the same thing.
Let me know if that works for you or if you need any more help with it! :)
Dave Edis - Senior Developer
interactivetools.com