 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
April 29th, 2009, 07:03 PM
|
#1 (permalink)
| | Junior Member
Join Date: Jan 2006
Posts: 11
| vbulletin integration across difference domains
Hi
Suppose i have vbulletin installed on domain 1
and photopost gallery installed on domain 2
Can they be integrated so that there is a single login for vbulletin? please advice before i click the install button.
Thanks
|
| |
April 29th, 2009, 09:03 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
You can have a single login but your cookies will not work across domains since cookies are only for a single domain name. You will also need to add your photopost domain to the vb whitelist.
|
| |
May 6th, 2009, 08:21 AM
|
#3 (permalink)
| | Junior Member
Join Date: Jan 2006
Posts: 11
|
Is some kind of modification available which allows two domains alliance... or can we have filmstrip from other website to vbulletin site... thanks
|
| |
May 6th, 2009, 08:33 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
Hello
You can show the photos from the photopost in your vb site sure using the plugin here http://www.photopost.com/forum/photo...3-5-3-8-a.html
Cookies though only work on the domain your on so if you integrate on two different domains downside is you need to login to the forum and when you go to the gallery you will need to relogin and vice versa.
|
| |
May 6th, 2009, 08:47 AM
|
#5 (permalink)
| | Junior Member
Join Date: Jan 2006
Posts: 11
|
what is the photopost is installed in the same database but accesed through the other domain name
like:
domain 1 has vbulletin in db1 on same server
domain 2 has photopost in db1 on same server
Could this be possible allowing single login?
My apologies for being curious... i hope you understand...
|
| |
May 6th, 2009, 08:58 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
No that would not work.
Cookies which only work on one domain name are your problem. It is not a database issue or software issue. This is a limitation with how cookies work. Your only way to possibly do this would be to say alter both vbulletin and photopost and alter the code where they set the cookies and set explicitly two sets of cookies one for each domain name both applications are on.
|
| |
May 22nd, 2010, 03:28 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 50
|
Hi,
I have the same issue. Same database, Vbulletin on one domain, Photopost on another domain.
I don't mind if Cookies don't work, but what can I do to allow the same login to work?
|
| |
May 22nd, 2010, 06:06 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
As long as you have proper mysql access to the forum database you can use the vb login.
|
| |
May 22nd, 2010, 10:56 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 50
|
I disabled the VB Integration and I cannot login, and the PP styles don't work anymore. It says that the connection was successful, but brings me back to the Photopost Index not logged in.
Photopost is in the same database, but different prefix obviously.
Something I'm missing to use the VB users but without integration?
And I don't understand why the Photopost styles do not work anymore...
Last edited by dbigras; May 22nd, 2010 at 11:26 AM.
|
| |
May 22nd, 2010, 04:39 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
You can not use the enhanced vb integration on two different servers as the server path is not accessible.
I would need to see your site and a test user login to really comment on what you have going on.
|
| |
May 22nd, 2010, 07:03 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 50
|
What paths?
As I mentioned, Photopost and Vbulletin are in the same database. My VB tables have a different prefix than my PP tables.
Same server.
The server installation is in the same root, just in different subfolders. Vbulletin in one folder, Photopost in another folder.
When I disable the VB Integration from config-int.php, I try to login with a user from my VB users, which is not in the PP_Users table. So I know it's using the VB Users table. It says that the connection was succesful but when the Index page refresh, the user is not connected.
When I write that I disable the VB Integration, is that I set the three VB3 Integration options to OFF, in config-int.php, but I left everything else there: The database configs, the paths, the passwords, the VB Licence #, etc..
I cleared my history, my cookies from my browser and it still doesn't work.
At the very least, what I need is that Photopost use the VB_Users table for authentication in the same table and when new users want to register, that it will redirect them to my VB registration system.
That's the very least that I need. Can it be possible?
I wish Photopost would support Facebook Connect and Cross-Domain Cookies ( 15 Seconds : Sharing Cookies Across Domains). It would make my life much easier.
|
| |
May 22nd, 2010, 08:38 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
| vbulletin integration across difference domains
well your commenting in this thread here which has the topic in bold above.
As long as your photopost is correctly installed to integrate with vbulletin with the proper database information paths etc you should have something that looks like this. A community photo gallery - ReefTalk Gallery
You would need to post a url and possible test login for me to comment on your specific site.
|
| |
May 22nd, 2010, 11:24 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 50
|
That's not what I'm asking.
Since you do not support Cross-Domain cookies, I need to figure out a way to make it work between two domains but one user database.
My main site is sitea.com, with VB4.
My photopost site is siteb.com, but all on the same server, all in the same VB4 database, in the same folder root.
When I connect on siteb.com, I want to use the users from VB4, which is in the same database.
But I'm willing to live without styles integration and doing it seperately. I just want to avoid managing two user databases.
My photopost will be reachable directly, with siteb.com, but also sitea.com/siteb and also siteb.sitea.com. I need the authentication system to work.
Is it possible?
|
| |
May 23rd, 2010, 01:09 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
| Quote: |
Since you do not support Cross-Domain cookies, I need to figure out a way to make it work between two domains but one user database.
| Has nothing to do with whether we can support it simply put cookies do not work this way. A cookie is and always will be for one specific domain name. That will not change. Cookies are created with 3 things. The path domain name and data. Quote: |
My photopost will be reachable directly, with siteb.com, but also sitea.com/siteb and also siteb.sitea.com. I need the authentication system to work.
| As I have previously stated as long as you have correctly installed the application you should not have any issues. If you are integrated with the vb database the user info will be authenticated and the cookie created will be the site your actually on which means say siteb.com so you should be logged in.
This is the exact reason I asked what the real url and a test login is because as of yet I do not see the exact error being posted. I 6hink the live url and a login will help us support you.
|
| |
May 23rd, 2010, 01:45 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 50
| Quote:
Originally Posted by Chuck S Has nothing to do with whether we can support it simply put cookies do not work this way. A cookie is and always will be for one specific domain name. That will not change. Cookies are created with 3 things. The path domain name and data. | Cookies can work with multiple domains. Search 'cross-domains cookies' in Google. I'm not a developper, but I've worked in a authentication project for the largest Web company in Canada and you can make cookies work for multiple domain names, as long as you develop for it. Quote:
As I have previously stated as long as you have correctly installed the application you should not have any issues. If you are integrated with the vb database the user info will be authenticated and the cookie created will be the site your actually on which means say siteb.com so you should be logged in.
This is the exact reason I asked what the real url and a test login is because as of yet I do not see the exact error being posted. I 6hink the live url and a login will help us support you.
| Agreed. I will set that up for you tomorrow and send it to you by email.
Thanks for you time. Much appreciated that you look into this so late and on a saturday.
I finished setting up so that it works like this: http://sitea.com/siteb
All is fine with the cookies, authentication and if I disable the VB3 Integration options, I can login fine as well with my VB4 users.
But like this, if I connect to http://siteb.com, I cannot login. Well, it says that it was succesfull, but the index page doesn't show me as logged in.
|
| |
May 23rd, 2010, 07:23 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
thats a new one on me as cookies work for one domain and even reading the tutorials cookies still work for one domain. The trickery of what they are calling cross domain cookies is really php code trickier which checks for cookies from a predefined set of domain names and reads the directory so maybe cross domain cookies is a bad name for it IMO.
Well you can only login or be cookied in on the domain the software is running on. For example you install photopost on the domain name in your first example you will never be logged in through the domain name in your second example because the software is install on the first url. Thats the domain name that runs over the software.
|
| |
May 23rd, 2010, 07:14 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 50
|
I don't know what else to tell you. I've given you all the information. Cross-Domain cookies exists. Cross-Domain authentication exists. I'm not trying to create a theological debate here.
The reason why I cannot login with siteb.com is because you absolutely use cookies to login and you only allow authentication from that cookie. Why? If I connect to a system and I enter the right credentials from the user database, why can't I login?
That's your product preventing me from login in from siteb.com, nothing else.
I want to use a shared database, but not be the same domain name. Because siteb.com will be a Photo gallery that will be, not adult oriented, but will have sexy content. And some sitea.com users don't want these pictures to be part of sitea.com's photo library. But many sitea.com users do.
So, I want sitea.com and siteb.com sharing the same users, but siteb.com on a seperate domain.
I'm not asking to rewrite your product, but to allow connection from multiple acceptable domains. You reject the connection from siteb.com because you don't recognize it as sitea.com. Cross-domain Web authentication is not a new technology. Web Single-Signon is not new either.
Just look why you are rejecting the connection, add a configuration option to see if the site is a recognized domain, if yes, allow the authentication.
|
| |
May 24th, 2010, 08:36 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
I have explained to you how it works a couple times here.
If photopost is installed on sitea.com then thats the cookie the application is looking for because thats the domain the software is installed on.
siteb.com will never work over photopost hit a link your on photopost you are on sitea.com not siteb.com therefore your logged out.
Thats why you get logged out. If you want to create some sort of code mod when your user logs in that multiple cookies are created then you can do that in vb or photopost but thats up to you to code in.
|
| | |
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 02:21 PM. | |