coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: MLKE on June 11, 2004, 04:49:48 PM

Title: Batch add - broken image
Post by: MLKE on June 11, 2004, 04:49:48 PM
first post.. yay!

when i do the batch add process.. the result shows a broken image. but in the album it shows that files exist, but when i open a file, theres nothing there, no description no filename, no file...

????
Title: Re: Batch add - broken image
Post by: hyperion on June 11, 2004, 07:40:06 PM
Could you provide a link or some screenshots, please?
Title: Re: Batch add - broken image
Post by: p.s.b on June 18, 2004, 09:20:21 AM
showthump.php and addpic.php don't work on my Provider (all-inkl.com)

the Mozilla Browser says:  
QuoteDie Grafik "http://www.myserver.de/xyz...picture.jpg&size=48" kann nicht angezeigt werden, weil sie Fehler enthält.

my first solution for that:

in showthumb.php disable the line
require("include/init.inc.php");
to
// require("include/init.inc.php");

and paste after
$CONFIG['fullpath'] = "albums/";

here is the path to albums "hardcoded"
and  the security if (!GALLERY_ADMIN_MODE)... has no effect!

addpic.php

i replaced this part
if (ob_get_length()) {
   ob_end_flush();
   exit;
}

header('Content-type: image/gif');
echo fread(fopen($file_name, 'rb'), filesize($file_name));
ob_end_flush()


with
header("LOCATION: ".$file_name);

i hope this helps ...