CPG + PHPBB Intergration login problem CPG + PHPBB Intergration login problem
 

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]

Main Menu

CPG + PHPBB Intergration login problem

Started by godforevermore, June 28, 2005, 06:22:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

godforevermore

Hi there,

I have searched these boards all last night and this morning..... and have found plenty of others with the same problem.  However, no fixes. And if there was, I tired it and it is still giving me the same thing. I had it up and running as a standalone and everything worked fine.


My problem-

When I do all the things as instructed, login into CPG and then go to my board for entering, and redirect back to CPG, it is not log in.  But it is logged in for the board.

My info-

PHPBB: http://www.rvlivin.com/forum
CPG: http://www.rvlivin.com/scrapbook

(I cannot make a test account because it only has a login button, no register button!? )

Cookie info from my phpbb forum-

Cookie name: phpbb2mysql
Cookie path: /

===============================================================

cpg_redir.php

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


================================================================

phpbb.inc.php

// database configuration
define('PHPBB_DB_NAME', 'rvboards'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'boards.rvlivin.com'); // 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', 'phpbb2mysql'); // 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

================================================

init.inc.php

define('COPPERMINE_VERSION', '1.3.3');
// 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');
// define('UDB_INTEGRATION', 'vbulletin30');

====================================================



Thank you in advance and all help is greatly appreciated.

kegobeer

If Coppermine is bridged to your forum, all user registration is done thru your forum.  Create a test user in your forum and post that user/password.
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

godforevermore

Oh, ok!  Thank you for letting me know.  I kinda wondered about that.  I created an account- user: test password: test

Thank you for the reply and I appreciate the help.

godforevermore

Anyone out there that can help me out?! I would be oh so grateful!

Nibbler

I can't see anything wrong with the details you have provided. If you want to PM me an FTP login to your site then I can investigate and fix it for you directly.

Draxxx007

My (our) issue was cookie related.

From phpBB, make sure you have the following;
Under config;

"Cookie name" must be the same as you have put here;
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies


"Cookie domain" must equal ".rvlivin.com" (you must have EXACTLY as written between the quote marks [note the leading .])

"Cookie Path" in phpBB must be "/"

Hope this Helps!!! :)
D007

godforevermore

Draxxx007-

Thank you for your reply.  However I have tired what you said and it is still doing the same thing?!? I wish it was that..............so I could have it all set up by now.  :\'( Thank you for trying to help! I appreciate it!

kegobeer

Your site still doesn't work correctly for me.  Have you cleared your cookies and tried again?  There are now two different cookies:

rvlivin.com (has phpbb info)
www.rvlivin.com (has coppermine info)

Logged into the forum, went to the gallery, not logged in.  I don't think you should have a leading dot before rvlivin.com in your cookie domain.
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

godforevermore

I cleared all my cookies even in two different browzers IE and firefox. 

I will take the dot away out that is before the rvlivin.com and see what happens. 

godforevermore

kegobeer-

After clearing my cookies again and taking out the dot before rvlivin.com, I am still having the same problem?!   :-\\

Nibbler

You were connecting to the wrong phpbb, you have 2 installed in your database. Should be working now, but for future reference it is recommended to have coppermine and phpbb in the same database.

godforevermore

Quote from: Nibbler on June 30, 2005, 12:38:10 PM
You were connecting to the wrong phpbb, you have 2 installed in your database. Should be working now, but for future reference it is recommended to have coppermine and phpbb in the same database.


Thank you Nibbler!  You are awesome!! I really appreciate the time you took to help me out.   :-*

I am a bit confused as to how and why and where I have 2 phpbbs installed in my database.  I was only aware of the one in rvlivin.com?! Maybe I am misunderstanding what you said.  But if you could tell me where the other one is, I would like to go in and see it and maybe delete it too?

Thank you again!  You have made my day.   :)

Nibbler

My pleasure :)

From what I can see, you used to have an installation of phpbb 2.0.11 at /phpBB2/ using the phpbb_ prefix in the same database as your main forum with just a single admin user named 'adminrv', last used January 17th of this year. Looks like an empty forum, with just the default setup.

Your main forum uses the prefix phpbb2_, and that is what your bridge file should have been set to.

godforevermore

Ohhhh..... I see now.  I was totally unaware of this.  Thank you so much!  :)