 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
September 2nd, 2006, 04:51 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 220
| 5.31 stripimages displays privates photos
Under certain circumstances, the private images are displayed on the image strip on showphoto.php.
- the first photo of the image strip has to be a non private image
The next two photos are displayed regardless if they're private or not.
Code in showphoto.php: Code: Content visible to verified customers only.
As you can see, the "grab two more" part isn't checking if the image is private or not.
|
| |
September 3rd, 2006, 10:25 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Yes I can understand your philosophy here but this will require some extensive testing to answer. I have done some testing and thus far the only way I can see a private image is if I am logged in as admin which means things are working as they should be since admin sees everything.
|
| |
September 3rd, 2006, 11:12 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 220
|
Ok, thanks. I know that an admin can see private images, but this happens for normal users and non authenticated users.
Instructions on how to reproduce this bug:
- upload two images to a private album
- upload an image to a public viewable category
- go to the frontpage of photogallery with a normal user account or as an non authenticated user. On the "new photos" strip, the two private images won't show up (as wanted), but the last uploaded image will.
- Click on that image to view it.
- Have a look at the image strip. The thumbnails of the two private images will show up there. Clicking on one of them will bring up the "You need a password to view this image" screen. But from my understanding, the thumbnails of the private images should not be visible.
Let me know if you can reproduce this with the above instructions. If not, I can provide you access to my test installation. To fix this, the "grab to more part" would also need an is_image_private() call.
|
| |
September 3rd, 2006, 11:45 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Try this instead Code: Content visible to verified customers only.
|
| |
September 3rd, 2006, 12:22 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 220
|
Unfortunately, it's not that easy. Your fix will make the image strip disappear completely. The problem is that you need to fetch additional rows if the images are private as long as you got two non private images and then do the the "break".
|
| |
September 3rd, 2006, 02:34 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
| Code: Content visible to verified customers only.
|
| |
September 3rd, 2006, 02:49 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 220
|
That fixed it, thanks!
|
| |
September 3rd, 2006, 04:30 PM
|
#9 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
I can see that we'll need to loop for checking is_image_private and ending when we run out of images or we get two more..
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
September 4th, 2006, 04:27 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 220
|
Sounds good!
Will you post a small notice when this has been fixed? Either with the updated code or that I can grab the latest version from the member area?
Thanks!
|
| |
September 10th, 2006, 08:45 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Dec 2002
Posts: 40
|
Aw heck.
I was looking for a fix to keep private photos out of the "most recent" gadget on the index page. I see now the problem goes deeper.
So what do I do now with my users? Cut their privates off, or expose their privates?
It's not pretty !!
|
| |
September 10th, 2006, 08:53 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
David no this discussion is about the next prev strip on showphoto.
The feature blocks on the index correctly show images a user has permission to see.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:45 PM. | |