PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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.
Astaran is offline   Reply With Quote
Old September 3rd, 2006, 10:25 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old 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.
Astaran is offline   Reply With Quote
Old September 3rd, 2006, 11:45 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Try this instead

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old 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".
Astaran is offline   Reply With Quote
Old September 3rd, 2006, 02:34 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 3rd, 2006, 02:49 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
That fixed it, thanks!
Astaran is offline   Reply With Quote
Old September 3rd, 2006, 03:00 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Sorry, a bit to early. With your latest fix, the number of photos shown in the image strip will decrease if a private images are in the mysql result set.

See here (4 photos should be displayed):
1 private image -> http://fotogalerie.herr-der-ringe-fi...0/limit/recent
2 private images -> http://fotogalerie.herr-der-ringe-fi...9/limit/recent
no private images -> http://fotogalerie.herr-der-ringe-fi...5/limit/recent
Astaran is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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!
Astaran is offline   Reply With Quote
Old 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 !!
DavidMacLean is offline   Reply With Quote
Old September 10th, 2006, 08:53 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manage Albums displays blank page dwbro1 Photopost Pro Installation & Upgrades 2 April 10th, 2006 07:12 AM
Showcat displays "DISTANCE" column but not "AVG PRICE" ? Jeremy ReviewPost Suggestions 0 November 23rd, 2005 02:13 PM
Thumbnail Displays but Large does not GeorgeGerez Installs and Upgrade - vBulletin 3.0.X 3 August 16th, 2005 11:09 PM
Stop Yahoo! Search and Google Photos from indexing photos on Photopost & Reveiwpost? criscokid Photopost Pro How Do I...? 4 June 15th, 2005 07:49 PM
[2.9 vBe] Recent Review PAL displays BBCODE memobug ReviewPost Bug Reports 1 April 7th, 2005 08:57 AM


All times are GMT -5. The time now is 04:45 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0