Bridging Forum & Gallery on seperate domains Bridging Forum & Gallery on seperate domains
 

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

Bridging Forum & Gallery on seperate domains

Started by FearlessX, October 20, 2004, 02:56:32 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

FearlessX

Hi bros,

Bridging Forum & Gallery on seperate domains. Is that possible?

1) Forum sitting on forums.domain1.com
2) Gallery gonna be installed on domain2.com

cookie for domain1.com set to --> .domain1.com

Im using Invision Power Board v1.3.1 & the latest version of CPG. How do i go about doing it.. with the bridging works?

Joachim Müller

domain1.tld and domain2.tld are different domains - cookies can't be read across domains (thank god) - that's a matter of design of the www, no matter what you set the cookie domains to. Short answer: no, this is not possible.

Joachim

FearlessX

Thanks for the reply.. i was just wondering how www.sgforums.com & www.sggirls.com share the same userdb/login system.. would love to know how it works..  ;D

Joachim Müller

they must have created some script that shares the user's login in another way - this can be done with some advanced scripting, but not the "regular" coppermine cookie authentification. The site you're refering to doesn't seem to be coppermine based anyway.

Joachim

FearlessX

Hi. can they share the same mysql database using the same user database tables? not necessary for them to share to same cookie..but same database .. ?

Nibbler


FearlessX

-- Yes my host allows it.

How do i go about doing it? It seems like the bridging script is redirecting the user to the Forum's login page. i would love it if it can redirect the user to coppermine's own login page while its using the forum's userdb at the same time.  ;D

Nibbler

You could adapt coppermine's login to work from the board's user db and use that to set coppermine cookies I suppose.

FearlessX

When i enable the integration.. Coppermine's /gallery/login.php doesnt work like what it is before integration anymore.. Any idea why?  ???

Joachim Müller

this is by design. The login link is suppossed to go to your bbs app's login screen (which will only work if both apps are on the same domain). Like Nibbler posted: this is possible, but requires you to actually apply some code changes. If you can not code it, you'll have to use what is available (in other words: what you're up to won't work).

Joachim

FearlessX

Yes. I know its suposed to redirect to bbs app's login screen. So i did code changes to invisionboard.inc.php.. i modified the settings and by right the login pages should direct to login.php. But login.php doesnt loads after i enable the integration ..  ???

Joachim Müller

link, test user account (non-admin) and modified code, please.

Joachim