 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
December 21st, 2011, 03:23 PM
|
#21 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
I was editing while you answered ! Sorry.
|
| |
December 21st, 2011, 03:40 PM
|
#22 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Actually your only issue is maybe how your server handles the lack of a script name in the url.
I can not replicate that anywhere but your site but this is the only problem I see
If I login I am never logged out I can click through everywhere and am logged out except one link.
The HOME link which goes to your gallery page without the index.php script name in it you are not logged in. Now however if you put the index.php in the url or click any other link you are logged in so it is how your server is translating the lack of a script name,
There are two things you can try.
1. You can try placing in the htaccess filename a DirectoryIndex index.php at the top of that file see if that solves it.
2. if not then edit the pp-inc.php file and in the function topmenu on the home link add index.php
|
| |
December 22nd, 2011, 07:29 AM
|
#23 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
In my htaccess of the gallery I have this: Code: Content visible to verified customers only.
Are those correct ?
If I add there "DirectoryIndex index.php" in the code above, nothing happens.
If I write index in the URL Im not logged in.
If I go to an image or something, I am not logged in.
If I logout from the forum and try to login in the gallery, I get "Invalid session, please check your user and pass" Now, here it gets interesting.
After getting a fail in the gallery login, I go to the forum and login " whithout checking the stay logged in".
Go to the gallery, hit refresh and now I am recognized.
But if "I check stay logged in" in the forum, I am not recognized.
So, how to fix that and why the login in the gallery never works ?
Thanks.
|
| |
December 22nd, 2011, 08:29 AM
|
#24 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Peter my suggestion is to do number 2 then.
I described for me the only way I get logged out. Of course this can not be produced anywhere else.
The only way you get logged out is if you go to your directory and hit the home button which has no script name in it so its some weird server not translating what script your on.
The quick fix obviously is number 2 making sure always index.php is in that link.
|
| |
December 22nd, 2011, 08:36 AM
|
#25 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
By the way I am still logged in from yesterday when I looked never have yet been logged out.
|
| |
December 22nd, 2011, 09:06 AM
|
#26 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
Ok, lets see.
We have 2 options here.
1- Your account works fine because I created it yesterday. All the 5000 old accounts are not working like that.
2- You did not hit stay logged in, please try.
So, for fixing this, we have the following. Please see the details.
1- Adding "DirectoryIndex index.php" to the htaccess, does not show index.php in URL.
2- Editing pp-inc.php to have "<a href=\"{$Globals['maindir']}/index.php\">" does not show index.php in URL.
The problem has nothing to do to have "index.php" in home or not. If you login without "stay logged in" and just hit refresh in home, you are recognized.
3- If I choose stay logged in in the forum, I am not recognized in the gallery.
4- If I "DONT" choose stay logged in in forum, I am recognized, but just after refresh.
Please try it.
What can change when choosing stay logged in ?.
This have to work if the user clicks stay logged in and if not.
5- The gallery login, never works, no matter the method.
Why the gallery login never works and how to fix it ? This is correct ? I thought it should use the forum login, not another one. Please try it yourself to see.
6- Is the htaccess code I paste above correct ?
Thanks.
Last edited by Peter; December 22nd, 2011 at 09:59 AM.
|
| |
December 22nd, 2011, 09:36 AM
|
#27 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Try this in xenforo.php in our forums subdirectory make line 282 is this Code: Content visible to verified customers only.
I would suspect your xenforo has multiple sessions in the table and is picking up one where the userid is 0
|
| |
December 22nd, 2011, 10:26 AM
|
#28 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
Just the first test worked, then the same.
If I check "stay logged in" I am not recognized. And not checking it, works after refreshing gallery home.
So yes, theres an issue in the cookies.
What I noticed changing that line in xenforo.php, is that I cant logout using the gallery logout button.
Its like that now, you can try.
Thanks.
|
| |
December 22nd, 2011, 10:31 AM
|
#29 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Peter I would suggest you clear all cookies
Your cookies must be set in both applications like this
cookie path /
cookie prefix xf_
cookie domain .yoursite.com
The change I gave you should help with session issues but I have tested repeatedly and see no issues whatsoever if things are set right XenForo A community photo gallery - My Photo Gallery
feel free to register a user and try works fine.
|
| |
December 22nd, 2011, 10:33 AM
|
#30 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
I checked your site and I am most definately staying logged in with the login you provided whether I use the remember me box or not.
|
| |
December 22nd, 2011, 10:51 AM
|
#31 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Here are several things you need to consider here. While we do not technically support changes in integration we do have tools that can help one do it as well as outline the steps. We however have no control over how forum import scripts import users from other forums into the new forum or how that data is handled or stored.
Here is what I see.
1. On your site I stay logged in whether I check a remember me box or not with the login you gave me.
2. I gave you my test site you will see you stay logged in regardless of whether you check the remember me box or not.
I gave you the one thing I found which was possibly when dealing a session the query could be pulling an older session variable so the fix I posted solves that issue.
If the only users that you have an issue with are ones you imported with some xenforo import script then you need to find out what the actual issue with the imported data is.
How does xenforo handle that. Do they handle passwords differently for imported data from vbulletin and if so then that could be causing your issue and is outside the support of our software.
If I had some more information I may be able to tell you something that would work our software is not going to handle users differently based on whether they are imported or not.
Here is how a user is authenticated. We look for the xenforo xf_user cookie if it exists that is how PhotoPost knows your logged in or not. If that cookie does not exist we look for the session cookie which is xf_session.
Now when a user is logged in with the user cookie which is the users userid and password we grab those from the cookie Code: Content visible to verified customers only.
Now if that user cookie exists we compare the cookie password with a $globalsalt config variable mixed with the user password that is the cookie password in xenforo. Code: Content visible to verified customers only.
I would highly suspect if the issue you have is only those imported users that xenforo handles them slightly different so maybe ask them how they are handled differently than a normally registered xenforo user.
Does that make more sense here that is if I am following your issue correctly. All I have to go on is the normall default supported integration.
|
| |
December 22nd, 2011, 11:25 AM
|
#32 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
Ok, I just test in your site and if I check the remember me, the gallery does nor recognize me.
No cookies before and I just reset the browser deleting everything.
So, if in your site is not working either, its because theres something needed to be fixed in the integration and the cookies stuff.
Also you say that you are logged in always in my site, please login using the remember me in the forum and when visiting the gallery, do not believe the browser, hit refresh to see how the logged info disappears, its just the cache what you see as logged in.
Thanks.
|
| |
December 22nd, 2011, 12:07 PM
|
#33 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
I am logged in with the user you provided in both applications
anyway try the file I sent you via email. You can also try my site. I moved the session stuff as a last ditch effort at the bottom as a last authentication matter
|
| |
December 22nd, 2011, 12:52 PM
|
#34 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
Ok, with the file you sent it works with and without the "keep logged in" and also the gallery login form works fine !!
Sometimes I can't logout from the gallery, but that is something not that bad.
So, thank you for fixing the integration
Just one more thing.
Is the htaccess code I paste above correct ? I need it ?
Thanks again Chuck.
|
| |
December 22nd, 2011, 01:04 PM
|
#35 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
No your fine I think.
|
| |
December 22nd, 2011, 01:10 PM
|
#36 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
|
Cool, I will leave it that way then.
Thanks.
|
| |
December 22nd, 2011, 02:47 PM
|
#37 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Merry Christmas to you and your family.
|
| |
December 22nd, 2011, 02:50 PM
|
#38 (permalink)
| | Member Verified Customer
Join Date: Feb 2006
Posts: 417
| Quote:
Originally Posted by Chuck S Merry Christmas to you and your family. | Thank you Chuck, the same for you |
| |
December 22nd, 2011, 05:38 PM
|
#39 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
yep only a couple more days its time to wrap gifts clean house and more cookies to bake |
| | |
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 09:39 PM. | |