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 1st, 2005, 08:57 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 3
Question Private album keeps asking for password

To get to a private album on my site, a user must first type in the username and password, and then a second password for the private album. The problem is that to view each individual photo in the album, the user must keep typing in the private album password. (The error message is "This forum requires a password for access!") Is this a bug? Any ideas on how to fix it?
Netwit is offline   Reply With Quote
Old June 1st, 2005, 09:06 AM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
Check the thread at the top of the page and make sure you are running the latest build; we did find an issue with changing private albums/categories and cookies that was fixed a few days back.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old June 2nd, 2005, 11:05 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Location: Finland
Posts: 94
I have this same problem and I'm running the latest (05/31) version.
If a user goes to My Photos and tries to enter a his own password protected album it keeps asking for a password.

This doesn't happen if that password is in url - this only happens if he tries to access that password protected album by going "My Photos" and then clicks that album.

I think I fixed that by adding this:
Code:
Content visible to verified customers only.
before this:
if ( isset($_GET['catp']) ) {

in showgallery.php

As far as I can tell when that password is being send from get_password / getpass.tmpl... there's no function in showgallery that reads that POST catp-value.

Is this a valid fix.. I don't know.. maybe Michael / Omegatron can check this and give a comment.

Last edited by Mikan; June 2nd, 2005 at 11:58 AM.
Mikan is offline   Reply With Quote
Old June 2nd, 2005, 11:43 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
I show the code in showgallery.php as correct

if ( isset($_GET['catp']) ) {
@setcookie( "catp", $_GET['catp'], 0, "{$Globals['cookie_path']}", $Globals['domain_path'] );
$GLOBALS[catp] = $_GET['catp'];
}


$catp is never a post item. Basically what we say there is if there is a catp variable in the url reset the cookie to that get which overwrites the catp password
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; June 2nd, 2005 at 11:45 AM.
Chuck S is offline   Reply With Quote
Old June 2nd, 2005, 11:50 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Location: Finland
Posts: 94
Quote:
$catp is never a post item.
Oh... what's this then:

getpass.tmpl

<form method="post" action="{$Globals['maindir']}/showgallery.php">
.....
<input type="text" size="24" name="catp" class="bginput" />
....
</form>

And why that addition that I posted fixed my problem?
Mikan is offline   Reply With Quote
Old June 2nd, 2005, 12:47 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Well catp is in the typecast request line so it should parse a get or post as its an array.

That is the template that is called if you cont have a cookie on your computer. Are you saying if you dont have the cookie on your computer and type the password in there that the cookie is not created?
__________________
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 2nd, 2005, 12:52 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
If so try 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 2nd, 2005, 01:20 PM   #8 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
I see what he is saying, that in the case of the form the catp is being passed via a POST and not a GET. We need to check for the existance of both. We can't check $_REQUEST because then the cookie overrides those other two, so we need to check POST and GET explictly.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old June 2nd, 2005, 02:12 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Location: Finland
Posts: 94
Quote:
Originally Posted by omegatron
Code:
Content visible to verified customers only.
Thanks, but that one doesn't work because you are still using these "$_GET['catp']" to set that cookie and that GLOBALS and those GETs don't help if that catp is being passed via POST so my solution that I posted earlier is still better
Mikan is offline   Reply With Quote
Old June 2nd, 2005, 02:25 PM   #10 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
My bad, I edited Chuck's post incorrectly. I just updated it with:

Code:
Content visible to verified customers only.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P 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
generate new Album password bug Johnny Doomo Photopost Pro Bug Reports 3 November 2nd, 2005 02:17 PM
Private album problem jgraham Photopost Pro Bug Reports 1 October 1st, 2005 02:15 PM
Login problem and private album password problem bicpm Photopost Pro Installation & Upgrades 10 March 11th, 2005 10:17 AM


All times are GMT -5. The time now is 08:09 AM.

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