phpBB2.06 Integration- Have searched forums for answers phpBB2.06 Integration- Have searched forums for answers
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

phpBB2.06 Integration- Have searched forums for answers

Started by NSH, January 31, 2004, 09:58:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NSH

I have searched these forums and phpbb's to attempt to find a fix.

I have applied all patches that were recommended.

PhpBB works fine logging into/out of itself.
Coppermine works without integration.

Directions from readme.html have been followed for installation/integration.

Gallery and phpbb are on different subdomains:

Gallery: photos.squareinthenuts.com
PHPBB: forums.squareinthenuts.com

Cookie names are different.

Phpbb2:
Cookie Domain: forums.squareinthenuts.com
Cookie Name: sitncookie
Cookie Path: /

Coppermine:
Cookie Name: cpg11d
Cookie Path: /

I have applied the redirect 'patch' and put the cpg_redir.php file in the root of PHPBB folder
( the actual folders are:  www.squareinthenuts.com/forums/  and www.squareinthenuts.com/photos/ however, with subdomains of course they are redirected)

If I us the login link from Coppermine it takes me to my forum login page.
Once logged in the redirect works and send me back to coppermine.
It however does not log in within coppermine.  If I go back to the forums it shows I am in fact logged in.

If I put the gallery within the same domain as my forums it works without any problems.
I however would really like to use seperate domains.
Reading on www.phpbuilder.com it states that cookies can't be read across domains, we all know this isn't true simply becuase it works for some :)

I have checked my cookie settings within IE and they seem to be OK.

Again, I have any post/thread I can find on both sites to try and fix the issue.

Edit: Test Account

Username: test
Password: testing

Urls: forums.squareinthenuts.com  photos.squareinthenuts.com
Any help is greatly appreciated.

MaThIbUs

Try this:

[size=18]Cookie settings for CPG/phpBB integration[/size]

for phpBB2
Cookie domain: www.yoursite.com
Cookie name: phpbb2mysql
Cookie path: /

for Coppermine
cookie name: cpg11d
cookie path: /

Joachim Müller

@MaThIbUs: the cookie name won't make any difference as long as they differ...

@NSH: I know this can be accomplished - I've seen it on other sites as well, but I haven't managed to do this for my sites (that's why I don't use subdomains, although they're quite nice in terms of search-engine friendliness). My guess is the cookie domain you'll have to experiment with...

GauGau

NSH

Quote from: "gaugau"@MaThIbUs: the cookie name won't make any difference as long as they differ...

@NSH: I know this can be accomplished - I've seen it on other sites as well, but I haven't managed to do this for my sites (that's why I don't use subdomains, although they're quite nice in terms of search-engine friendliness). My guess is the cookie domain you'll have to experiment with...

GauGau

Thanks for the response.


I think I may have an idea..

NSH

gaugau, do you know of any sites on the top of your head that uses this type of set-up?  Maybe I could contact one of them

NSH

Bump.
Anyone know of any sites that use phpbb/coppermine integration and are on seperate subdomains/domains ?

I would really appreciate the help

nonplus

Quote from: "NSH"Bump.
Anyone know of any sites that use phpbb/coppermine integration and are on seperate subdomains/domains ?
For security reasons, a domain isn't allowed to read cookies written by another domain.  So I don't think it's possible to integrate two web apps on different domains using cookies.  And yes, sub-domains are "different domans".

If you want to use one login, they have to reside on the same domain (in, say, /forum and /gallery, respectively).

NSH

Quote from: "nonplus"
Quote from: "NSH"Bump.
Anyone know of any sites that use phpbb/coppermine integration and are on seperate subdomains/domains ?
For security reasons, a domain isn't allowed to read cookies written by another domain.  So I don't think it's possible to integrate two web apps on different domains using cookies.  And yes, sub-domains are "different domans".

If you want to use one login, they have to reside on the same domain (in, say, /forum and /gallery, respectively).

I would tend to agree, however I almost know there are sites that use seperate domains with coppermine and phpbb.

Joachim Müller

afaik they all use a trick: they have a hidden frame (width/height "0") or an iframe that includes some file from one domain (the root domain or one of the subdomains; doesn't really matter) that actually sets/reads the cookie and send this information to the script within the subdomain (removing the cookie handling from either coppermine or your bbs to your hacked script. You'll need some understanding (or rather: in-depth konwledge) on php and the way cookies are handled to accomplish such a hack - unless you really feel comfortable with these topics you shouldn't even think about using it.
As I stated before: although subdomains would be a nice thing to have, they really suck if you want to maintain a single means of user tracking around your site.
Another option would be a hack replacing user tracking by cookie with sessions, but this hasn't been done yet, and I'm afraid it's complicated as well.
Sorry...

GauGau