Topic: Calling PUN_ROOT from different subdomain

I've been writing code for a few hours, and I am just about friend for the day, but I want to figure this out, and then I will be satisfied for the day's work.

I have PunBB install on http://www.domain.com/forum

I want to be able to include the authentication on http://my.domain.com

I tried doing this using a absolute URL, but it came back and said:

"The constant PUN_ROOT must be defined and point to a valid PunBB installation root directory."

Even though that is a valid directory.

Thanks,

-Steve

Re: Calling PUN_ROOT from different subdomain

you can't use a URL its a path on the server.

Re: Calling PUN_ROOT from different subdomain

So how do I authenticate on http://my.domain.com and when I go to http://www.domain.com/forums/ have it still be authenticated?

The reason I ask is that I want the customer control panel to be at the domain http://my.domain.com, but do not want the forums on the same subdomain.

Thanks

-Steve

Re: Calling PUN_ROOT from different subdomain

Well, this is all done via the internal directory structure of your site
So, if www.domain.com/forums/ is in /home/steve/www.domain.com/public_html/forums/
and my.domain.dom is in /home/steve/my.domain.com/public_html/
then for the PUN_ROOT you'd put either '/home/steve/www.domain.com/public_html/forums/' or '../../www.domain.com/public_html/forums/'

5 (edited by Steve Castle 2006-01-07 01:34)

Re: Calling PUN_ROOT from different subdomain

Thanks.

I figured out that it was not accepting cookies for the subdomain, so I made the necessary change in config.php (making $cookie_domain = ''; into $cookie_domain = '.domain.com'; )

Is there anything else I should be aware of?  I think this it it.

-Steve

Re: Calling PUN_ROOT from different subdomain

Assuming you got PUN_ROOT and the cookie, that should be it