forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: cavok on November 10, 2010, 03:43:02 pm

Title: Show only new files when uploading via FTP
Post by: cavok on November 10, 2010, 03:43:02 pm
Adaptaion of A little functionality hack for batch upload  (http://forum.coppermine-gallery.net/index.php/topic,19747.msg90564.html#msg90564)
Here is the modification to do for version 1.5.x ( or at least 1.5.8 )

You upload your photos via FTP, but when you want to integrate by click on FTP, the pictures appear, the old and new.

Very annoying when there is a lot of photos.
- Slow Posting (together with all the thumbnails are displayed).
- Hard to find that news in the lot.

With this change, there will only be shown that the new upload.

Edit in coppermine root the file searchnew.php.

Find
Code: [Select]
$checked = isset($expic_array[$picfile]) ? '' : 'checked="checked"';Add after
Code: [Select]
if ($checked == 'checked="checked"'){
Find
Code: [Select]
EOT;
        return $return;
     
    } else {
        $winsizeX = (300);
Replace with
Code: [Select]
EOT;
     } 
        return $return;
     
    } else {
        $winsizeX = (300);