Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Bridging Forum & Gallery on seperate domains  (Read 5630 times)

0 Members and 1 Guest are viewing this topic.

FearlessX

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Bridging Forum & Gallery on seperate domains
« on: October 20, 2004, 02:56:32 pm »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging Forum & Gallery on seperate domains
« Reply #1 on: October 21, 2004, 05:52:38 am »

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
Logged

FearlessX

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Bridging Forum & Gallery on seperate domains
« Reply #2 on: October 21, 2004, 08:00:23 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging Forum & Gallery on seperate domains
« Reply #3 on: October 21, 2004, 08:07:06 am »

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
Logged

FearlessX

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Bridging Forum & Gallery on seperate domains
« Reply #4 on: October 21, 2004, 04:32:59 pm »

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 .. ?
Logged

Nibbler

  • Guest
Re: Bridging Forum & Gallery on seperate domains
« Reply #5 on: October 21, 2004, 04:33:59 pm »

Assuming your host allows it, yes.
Logged

FearlessX

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Bridging Forum & Gallery on seperate domains
« Reply #6 on: October 21, 2004, 05:59:21 pm »

-- 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
Logged

Nibbler

  • Guest
Re: Bridging Forum & Gallery on seperate domains
« Reply #7 on: October 21, 2004, 07:34:42 pm »

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

FearlessX

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Bridging Forum & Gallery on seperate domains
« Reply #8 on: October 21, 2004, 08:13:23 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging Forum & Gallery on seperate domains
« Reply #9 on: October 22, 2004, 08:05:15 am »

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
Logged

FearlessX

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Bridging Forum & Gallery on seperate domains
« Reply #10 on: October 22, 2004, 09:28:05 am »

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 ..  ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Bridging Forum & Gallery on seperate domains
« Reply #11 on: October 22, 2004, 01:01:51 pm »

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

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.