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 June 2nd, 2005, 10:51 PM   #1 (permalink)
DJT
Registered User
 
Join Date: Mar 2005
Posts: 44
PP5.1: Private Albums(FIXED)

When a member changes a private album to a regular album, it still requests a password to view.
DJT is offline   Reply With Quote
Old June 3rd, 2005, 06:54 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
in useralbums.php set this

Code:
Content visible to verified customers only.
to this

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 offline   Reply With Quote
Old June 5th, 2005, 11:40 AM   #3 (permalink)
DJT
Registered User
 
Join Date: Mar 2005
Posts: 44
That worked, thanks.
DJT is offline   Reply With Quote
Old July 5th, 2005, 03:10 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
It seems that this hasn't been integrated into the 5.12 release.
Astaran is offline   Reply With Quote
Old July 5th, 2005, 03:31 PM   #5 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
Actually the useralbums.php reads exactly as the corrected code above, you sure you have an updated file?
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old July 5th, 2005, 03:45 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Yes, false alarm. I had the correct file but didn't read Chucks instructions carefully enough. Sorry!
Astaran is offline   Reply With Quote
Old July 6th, 2005, 03:32 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Mhh, I think there still is a bug with that.
the $isprivate == "no" && $oldstat == "yes" case is needed. Otherwise the password isn't cleared when switching from a private album to a non private album
Astaran is offline   Reply With Quote
Old July 6th, 2005, 03:52 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
What's working for me:
add 'oldstat' => STRING to typecast call (POST).
And change the if statement to:

//BUGFIX: changed olstat = yes to no
if ( $isprivate == "yes" && $oldstat == "no" ) {
$pa_password = gen_password();

$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='$pa_password' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
// BUGFIX: changed olstat = no to yes
elseif ( $isprivate == "no" && $oldstat == "yes" ) {
$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
Astaran is offline   Reply With Quote
Old July 24th, 2005, 11:05 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 193
I made these changes in the useralbum.php but we still are getting the same results of having to enter a password to see the picture when logged in as the user who is making the album

Quote:
//BUGFIX: changed olstat = yes to no
if ( $isprivate == "yes" && $oldstat == "no" ) {
$pa_password = gen_password();

$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='$pa_password' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
// BUGFIX: changed olstat = no to yes
elseif ( $isprivate == "no" && $oldstat == "yes" ) {
$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
I am not sure that I understand what Astaran means by this:
add 'oldstat' => STRING to typecast call (POST).

Do I need to add something else to make this work?
Carole
Carolem is offline   Reply With Quote
Old July 24th, 2005, 11:15 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
in useralbums.php find this and add in bold

Code:
Content visible to verified customers only.
then find this code block and make changes in bold.

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 offline   Reply With Quote
Old July 25th, 2005, 02:31 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 193
I tried the fix adding 'oldstat => STRING,

got a blank screen

and then tried it again like this:
'oldstat' => STRING,

end result - we still saw the message:

This forum requires a password for access!

Please enter password:

Any other suggestions?
Carolem
Carolem is offline   Reply With Quote
Old July 25th, 2005, 07:57 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Nope you need to reset the album password and still remember you need to flush any cookies on your computer

As long as a user is given a url with the catp variable in the url a catp password will be created giving them access.

They will only see that box in 2 circumstances.

One they do not have a password in the url to set a catp cookie

Two there is another catp cookie on there computer and they got to the album without a catp variable hense they do not match.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 2nd, 2005, 07:56 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Location: Wales
Posts: 30
I'm running the 5.13 version.
My useralbums.php is like the second block in Omegatrons topmost post of this thread :
Quote:
if ( $isprivate == "yes" && $oldstat == "yes" ) {
$pa_password = gen_password();

$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='$pa_password' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
elseif ( $isprivate == "no" && $oldstat == "no" ) {
$query = "UPDATE {$Globals['pp_db_prefix']}categories SET password='' WHERE id=$albumid";
$setug = ppmysql_query($query,$link);
}
I am having the same passwords for albums problems with users and am now just a little confused as to which fix works and what code I need to alter to get 5.13 working on this.

Can you please advise me with a clear indication (for a simple mind) to copy and paste or edit as must be done for correct operation?
Thanks
encaustic is offline   Reply With Quote
Old August 2nd, 2005, 10:46 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Post 10 has the updated code. Please realize you may want to refresh album passwords if you where using the old file and reinitialize.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 2nd, 2005, 11:21 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Location: Wales
Posts: 30
That was it thanks - needed to make all albums affected private, save them then make public again - working now thanks, although I just added the first part of the code change - 'oldstat => STRING but as a previous post pointed out it should have the extra ' in it thus 'oldstat' => STRING

Thanks
encaustic is offline   Reply With Quote
Old October 3rd, 2005, 01:12 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Santa Fe, NM
Posts: 39
I am having this same problem and was on 5.13. I just upgraded to 5.20, but when I set the private album to public, it still does not allow access. What do you mean by "refresh album passwords if you where using the old file and reinitialize"? Within the Edit for the Album, I click on reset password - but that did not turn the album public.
Pauline Kenny is offline   Reply With Quote
Old October 3rd, 2005, 01:30 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
is the album set to public? Is the password field blank?

You can email me a url and login if you want me to take a look. Using the default code 5.2 I can set an album to public or private and it shows appropriately or does not show
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   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
Private Albums: This forum requires a password for access!(FIXED) mjm Photopost Pro Bug Reports 7 June 20th, 2006 08:11 PM
private albums vivpuri Photopost Pro Installation & Upgrades 1 October 24th, 2005 11:04 PM


All times are GMT -5. The time now is 12:37 AM.

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