Uploaded Files Uploaded Files
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Uploaded Files

Started by trackman, December 13, 2005, 12:34:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

trackman

What I have been experiencing is that uploaded files have been placed into the last uploads by the time they are uploaded, so if I upload some files after I approve the previous files they don't show up on the main page of last uploads. Is there anyway of when approving files, they show up on the main page first before any others.

Hope you understand

trackman ;D

Paver

No, I don't understand.  Files are shown in "last uploads" in order by upload time.  Are you saying you want files to use the approval time instead? 

Nibbler

editpics.php, find

$update .= ", approved = 'YES'";

change to

$update .= ", approved = 'YES', ctime = UNIX_TIMESTAMP()";

trackman

Thanks Nibbler, but they are still showing by approval not upload time ???

Nibbler

Fix include/functions.inc.php too then

$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY pid DESC $limit";

change to

$query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY ctime DESC $limit";

trackman