the number of pics in an album displayed in the intermediate view is calculated in the function theme_html_img_nav_menu() ... it passes the value to the $template_img_navbar , {PIC_POS} contains the actual pos and the total
$pic_count holds the number of images... you'll need to pass it to the template.
That's only for the navbar... if you want to display the number anywhere else, you'll have to modify another function, template
I tried to use $pic_count but it contains the number of photos in the actual category, I need to display the total number of images in the gallery
I was told that coppermine checks which methods can find in themes.php and later looks for the missing ones in themes.inc.php
I can't understand why this number isn't shown in displayimage.php, considering that the {NUMPHOTOS} placeholder is in the HTML template and the pageheader function is run at every pageload (I suppose...)
consider that all the other placeholders I added are working fine, just one fails.
This is my $template_vars array
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),
'{CHARSET}' => $charset,
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{SYS_MENU}' => theme_main_menu('sys_menu'),
'{SUB_MENU}' => theme_main_menu('sub_menu'),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
'{USERSONLINE}' => $i_t_user,
'{UNDERMENUADS}' => $phpAds_raw_UnderMenu['html'],
'{HEADERADS}' => $phpAds_rawHeader['html'],
'{NUMPHOTOS}' => $i_t_numphotos,
);
only {NUMPHOTOS} doesn't show, and only in displayimage.php, everything works perfectly in all the other pages
thanks for your help and for spending a couple of minutes on this stuff guys