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 August 3rd, 2005, 11:01 AM   #1 (permalink)
ldk
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 13
Problems With New Version of SMF Forum!(FIXED)

Hello,

I use Classifieds and Photopost with the SMF forum. A couple of weeks ago I upgraded to the latest version of SMF and now what is happening is that sometimes (like 20% of the time) users post an ad or a picture and it enters their "username" as "Unregistered" and their "userid" as "0" rather than what they are really logged in as. It's not that they're not logged in. They are logged in. "Guests" are not allowed to post. So it's like their being detected as being in some state between logged in and not logged in!

Any ideas as to what can be done about this?

Thanks!

Leah
ldk is offline   Reply With Quote
Old August 3rd, 2005, 11:02 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Hello

I would just check to ensure you have your cookie setting correct and that both are set to run on .domain.com incase you have an issue where the urls are going elsewhere to where a user gets logged out.

Try this little tweak as well

In smf.php our file in the forums subdirectory find the lines noted and add below the line 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.

Last edited by Chuck S; August 3rd, 2005 at 11:13 AM.
Chuck S is offline   Reply With Quote
Old August 3rd, 2005, 11:10 AM   #3 (permalink)
ldk
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 13
Thanks for the reply! Can you explain a bit more about what you mean here?

Quote:
Originally Posted by omegatron
Hello

I would just check to ensure you have your cookie setting correct and that both are set to run on .domain.com incase you have an issue where the urls are going elsewhere to where a user gets logged out.
ldk is offline   Reply With Quote
Old August 3rd, 2005, 11:38 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Well I beleive the issue here is trying to figure out how the login is dropped. Hense I suggested double check your settings.

Cookie path should be / in both apps

Cookie domain should be set to .domain.com in both apps so cookie works with and without the www as you will drop login if not set this way

cookiename obviously you have set right

The little tweak I posted above is just to make sure the session cookie is read correctly
__________________
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 17th, 2005, 08:51 AM   #5 (permalink)
ldk
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 13
Just an FYI that that didn't really fix the problem.

I'm not 100% sure about this but I believe that the current version of SMF (1.1 Beta 3 Public) uses a different kind of password encryption than previous versions of SMF. One of the developers said this:

Quote:
SMF 1.1 now uses sha1 for its password encryption. As we said - integrations that worked with 1.0 will most likely not with 1.1.
I'm not sure if this is what was causing the problems but the problems I was seeing were (applies to PhotoPost and Classifieds):

a) it was not properly detecting that someone was logged in and was showing the "login" and "register" links AND the "upload" link and allowing people to upload pictures/ads as Unregistered

b) the login screen was not letting people login even though their username and password was correct

So I inserted 2 hacks that circumvent this problem:

1. I made sure it doesn't show this "upload" link if photopost cannot properly tell whether they are logged in or not

2. I redirected the login to my own special screen that logs them in properly and then redirects them back to photpost

So perhaps when SMF 1.1 is out of it's "Beta state" the developers here could rewrite the photopost code for SMF so it detects logins properly?
ldk is offline   Reply With Quote
Old August 17th, 2005, 08:58 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Hello

Yeah I have a test copy of the current smf and it works fine.

We would most likely take a look at this when SMF beta is not beta.
__________________
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 22nd, 2005, 07:53 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
Well ...im having the same issue Omegatron, the differenec with mine is that if I log in into the Forum first , then click on the photopost gallery link which I have on the forum, i get to stay logged in. After a while the session time sout and i have to go back into the firum to log in again. I noticed this recently ( last two weeks) and unfotunately i m not sure whether its was the Photopost or SMF that caused that problem but, i have always had it work well.
On the second part, you mention of Cookie path in both apps ( SMF does not have that setting to change- at least i looked around i could not find it). Same as the Cookie domain {When you say set it to .domain.com in both apps so cookie works with and without the www} do you mean that if my domain is kenyans.org, i should add the period behind ( ie: .kenyans.org) in photopost?

If you want to try it , take a second to set up an account on my integration on

http://www.kenyans.org.

Thanks.
kisii is offline   Reply With Quote
Old August 22nd, 2005, 08:13 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
If a user belongs to multiple usergroups simply download the latest photopost and upload smf.php again

I dont think any logouts have to do with sessions. This is right in the file

if ( ($PHPSESSID) && ($PHPSESSID == $sessionid) ) {
$checkpass = 1;
}
elseif ($ID_PASSWORD) {
if ($lastpass == $ID_PASSWORD) {
$checkpass = 1;
}
}
elseif ($dbpassword) {
if ($dbpassword == $finalpass) {
$checkpass = 1;
}


I would beleive your cookies are somehow being dropped. You saying SMF has nowhere in there settings a place to define the cookies?
__________________
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 22nd, 2005, 10:32 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
SMF does not have the cookie path and cookie domain setting. It does have a cookie name and prefix and thats about it.

I have the latest PP build plus the tweak you documented above. I do not think that it has anything to do with usergroups, ( all my members are in one group { post based } and even the admin account is affected.
kisii is offline   Reply With Quote
Old August 26th, 2005, 08:18 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
anything else that we can try?
kisii is offline   Reply With Quote
Old August 26th, 2005, 08:55 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
You could link your install here or email me a username password too see how you have things set

There is no issue that I can see with SMF I installed a test forum and everything operates fine. Your issue sounds cookie related
__________________
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 27th, 2005, 04:58 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
check your inbox. Thanks.
kisii is offline   Reply With Quote
Old September 1st, 2005, 10:56 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 172
Omegatron,

I have followed all your instructions including uploading all the 5.13 files to the remote directory....theres the same problem. I have tried searching the board and several other SMF integrations are having the same problem. I also knwo that you have tried to hgelp us but the problem is not there. You wrote the code and theres no one better to look to for a fix...can you please spend a little bit more time so that we can a solution? Its not a coincidence that that several SMF users are having the same problem. Thank you. - Michael do you have a second opinion about this?
kisii is offline   Reply With Quote
Old September 1st, 2005, 11:37 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
I installed a test install of SMF there is no issue that I see.

Now with SMF there is no cookie settings persay other than the name so Photopost must be on the exact domain other than that there is no fix for me to post as I do not see an issue here.

If SMF is on www.domain.com then Photopost must be on www.domain.com

The SMF cookiename must be entered in Photopost settings other than that until SMF gets wider cookie settings nothing else I can say here. I dont see any issues on my test installs.

The only thing I have seen on your installs as I believe I point out to everyone about cookies is to ensure your domain is not switching
__________________
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
Install bug: Forum Cookie Prefix(FIXED) spadbuoy Classifieds Bug Reports 4 July 4th, 2005 02:30 PM
Moved the forum to a new server, now problems paradise Installs and Upgrade - vBulletin 3.0.X 9 May 31st, 2005 12:24 PM
SMF forum integration problem alzy Photopost Pro Installation & Upgrades 4 March 15th, 2005 12:18 PM


All times are GMT -5. The time now is 02:22 AM.

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