File Genie PHP Support Product Page
Won't display only thumbnails
Asked 13 Dec 2010 03:05:54
1
has this question
13 Dec 2010 03:05:54 Phil Boyle posted:
HiI've used file genie lots of times with great success and think its great. But when I came to use it again today I was surprised to find it isn't working. It will show all the images in a folder but I just want it to display thumbnails prefixed thumb_ As I said I have done this lots of times with success.
I have stripped the code down to only filegenie code in effort to see if it was conflicting with something else:
The file can be found www.rochellwithell.co.nz/clientGallery.php
And the code is here:
<?php require_once('ScriptLibrary/incFileGenie.php'); ?>
<?php
// *** Folder List 1.05
$clientGallery = new fileGenie();
$clientGallery->path = "gallery/wjones";
$clientGallery->allowedExtensions = "GIF,JPG,JPEG,BMP,PNG";
$clientGallery->includeFolders = false;
$clientGallery->showThumbnailsOnly = true;
$clientGallery->thumbnailsSuffix = "thumb_";
$clientGallery->naming = "prefix";
$clientGallery->thumbPath = "gallery/wjones";
$clientGallery->processFolder("fileName", "ASC"
?>
<?php echo $clientGallery->folderList("thumbnailImage" ?>
There is only one image in the folder it is called thumb_image0.jpg
Thanks for your time
Phil
Replies
Replied 15 Dec 2010 01:21:43
15 Dec 2010 01:21:43 Phil Boyle replied:
I found out the answer (as far as I know) - I had renamed the images I was using for testing with thumb_ on the server just by adding the prefix and they weren't showing.
I tested out images that I made and named with the prefix thumb_ and then uploaded them and so far they work.
I tested out images that I made and named with the prefix thumb_ and then uploaded them and so far they work.