Quote:
Originally Posted by Velocd
I've updated to version 2.0.
It's mostly a bug update, but I also improved the verification process in the AdminCp. So I emphasize you to update.
Upgrade instructions and the new file, as well a v2.0 screenshot of the ACP, can be found in the first post:
https://vborg.vbsupport.ru/showthread.php?p=498288
If you have questions or problems, just ask. 
|
Hello Velocd,
with all respect i have to post this because i think that other people will also run into this problem.
What's the problem ? Very easy. As soon as you have too many pictures you will run into either browser problems or PHP timeout problems exceeding 30 secs.
Fix for this ? Why do admins click on "Verify" ? Not to see the already verified pictures. The admin wants to verify any new pic that has been uploaded.
Due to this i altered your original code to show per default the "unapproved" and "disapproved" pictures and only if someone clicks on "approved" then he will get the full list of the approved pictures.
This is what i need and i don't know if other people need this but just in case you run into this problem here are my changes:
Open albumcp.php in an editor and find:
PHP Code:
require_once('./global.php');
After this place:
PHP Code:
if (!$_REQUEST['type'])
{
$type = "1";
}
else
{
$type = $_REQUEST['type'];
}
Then REPLACE this:
PHP Code:
echo "<td align='center' class='alt1'><a href='#unapproved'>Unapproved</a> ($count_una) |
<a href='#approved'>Approved</a> ($count_app) |
<a href='#disapproved'>Disapproved</a> ($count_dis)</td>";
with this:
PHP Code:
echo "<td align='center' class='alt1'><a href='albumcp.php?type=1'>Unapproved</a> ($count_una) |
<a href='albumcp.php?type=2'>Approved</a> ($count_app) |
<a href='albumcp.php?type=1'>Disapproved</a> ($count_dis)</td>";
Then find this:
PHP Code:
if ($unapproved)
{
Before add this:
PHP Code:
if ( $type == "1" )
{
Then find this:
PHP Code:
print_submit_row('Verify Unapproved','Reset', 6);
After add this:
Then find this:
PHP Code:
print_submit_row('Verify Approved ','Reset', 6);
}
After add this:
PHP Code:
}
//endif
// Disapproved
//////////////////
if ( $type == "1" )
{
Then find this:
PHP Code:
print_submit_row('Verify Disapproved','Reset', 6);
}
Add this below:
PHP Code:
}
else
{
}
//endif
}
All set all done. Or replace the albumcp.php with my attached albumcp.php.
Enjoy.
Cheers,