 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
June 2nd, 2005, 10:51 PM
|
#1 (permalink)
| | 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.
|
| |
June 3rd, 2005, 06:54 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
June 5th, 2005, 11:40 AM
|
#3 (permalink)
| | Registered User
Join Date: Mar 2005
Posts: 44
|
That worked, thanks.
|
| |
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.
|
| |
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. |
| |
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!
|
| |
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
|
| |
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);
}
|
| |
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
|
| |
July 24th, 2005, 11:15 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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
|
| |
July 25th, 2005, 07:57 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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
|
| |
August 2nd, 2005, 10:46 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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
|
| |
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.
|
| |
October 3rd, 2005, 01:30 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
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
|
| | |
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 12:37 AM. | |