I have installed the script, I can see the photo gallery (don't think I got GD 2.0 successfully installed so have manually created and uploaded the thumbs) and all looks well from the visitors viewpoint.... BUT....
in Admin I get this error :
Warning: getimagesize() [function.getimagesize]: Read error! in /home/onsite/public_html/gallery/admin/include/functions.php on line 32
...when I am search for new images in my gallery folder and with a few other actions.
Does anyone have an idea as to what might be wrong?
I looked at line 32 and all it is is this:
$size = getimagesize( $filename );
// $size[2] == 1 means GIF
// $size[2] == 2 means JPG
// $size[2] == 3 means PNG
Also is it possible to add HTML to the comments area of each photo? I am trying to add a "Buy This Photo" which will take the visitor to an order form?
Thanks
Offline
in order to add html in your comments of pictures (the comments given by the admin, not by users)
in ./admin/infos_images.php (version 1.2), line 91, replace
$query.= ", comment = '".htmlspecialchars( $HTTP_POST_VARS[$comment], ENT_QUOTES )."' ";
by
$query.= ", comment = '".$HTTP_POST_VARS[$comment]."' ";
then in diapo.php (version 1.2), line 295 to 298, delete
if ( $row['comment'] != "" ) { $alt_thumbnail .= "n".$lang['comment']." : ".$row['comment']; }
About your problem of image reading, I don't know what to say...
Offline
Thanks for your quick help...
greatly appreciated.
Daryl
Offline