coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: littleking on November 01, 2005, 03:38:11 AM

Title: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 03:38:11 AM
i'm having a heck of a time being able to log into cpg and be re-directed back to cpg. it works, but then i have to log in again and then it takes me to phpbb...

any ideas?

username: test
password: testing


http://www.huntohio.net/gallery/
http://www.huntohio.net/forums/

phpbb - Cookie name = huntforums

define('PHPBB_COOKIE_PREFIX', 'huntforums'); // The prefix used for board cookies

cpg cooke = huntgallery

Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: Abbas Ali on November 01, 2005, 06:21:52 AM
I had no problems in log in on your cpg installation. I was redirected from forum to gallery after log in.

Try removing all the cookies of forum as well as gallery and then logging in.
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 02:16:27 PM
if you log into phpbb first, then try to go to the gallery you are not logged in, if you click login it takes you to phpbb
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 02:18:11 PM
i cleared all cookies, when i log in it takes me back to cpg, but i am not logged in. if i hit login again it takes me to phpbb
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 02:20:40 PM
here is my bridge file:


// 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', '/forums/');
// 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', 'huntforums'); // 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 here is my redir


<?php
$cpg_host
=$_SERVER['HTTP_HOST'];
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 02:34:59 PM
now im getting
Notice: Undefined index: huntforums_sid in /home/httpd/vhosts/huntohio.net/httpdocs/gallery/bridge/phpbb.inc.php on line 103

when logging out
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: Nibbler on November 01, 2005, 02:49:23 PM
That doesn't make any sense. Please post lines 102 and 103 from the bridge file.
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 03:31:49 PM


102   //     if ($cookie_uid && !$cookie_pass && isset($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_sid'])) {
103       $session_id = addslashes($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_sid']);



102 was commented out from following http://forum.coppermine-gallery.net/index.php?topic=23229.0


the easy fix for me was to do the new session handling as posted above, then just remove the logout button:)

but i still get: Notice: Undefined index: huntforums_sid in /home/httpd/vhosts/huntohio.net/httpdocs/gallery/bridge/phpbb.inc.php on line 103

if you go to the gallery without logging into phpbb first.... is there any way to make them log in first to phpbb? so if they go to the gallery without logging in to phpbb it redirects them to phpbb
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: Nibbler on November 01, 2005, 03:32:54 PM
The error is caused by that modification, you'll need to seek support from its author.
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 03:33:56 PM
Quote from: Nibbler on November 01, 2005, 03:32:54 PM
The error is caused by that modification, you'll need to seek support from its author.

i modified my post above...
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 01, 2005, 03:36:20 PM
without that modification, i have to log in to cpg twice, and i still am not logged into cpg... any ideas?
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: Nibbler on November 01, 2005, 05:39:54 PM
http://forum.coppermine-gallery.net/index.php?topic=23281.0
Title: Re: phpBB 2.0.18 and coppermine login problems
Post by: littleking on November 03, 2005, 03:57:36 PM
solved