problem with vB 3.0.6/coppermine 1.2.3 problem with vB 3.0.6/coppermine 1.2.3
 

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

problem with vB 3.0.6/coppermine 1.2.3

Started by nofear, February 20, 2005, 11:58:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nofear

I logged in with my admin account and then browsing galllery but it said that I haven't logged in yet. When I clicked Login in gallery it refered me to vB forum where I logged in as admin already  >:( ??? :\'(!!! Help!!

Forums: www.thucnghiemsupham.net/diendan/
Gallery: www.thucnghiemsupham.net/gallery/
User: test
Pwd: test

Regards,
Nhat Nguyen.

Nibbler

Can you post the parts of the bridge file that you have changed, including the cookie prefix.

nofear

//NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
define('VB_CUST_NO', 'xxxxxxxx'); // Your vBulletin license number (NOT your customer number)
define('VB_DB_NAME', 'diendan'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', 'user'); // The username to use to connect to the database
define('VB_DB_PASSWORD', 'pwd'); // The password to use to connect to the database

// The web path to your vBulletin Board directory
// In this example http://thucnghiemsupham.net/diendan/
define('VB_WEB_PATH', '/diendan/');

The license I dont want to show here but I did change it. Cookies in Coppermine I left as it is, cookies in vB I changed as: Cookie domain: .thucnghiemsupham.net and save path is '/'

Nibbler

I mean the cookie prefix in the bridge file itself - VB_COOKIE_PREFIX. The default is blank, but your forum uses a 'bb' prefix.

nofear

i'm sorry but i could not find the cookie_prefix in the brigde file. I only can find it in another bridge file for another bb such as Invision. I used the bridge file from the coppermine download zip file.

Nibbler

Should look like this:

<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.2                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: vbulletin30.inc.php,v 1.6 2004/07/24 15:04:10 gaugau Exp $
// ------------------------------------------------------------------------- //
// Modified for vB3 by Nanobot at www.f5hosting.com                          //
// ------------------------------------------------------------------------- //
// vBulletin 3.0 Integration for Coppermine                                  //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //
// database configuration

//NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
define('VB_CUST_NO''xxxxxxxx'); // Your vBulletin license number (NOT your customer number)
define('VB_DB_NAME''forum'); // The name of the database used by the board
define('VB_BD_HOST''localhost'); // The name of the database server
define('VB_DB_USERNAME''username'); // The username to use to connect to the database
define('VB_DB_PASSWORD''password'); // The password to use to connect to the database

// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin3/
define('VB_WEB_PATH''/vbulletin3/');
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
// Prefix and names for the database tables
define('VB_TABLE_PREFIX'''); // Leave empty, not supported by vBulletin 2.3
define('VB_USER_TABLE''user'); // The members table
define('VB_SESSION_TABLE''session'); // The sessions table
define('VB_GROUP_TABLE''usergroup'); // The groups table
define('VB_COOKIE_PREFIX''');  // Cookie Prefix, not supported by vBulletin 2
...
...
...

nofear

ok, the bride vbulletin30.inc.php file now is:
//NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
define('VB_CUST_NO', 'xxxxxxxx'); // Your vBulletin license number (NOT your customer number)
define('VB_DB_NAME', 'diendan'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', 'user'); // The username to use to connect to the database
define('VB_DB_PASSWORD', 'pwd'); // The password to use to connect to the database

// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin3/
define('VB_WEB_PATH', '/diendan/');
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
// Prefix and names for the database tables
define('VB_TABLE_PREFIX', ''); // Leave empty, not supported by vBulletin 2.3
define('VB_USER_TABLE', 'user'); // The members table
define('VB_SESSION_TABLE', 'session'); // The sessions table
define('VB_GROUP_TABLE', 'usergroup'); // The groups table
define('VB_COOKIE_PREFIX', '');  // Cookie Prefix, not supported by vBulletin 2

// Group definitions (default values used by the board)
define('VB_VALIDATING_GROUP', 3);
define('VB_GUEST_GROUP', 1);
define('VB_MEMBERS_GROUP', 2);
define('VB_ADMIN_GROUP', 6);


and I uncomment this line in int.inc.php:
//define('UDB_INTEGRATION', 'vbulletin30');

it still won't work

Nibbler

Right, so set the VB_COOKIE_PREFIX to 'bb'

nofear

DONE! Thank you very much for your support :) Excellent support :p Thread can be closed now  8)

nofear

Hi again,

I just found out a problem when user log in to bb without checking the 'remember me" box, then coppermine can't check the cookies. Therefore, they have to log out and log in again with that box checked, in order to use gallery. How can I solve this???

Nibbler

In your bridge file, find:

$sessionhash = isset($HTTP_COOKIE_VARS['sessionhash']) ? $HTTP_COOKIE_VARS['sessionhash'] : '';

change it to

$sessionhash = isset($HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'sessionhash']) ? $HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'sessionhash'] : '';

see if that helps.

nofear