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
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.
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
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
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;
?>
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
That doesn't make any sense. Please post lines 102 and 103 from the bridge file.
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
The error is caused by that modification, you'll need to seek support from its author.
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...
without that modification, i have to log in to cpg twice, and i still am not logged into cpg... any ideas?
http://forum.coppermine-gallery.net/index.php?topic=23281.0
solved