Also go to your admin overview page. You should see statistics on unpublished albums and images with the new changes.
Admin is using the new calls to get this information, so if it shows the data, the function is working.
Have you initialized your $gallery variable? Perhaps you should be using $_zp_gallery
thanks !
I've tried $_zp_gallery->getNumImages(true), it's almost perfect (some images should not be counted)
it will be long and difficult for me to explain the problem in english, I've made a screenshot with the "description" of the problem, I think it's linked with subalbums
thanks
I've tried before and did it again when I read your message but nothing changes... it's not so important, I think images counted are in subalbums even if they are not published
I'll deal with it because I choose to share the same folder for ZP albums and a CMS, and these subalbums contain images for the CSS of the CMS
for the moment, my problem is to understand how does ZP works when I add new images on existing albums via FTP...
I've searched and read subjects on the forum and don't understand yet (english is not my first language, it doesn't help)
I've checked this :
when I send images via FTP :
I'm trying to understand when entries are created in the database :
yesterday, I've tried something else : edit the album on the admin, it creates also entries in the DB for new images but loading the "album page" is too slow for galeries over 400 images (more than 5 minutes for 400 images)
using "pre-cache" or "edit the album" on the admin tool are too slowly to update "big gallery"... for me, it's better to use phpMyAdmin to update informations (title, etc) for saving time...
what should I do ?
how does it works when images are uploaded by FTP ?
sorry for the "off-topic" (and maybe redundant subject) but I'm trying to understand
ok
I find a way to use "pre-cache" very quickly, in cache-images.php, I comment this :
echo '[img]' . getImageThumb() . '[/img] | [img]' . getDefaultSizedImage() . '[/img]' . "n";
my solution is :
sorry if I bother you... I'll be a nice quiet girl now...
[i]'ll deal with it because I choose to share the same folder for ZP albums and a CMS, and these subalbums contain images for the CSS of the CMS[/i]
There actually should be only images/albums that are to be used for zenphoto in the albums folder. Confusion is preprepared if you put css images in there. I would recommend to keep images for "styling" separate from the "content" ones.
I chose zenphoto because I could share this folder between galleries and the CMS, essential points of my checklist were:
this folder contains docs, images, etc for 3 websites (same website in 3 languages) and also galleries... images I use for ZP galleries are in folders untitled "alb" and contain only images (folders don't start by the prefix "alb" are unpublished precisely to avoid confusion)
don't worry... also, maybe my answers sound "quick" (or "hard"), I don't know "polite things" to make nice sentences in english