forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Gillie on October 28, 2012, 08:34:25 pm

Title: Need Help with Upload Display
Post by: Gillie on October 28, 2012, 08:34:25 pm
I found this post http://forum.coppermine-gallery.net/index.php/topic,74682.0.html (http://forum.coppermine-gallery.net/index.php/topic,74682.0.html) that might clarify what the problem is on our board.

Your post says that cpg1.5.20 includes fixes for the following non-security related issues:
--display only the uploaded files from the last queue after flash upload


We want the display to show all the previous uploads. 

It used to work that way.

Can we change it back?
Title: Re: Need Help with Upload Display
Post by: Αndré on October 29, 2012, 03:45:10 pm
You can find the corresponding code changes here: http://forum.coppermine-gallery.net/index.php/topic,73826.msg356029.html#msg356029

You don't need to undo all of them, it should be enough to remove e.g.
Code: [Select]
    // Display only the files from the last queue after flash upload
    if ($superCage->get->keyExists('newer_than')) {
        $owner_str .= " AND ctime > '".$superCage->get->getInt('newer_than')."'";
    }
from editpics.php.


To make it more upgrade-friendly, we can add a hidden config option to cpg1.5.22 which looks like:
Code: [Select]
    // Display only the files from the last queue after flash upload
    if ($superCage->get->keyExists('newer_than') && $CONFIG['editpics_ignore_newer_than'] != 1) {
        $owner_str .= " AND ctime > '".$superCage->get->getInt('newer_than')."'";
    }

This way, you can add a new row to your database's config table and don't need to re-apply this mod on each upgrade. Please let me know your decision.
Title: Re: Need Help with Upload Display
Post by: evabuick on November 01, 2012, 08:44:49 am
just see the solution
Title: Re: Need Help with Upload Display
Post by: Αndré on November 28, 2012, 12:33:43 pm
Committed code change in SVN revision 8515.
Title: Re: Need Help with Upload Display
Post by: Αndré on January 21, 2014, 01:53:45 pm
Added missing database records and config option (cpg1.6.x only) in SVN revision 8649.