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: problem with vB 3.0.6/coppermine 1.2.3  (Read 4902 times)

0 Members and 1 Guest are viewing this topic.

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
problem with vB 3.0.6/coppermine 1.2.3
« on: February 20, 2005, 11:58:53 am »

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.
« Last Edit: February 20, 2005, 03:10:36 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #1 on: February 20, 2005, 12:25:22 pm »

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

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #2 on: February 20, 2005, 12:36:36 pm »

//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 '/'
Logged

Nibbler

  • Guest
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #3 on: February 20, 2005, 12:42:01 pm »

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

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #4 on: February 20, 2005, 12:57:02 pm »

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.
Logged

Nibbler

  • Guest
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #5 on: February 20, 2005, 01:08:53 pm »

Should look like this:

Code: [Select]
<?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
...
...
...
Logged

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #6 on: February 20, 2005, 01:30:08 pm »

ok, the bride vbulletin30.inc.php file now is:
Code: [Select]
//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:
Code: [Select]
//define('UDB_INTEGRATION', 'vbulletin30');
it still won't work
Logged

Nibbler

  • Guest
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #7 on: February 20, 2005, 02:10:27 pm »

Right, so set the VB_COOKIE_PREFIX to 'bb'
Logged

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #8 on: February 20, 2005, 03:06:56 pm »

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

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #9 on: February 20, 2005, 04:55:09 pm »

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???
Logged

Nibbler

  • Guest
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #10 on: February 20, 2005, 05:01:24 pm »

In your bridge file, find:

Code: [Select]
$sessionhash = isset($HTTP_COOKIE_VARS['sessionhash']) ? $HTTP_COOKIE_VARS['sessionhash'] : '';
change it to

Code: [Select]
$sessionhash = isset($HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'sessionhash']) ? $HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'sessionhash'] : '';
see if that helps.
Logged

nofear

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: problem with vB 3.0.6/coppermine 1.2.3
« Reply #11 on: February 20, 2005, 05:08:37 pm »

it really helps, thanks :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.