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: vB 3.0.8/CPG1.3.3 Integration Problems  (Read 6019 times)

0 Members and 1 Guest are viewing this topic.

eljeffe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
vB 3.0.8/CPG1.3.3 Integration Problems
« on: September 10, 2005, 11:51:23 pm »

I installed Coppermine today and after follwing the instructions for integrating CPG with vB, I am having no luck.  When I go from my vB instance, the Coppermine menu still shows "login" as an option.  When I click on "login", I am redirected back to the main page of my forums.  Can you help?

Site:  http://www.bmwlt.com/forums
Username:  testuser
Password:  testuser
Location of forums:  http://www.bmwlt.com/forums
Location of cpg:  http://www.bmwlt.com/files

Thanks.
« Last Edit: September 11, 2005, 08:37:44 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #1 on: September 10, 2005, 11:56:34 pm »

Please post what you have changed in the bridge file.
Logged

eljeffe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #2 on: September 11, 2005, 12:04:05 am »

Security information marked out with ********

Changed lines of code marked in bold
Quote
//NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
define('VB_CUST_NO', '********'); // Your vBulletin license number (NOT your customer number)
define('VB_DB_NAME', '********'); // The name of the database used by the board
define('VB_BD_HOST', '********'); // The name of the database server
define('VB_DB_USERNAME', '********'); // The username to use to connect to the database
define('VB_DB_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', '/forums/');
// ------------------------------------------------------------------------- //
// 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', 'bb');  // Cookie Prefix, not supported by vBulletin 2
Logged

eljeffe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #3 on: September 11, 2005, 07:04:18 pm »

Please post what you have changed in the bridge file.

Hey Tom,

We also decided to reinstall the whole shebang at www.bmwlt.com (just to make sure the forums.bmwlt.net domain wasn't causing the issue).

I've updated the URL and testuser information in the first part of the post.

Your help is greatly appreciated.
Logged

Nibbler

  • Guest
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #4 on: September 11, 2005, 08:05:53 pm »

Your VB_COOKIE_PREFIX should be 'forums_', not 'bb'.
Logged

eljeffe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #5 on: September 11, 2005, 08:13:01 pm »

I think that did the trick, but now we're onto the next problem.  Now I get the following error when I go to http://www.bmwlt.com/files

Fatal error :
There was an error while processing a database query
Logged

Nibbler

  • Guest
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #6 on: September 11, 2005, 08:16:23 pm »

OK, disable the bridge, enable debug mode, re-enable the bridge, and post the real mysql error message that you get.
Logged

eljeffe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #7 on: September 11, 2005, 08:23:10 pm »

OK, disable the bridge, enable debug mode, re-enable the bridge, and post the real mysql error message that you get.

The error is:

While executing query "SELECT userid as user_id, username as user_name, usergroupid as mgroup, password FROM `forums`.user WHERE userid='2'" on 0

mySQL error: Table 'forums.user' doesn't exist

It appears we have vb3_ prefixing all the vBulletin tables.  Do you know where there might be a DB_PREFIX?  I'll go look in the init files.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #8 on: September 11, 2005, 08:24:12 pm »

Are your Coppermine and bbs tables in the same database?
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

Nibbler

  • Guest
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #9 on: September 11, 2005, 08:25:19 pm »

It's the VB_TABLE_PREFIX setting in the bridge file.
Logged

eljeffe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: vB 3.0.8/CPG1.3.3 Integration Problems
« Reply #10 on: September 11, 2005, 08:25:54 pm »

Are your Coppermine and bbs tables in the same database?

Yep.  And I found the table prefix variable and added 'vvb3_' to it.  Looks like it's working like a charm.

Thanks for your  help!!!

Jeff
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 15 queries.