Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Not logging in (CPG + phpBB)  (Read 10548 times)

0 Members and 1 Guest are viewing this topic.

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Not logging in (CPG + phpBB)
« on: October 07, 2005, 08:21:59 pm »

When I try to log in from the gallery it sends me to forum, I log in, it sends me back to gallery but I'm not logged in!
But if you go to the forum I'm logged in.   :-\\

http://www.wishblade.mine.nu/gallery
http://www.wishblade.mine.nu/forum

testuser//12345


Cookie domain=www.wishblade.mine.nu
Cookie name=wishblade
Cookie path=/forum/


init.inc.php
Code: [Select]
define('COPPERMINE_VERSION', '1.3.5');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');


cpg_redir.php
Code: [Select]
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>



phpbbinc.php
Code: [Select]
// database configuration
define('PHPBB_DB_NAME', 'wishblade'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'katt'); // 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', 'wishblade'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'forum_'); // 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


I hope I gave you all the information you need to be able to help me!
Thanks in advance!
Code: [Select]
« Last Edit: October 07, 2005, 10:27:29 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Not logging in (CPG + phpBB)
« Reply #1 on: October 07, 2005, 08:53:14 pm »

Cookie path=/forum/

Quote from: documentation
If you are using phpBB 2, go to the admin control panel and check that "Cookie domain" corresponds to your domain, "Cookie name" is "phpbb2mysql" and "Cookie path" is "/".
Logged

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #2 on: October 07, 2005, 09:04:30 pm »

If I change from /forum/ to just / Log in button in the gallery don't work.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Not logging in (CPG + phpBB)
« Reply #3 on: October 07, 2005, 09:11:56 pm »

Did you change the PHPBB_WEB_PATH in the bridge file, or did you change the cookie path from your phpBB admin control panel?  Don't change the PHPBB_WEB_PATH.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #4 on: October 07, 2005, 09:23:31 pm »

Did you change the PHPBB_WEB_PATH in the bridge file, or did you change the cookie path from your phpBB admin control panel?  Don't change the PHPBB_WEB_PATH.

I changed it from the admin control panel.
Logged

Nibbler

  • Guest
Re: Not logging in (CPG + phpBB)
« Reply #5 on: October 07, 2005, 09:28:43 pm »

It's still set to /forum/, change it.
Logged

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #6 on: October 07, 2005, 09:43:53 pm »

Ok, switched back to / now
Logged

Nibbler

  • Guest
Re: Not logging in (CPG + phpBB)
« Reply #7 on: October 07, 2005, 10:01:55 pm »

Looks like you are changing the Script path instead of the Cookie path.
Logged

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #8 on: October 07, 2005, 10:05:49 pm »

Yes you're right. Now I can't logout instead. lol.
Logged

Nibbler

  • Guest
Re: Not logging in (CPG + phpBB)
« Reply #9 on: October 07, 2005, 10:11:06 pm »

Clear the cookie manually with your browser. Looks to be working fine now.
Logged

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #10 on: October 07, 2005, 10:18:25 pm »

You're my hero!
Wanna mary me?  ;D
Thanks a lot for the help!
Logged

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #11 on: October 09, 2005, 12:16:19 am »

One of the users, might be more can't login even after I told them to clear cookies.
It just takes them back to gallery, un-inlogged.  ???
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Not logging in (CPG + phpBB)
« Reply #12 on: October 09, 2005, 12:22:13 am »

works like a charm for me... does this user know how to clear cookies?

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #13 on: October 09, 2005, 12:33:40 am »

I hope so  ;D
I sent her a PM to tell her how to do it, hope it will work.
Logged

Mysmasken

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Not logging in (CPG + phpBB)
« Reply #14 on: October 09, 2005, 01:09:29 am »

Quote from: User on the forum
That's how I did it, and I swear it didn't work   But I just tried again, and it's working I think. I did shut down my computer. Maybe it needed a rest! 

Thanks!!!!

Katie
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.