Integration problem with pHpbb Integration problem with pHpbb
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Integration problem with pHpbb

Started by RMcGirr, October 13, 2005, 07:20:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RMcGirr

Hi all,

I just can not get coppermine to integrate with our pHpbb forum:

Forum: http://betraythis.com/forum
gallery: http://betraythis.com/gallery

Forum cookies:
Cookie Domain:betraythis.com
cookie name:etraforu_phpbb
cookie path:/forum

here is the code from phpbb.inc.php

// database configuration
define('PHPBB_DB_NAME', 'betrayth_teamavsforums'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '*******'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '*******'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forum/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'etraforu_phpbb'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


and I have uncommented the line in init.inc.php specifically
define('UDB_INTEGRATION', 'phpbb');

The problem is I access the gallery, click on "log in" which then redirects me to the forum.  I log in and it redirects me to the gallery...where it still shows that I need to login?  If I click on log in again, it redirects me to the forum where I am listed as already logged in.

...and coppermine, in the standalone un bridged mode, never shows me as logged in.  I always see the "log In" option.

Any help would be appreciated.  TIA.

Sorry forgot to add

user: test
password: chomper

Stramm

try that in your phpbb config

Cookie domain:                            (<- nothing, empty)
cookie name:etraforu_phpbb
cookie path:/

RMcGirr

well that seems to have fixed it...though I did have to delete the cookies for the forum which was to be expected.

BTW, is there a reason that the cookie path has to be / instead of what I had?

Thanks for your help stramm.

Nibbler

The cookie path restricts the scripts that are allowed to read the cookie. If you set it to /forum then only scripts located in the /forum directory are able to read the cookie. If you do this then Coppermine can't read it in order to authenticate you. By setting it to /, your entire site can read the cookie.

Edit: If you were to set it to /gallery then your forum wouldn't see the cookie. You can only specify a single path, so / is the only option that will work.

RMcGirr

That makes sense.

Now I have a different issue.  I can log on to the gallery just fine, but when in "user mode" and I try to upload a picture it says I don't have authorization, or something like that, to post in any albums.

The only groups that I have denied are the guest and banned users groups all others have permissions to post pics.

Thoughts?

Thanks.

Joachim Müller

one question per thread, initial issue solved, case closed, thread locked.