#1 2003-05-05 05:32:47

pretzelguy
Member
2003-05-05
7

Getimagesize Error & Html In Forms

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

 

#2 2003-05-05 20:00:25

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13934

Re: Getimagesize Error & Html In Forms

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

Code:

$query.= ", comment = '".htmlspecialchars( $HTTP_POST_VARS[$comment], ENT_QUOTES )."' ";

by

Code:

$query.= ", comment = '".$HTTP_POST_VARS[$comment]."' ";

then in diapo.php (version 1.2), line 295 to 298, delete

Code:

if ( $row['comment'] != "" ) 
    {              
    $alt_thumbnail .= "n".$lang['comment']." : ".$row['comment']; 
    }

About your problem of image reading, I don't know what to say...

Offline

 

#3 2003-05-05 21:30:50

pretzelguy
Member
2003-05-05
7

Re: Getimagesize Error & Html In Forms

Thanks for your quick help...
greatly appreciated.

Daryl

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact