coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Mambocube on August 23, 2005, 06:08:14 PM

Title: Vbulletin 3.0.8 integration problem
Post by: Mambocube on August 23, 2005, 06:08:14 PM
[//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', 'localhost'); // 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', '/forum/');
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
// Prefix and names for the database tables
define('VB_TABLE_PREFIX', 'vb3'); // 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


i install both my gallery and my forumn in the same database, but when i have 'bb' as my cookie prefix the gallery shows a error 'Fatal error :
There was an error while processing a database query'

so i leave the cookie prefix empty and when i click login in the gallery it goes to the forum login, i login there but when i then go to the gallery i am not logged in....      this is wat bridging is supposed to do right?  so that u only have to register once and u log in once and ur logged into the forums and gallery?

using vbulletin 3.0.8
Title: Re: Vbulletin 3.0.8 integration problem
Post by: Nibbler on August 23, 2005, 07:45:16 PM
That is the idea, yes. The fact that you get an error indicates that the cookie prefix is supposed to be 'bb'. Disable the bridge, enable debug mode, re-enable the bridge, then post the sql error message that you get. Tablename prefixes generally end in an underscore, perhaps that will be the problem.
Title: Re: Vbulletin 3.0.8 integration problem
Post by: Mambocube on August 23, 2005, 10:13:18 PM
thnx nibbler,
i added an underscore after the prefix and now i dont get the error message, im pretty sure that the users are now running from the same database, the ONLY problem now is that in coppermine i am logged in as the admin automatically and cannot logout.
Title: Re: Vbulletin 3.0.8 integration problem
Post by: Nibbler on August 23, 2005, 10:15:51 PM
Try clearing your cookies.
Title: Re: Vbulletin 3.0.8 integration problem
Post by: Mambocube on August 23, 2005, 10:23:08 PM
ok i did that and now i am no longer logged in, so good..........but..........lol now i can log into the forum but when i go to the gallery i am not logged in



??????????
Title: Re: Vbulletin 3.0.8 integration problem
Post by: Nibbler on August 23, 2005, 10:24:41 PM
Post a test user account and update the quote from your bridge file with what you currently have.