coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: zebraplayer on October 15, 2004, 06:06:20 AM

Title: cookie path question
Post by: zebraplayer on October 15, 2004, 06:06:20 AM
I am trying to integrate my CPG and my PHPBB

The directories where each is installed is as follows

PHPBB   www.mysite.com/msgboard/nfphpbb
CPG      www.mysite.com/Group101Actors/nfpicturepro

Should the qookie path be set for both to be / . Or should it be // or ./ or ..// or what?

I have it 99.9% integrated. But that feels so far from 100.

I know, from reading all the posts on the subject, that the only problem I am having is getting CPG to read the friggin' PHPBB's cookie.

I click on the CPG Log In link, it takes me to the BB Log In screen. I type the username and password and it redirects me to CPG where I am not logged in. Yet, if I go back to the BB, I am logged in. Definitely a cookie thing, right?

http://www.group101clt.com/Group101Actors/nfpicturepro/index.php                  u=test p=test

2nd question:

Should changes be made to this part of the phpbb.in.php file?

  // Retrieve cookie stored login information
    if (!isset($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_data'])) {
        $cookie_uid = 0;
        $cookie_pass = '*';

I know it says: "// Nothing to edit below this line." But...  I was wondering if that's for when you are doing something other to the files than trying to get it to bridge correctly.

I know these are probably dumb questions. Forgive me.
Title: Re: cookie path question
Post by: Nibbler on October 15, 2004, 04:50:29 PM
Issue solved ?
Title: Re: cookie path question
Post by: zebraplayer on October 15, 2004, 05:01:34 PM
What do you mean? Nobody offered any suggestions or response, yet.
Title: Re: cookie path question
Post by: Nibbler on October 15, 2004, 05:06:16 PM
I just went to your site and it works perfectly.
Title: Re: cookie path question
Post by: zebraplayer on October 15, 2004, 05:07:51 PM
I will be darn. It works for the user accts. but not for the admin acct. Why is that?

Could this be an issue of the group definitions in the bridging file

// Group definitions
define('PHPBB_ADMIN_GROUP', 1);


and the group ID in the phpbb dd?

My phpbb_groups table has

Group ID    Group Type 2    Group Name

1                     2                    Admin

But maybe I'm looking in the wrong table or something.
Title: Re: cookie path question
Post by: zebraplayer on October 15, 2004, 05:52:15 PM
Solved it. My user ID was 0 in the phpbb db, which I gues was conflicting with stuff in the bridging file. I changed it to 1 and now it works.

Thanks, Nibbler for taking the time to look into it.