Hi, Is there to not display the image that is actually password protected. I look to image statistic guide but i see nothing about. Do i made a wrong search ?
If you visit the image page of a password protected image and you are not the admin and do not know the password you will get a login screen, not the image.
Thumbnails are a different situation. You can choose to display the image as the thumbnail or a lock image instead. That is an option. Of course the same conditions apply--if the user is logged in he will be able to see the image.
Oh sorry, when i read my first post i don't understand myself too ;-)
I have made a mistake is not the printLatestImages() but the getNumImages() fonction. So, i use the GetNumImages(true); fonction to count the picture of my site. Some of this pictures are put on a private galery with a password protection. All this works great. But i notice that this "private" picture are count even if you are not login in.
I think that if you have 1000 pictures and 200 pictures are in a private gallery, the getNumImages fonctions should only count the public pictures (800 in this exemple) until you are loged to the site.
I know that it is not important, but it will be best to display the right number.
Perhpas you are confused about how passoword protected and published work together.
If you do now wish albums or images shown in your gallery they should be marked not published. If you want to restrict access to them you password protect them. You will note that there are four states you can get out of this:
published/not password protected--any one can see these items
not published/not password protected--people have to "know about" these items to view them. (That is they need to know the URL.)
published/password protected--people will know of these items but not be able to access them without the password.
not published/password protected--These are truely restricted to "logged in users"
So, if you want images/albums not counted, mark them unpublished.
Ok, thanks for this. You don't understand what i try to explain to you because it's hard for me to explain.
I do this test. 1 - I have unpublished some pictures for testing in a password protected gallery. 2 - If i'm log this my admin account, i can see all the pictures. 3 - I log me out 4 - I can't access to the gallery, ok it's normal 5 - I log with a other account, not my admin account but a account for some friend like this : login : a_login password : a_password 6 - With this "friend" login i access to the private gallery but i don't see the unpublished pictures.
But you're right, the picture are not count this the getNumImages() fonction.. Even if you are log.
I don't know if it's more comprehensive for you now :-)
I was thinking that the function are able to count the picture in a dynamic mode base on your login. But like i said in my first post, it's not very important if it don't works like that.
Regards Laurent PS : Si un français me comprend, qu'il propose une meilleur traduction If a french understand me, can you translate in a better english.
Yuur friend login will see only unpublished images which you have authorized him to see through the user rights assigned to him. Also note that guest logins are differennt from Admin logins. It is only the latter who may have priviledges to see unpublished images.
The functions do make their counts based on who is logged in. If an administrator is logged in, unpublished images are counted (and shown) if not, unpublished images are not counted nor shown.
Ok, I understand a little bit more. I'm unable do to what you said, it's better a but i still have a strange comportement for me. But maybe it's a way it's works.
Don't waste your time for that. I'll try again in a few days. Maybe it will work.
Comments
If you visit the image page of a password protected image and you are not the admin and do not know the password you will get a login screen, not the image.
Thumbnails are a different situation. You can choose to display the image as the thumbnail or a lock image instead. That is an option. Of course the same conditions apply--if the user is logged in he will be able to see the image.
I have made a mistake is not the printLatestImages() but the getNumImages() fonction.
So, i use the GetNumImages(true); fonction to count the picture of my site.
Some of this pictures are put on a private galery with a password protection. All this works great.
But i notice that this "private" picture are count even if you are not login in.
I think that if you have 1000 pictures and 200 pictures are in a private gallery, the getNumImages fonctions should only count the public pictures (800 in this exemple) until you are loged to the site.
I know that it is not important, but it will be best to display the right number.
I hope you understand me.
Regards
Laurent
Thank You
Laurent
If you do now wish albums or images shown in your gallery they should be marked not published. If you want to restrict access to them you password protect them. You will note that there are four states you can get out of this:
- published/not password protected--any one can see these items
- not published/not password protected--people have to "know about" these items to view them. (That is they need to know the URL.)
- published/password protected--people will know of these items but not be able to access them without the password.
- not published/password protected--These are truely restricted to "logged in users"
So, if you want images/albums not counted, mark them unpublished.You don't understand what i try to explain to you because it's hard for me to explain.
I do this test.
1 - I have unpublished some pictures for testing in a password protected gallery.
2 - If i'm log this my admin account, i can see all the pictures.
3 - I log me out
4 - I can't access to the gallery, ok it's normal
5 - I log with a other account, not my admin account but a account for some friend like this :
login : a_login
password : a_password
6 - With this "friend" login i access to the private gallery but i don't see the unpublished pictures.
But you're right, the picture are not count this the getNumImages() fonction.. Even if you are log.
I don't know if it's more comprehensive for you now :-)
I was thinking that the function are able to count the picture in a dynamic mode base on your login. But like i said in my first post, it's not very important if it don't works like that.
Regards
Laurent
PS : Si un français me comprend, qu'il propose une meilleur traduction
If a french understand me, can you translate in a better english.
The functions do make their counts based on who is logged in. If an administrator is logged in, unpublished images are counted (and shown) if not, unpublished images are not counted nor shown.
I'm unable do to what you said, it's better a but i still have a strange comportement for me. But maybe it's a way it's works.
Don't waste your time for that. I'll try again in a few days. Maybe it will work.
Thank you very much for your help.
Regards
Laurent