If u download images from lightbox, the download counter for each image does not getting updated.
Step 1.
Open /download.php
Find:
$sql = "SELECT cat_id, image_media_file, image_download_url
replace with:
$image_ids = array();
$sql = "SELECT cat_id, image_media_file, image_download_url, image_id
Step 1.2.
Find next:
unset($file_data);
Add after:
$image_ids[] = $image_row['image_id'];
Step 1.3.
Find next:
if ($file_added) {
Add after:
if ($user_info['user_level'] != ADMIN) {
$sql = "UPDATE ".IMAGES_TABLE."
SET image_downloads = image_downloads + 1
WHERE image_id IN (".trim(implode(", ", $image_ids)).")";
$site_db->query($sql);
}
NOTE: Because there are atleast two simular parts in the file that will match with strings that u need to find, u'll need only the fist matching lines that are in between line
if ($action == "lightbox") {
and
elseif ($image_id) {