Member
Member
Laurent   2010-06-09, 20:40
#1

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 ?

Regards
Laurent

Member
Member
sbillard   2010-06-09, 22:40
#2

It is not absolutely clear what you intend.

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.

Member
Member
Laurent   2010-06-10, 18:18
#3

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.

I hope you understand me.

Regards
Laurent

Administrator
Administrator
acrylian   2010-06-10, 18:59
#4

Ok, I understand now, Could you please create a ticket on our bugtracker so it does not get lost.

Member
Member
Laurent   2010-06-10, 19:15
#5

Ok, I have create a new ticket.

Thank You

Laurent

Member
Member
sbillard   2010-06-11, 00:06
#6

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:

[list]
[]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"
[/list]
So, if you want images/albums not counted, mark them unpublished.

Member
Member
Laurent   2010-06-11, 20:12
#7

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.

Member
Member
sbillard   2010-06-11, 23:17
#8

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.

Member
Member
Laurent   2010-06-12, 15:43
#9

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.

Thank you very much for your help.

Regards
Laurent

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.