forum.coppermine-gallery.net

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:  
Quote
Die 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
Code: [Select]
require("include/init.inc.php");to
Code: [Select]
// require("include/init.inc.php");
and paste after
Code: [Select]
$CONFIG['fullpath'] = "albums/";
here is the path to albums "hardcoded"
and  the security
Code: [Select]
if (!GALLERY_ADMIN_MODE)... has no effect!

addpic.php

i replaced this part
Code: [Select]
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
Code: [Select]
header("LOCATION: ".$file_name);
i hope this helps ...