coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Benqo on August 09, 2005, 09:46:43 PM

Title: Using CPG with SMF over subdomains
Post by: Benqo on August 09, 2005, 09:46:43 PM
Hi,

I planned to create my new structure of my website like this:

hxxp://blog.mydomain.net (s9y 0.8.2)
hxxp://forum.mydomain.net (SMF 1.0.5)
hxxp://img.mydomain.net (CPG gallery 1.3.3)

The s9y plugin to Coppermine is not really a big deal, you can specify the exact domain there. I worry more about SMF and Coppermine, using the same user database over the delivered-with bridge, but installed in different subdomains and physical directories.
The structure is:

customerdir/
> blog/
> forum/
> img/
> public_html/


I think the structure is self-describing. Is this possible? Originally, in the documentation it is written that the authentication could be a problem. But I'm pretty sure that someone already solved such a similar problem, it seems, that I'm just to stupid to find the right thread. :)

Regards, Benqo
Title: Re: Using CPG with SMF over subdomains
Post by: Nibbler on August 09, 2005, 09:53:44 PM
Subdomains are fine, just make sure the cookies are set on .mydomain.net

You'll need to change the udb_redirect function in the bridge file, I have posted a few times on how to do that but it's fairly straightforward if you take a look at the function.
Title: Re: Using CPG with SMF over subdomains
Post by: Benqo on August 09, 2005, 10:11:12 PM
Muchas gracias! Merci! Kiitos! Thank you! Dankeschön! Gracie mille! :)

Only one left: is it possible to set a explicit cookie domain in SMF and CPG, too?
Title: Re: Using CPG with SMF over subdomains
Post by: Nibbler on August 09, 2005, 10:14:52 PM
You can't set cookie domain in coppermine, but you don't need anything to read coppermine's cookies. You need to enable subdomain independent cookies in SMF, and disable database driven sessions.