Hi all,
from a long time some1 wanted this mod.
Demo:
http://www.nicky.net/4test/details.php?image_id=23 or
http://gallery.krugozor.ru/img6143.html (Text above the image: Фото 28 из 32)
look for text :
Image 4 from 21number 4 is the number of the image in category depence on the sort method you did in the settings for you gallery
number 21 is the number of images in that category or from your lightbox or from your search result
4images user SAD http://www.4homepages.de/forum/index.php?action=profile;u=4778provided to me how he did it, on this way
SAD, THANK YOU.
okay here we go:
changed files:
./details.php
./lang/english/main.php
./templates/default/details.html
1.)open ./details.php
search for
if (!$in_mode || empty($sql)) {
$sql = "SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file
FROM ".IMAGES_TABLE."
WHERE image_active = 1 AND cat_id = $cat_id
ORDER BY ".$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort'];
}
$result = $site_db->query($sql);
add BELOW
$all_image_number = $site_db->get_numrows($result);
same filesearch for
$site_template->register_vars(array(
"next_image_id" => $next_image_id,
"next_image_name" => $next_image_name,
add BELOW
"curr_image_number" => $act_key+1,
"all_image_number" => $all_image_number,
"lang_curr_image_number" => $lang['curr_image_number'],
"lang_all_image_number" => $lang['all_image_number'],
2.) open ./lang/english/main.php
add BEFORE
?>
$lang['curr_image_number'] = "Image";
$lang['all_image_number'] = "from";
ONLY for german users
open ./lang/deutsch/main.php
and add this
$lang['curr_image_number'] = "Bild";
$lang['all_image_number'] = "von";
3.)open ./templates/default/details.html
search for
</b>{endif msg}
add BELOW
<div align="center"><b>{lang_curr_image_number} {curr_image_number} {lang_all_image_number} {all_image_number}</b></div>
SAD, thx again for sharing this code!
ALL others, have phun!