How to integrate vBulletin and Coppermine Photo Gallery

By Ironman · Jun 2, 2005 ·
  1. Ironman
    After countless unsuccessful attempts to get vBulletin and Coppermine Photo Gallery to integrate I finally succeeded in getting these two programs to work together by Coppermine using vBulletin’s user info, thereby eliminating the need for forum users to create a separate account with Coppermine.

    The following instructions were gathered from a couple of different sources. Mostly from the docs included in the Coppermine distribution archive and some missing info from the Coppermine support forum. When I first started trying to integrate these two scripts the information I found was helpful, but incomplete. I hope this step-by-step list will help everyone in their efforts to join vBulletin and Coppermine.

    I use a program called TextPad to edit all php files. Don't use Notepad or Wordpad because they sometimes mess up the formatting of php code!

    Use the latest version of Coppermine (At the time this list was written the latest version of Coppermine was 1.3.3)


    #1. Unpack the archive preserving the directory structure (you can rename the Coppermine folder, but not the files or folders within). I have my Coppermine dir in the root along beside the forum dir. In other words, Coppermine in not a subdir of the forum dir.


    #2. Upload all files onto your webserver
    CHMOD 4 folders - 1."ALBUMS", 2."ALBUMS/USERPICS", 3.ALBUMS/EDIT", and 4."INCLUDE" to 777


    #3. Run the install script on your server (http://your_server/coppermine_dir/install.php) and follow the instructions


    #4. During the install proccess you create your Coppermine admin account. Make sure to use the same username and password as your forum admin account.


    #5. Go to your forum "admin control panel / vBulletin options / HTTP Headers and output" and check that the value for "Cookie Domain" corresponds to your domain and that "Path to save cookies" is "/"
    On my board I have path to save cookies / , and cookie domain blank.


    #6. Edit your bridge file, (vbulletin30.inc.php) the one enclosed in Coppermine 1.3.3 all of the following values can be found in your forum/includes/config.php

    There are 7 edits to vbulletin30.inc.php

    //NOTE : Your vBulletin license number is provided at the top of every php file in your vBulletin installation!
    --1--> define('VB_CUST_NO', 'L1234567'); // Your vBulletin license number (NOT your customer number)
    --2--> define('VB_DB_NAME', 'database_name'); // The name of the database used by the board
    define('VB_BD_HOST', 'localhost'); // The name of the database server
    --3--> define('VB_DB_USERNAME', 'database_user'); // The username to use to connect to the database
    --4--? 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/
    --5-->define('VB_WEB_PATH', '/forum/'); The name of your forums directory.
    // ------------------------------------------------------------------------- //
    // Nothing to edit below this line
    // ------------------------------------------------------------------------- //
    // Prefix and names for the database tables
    --6--> define('VB_TABLE_PREFIX', 'vb3_'); // This must match your database prefix in this example it is vb3_
    define('VB_USER_TABLE', 'user'); // The members table
    define('VB_SESSION_TABLE', 'session'); // The sessions table
    define('VB_GROUP_TABLE', 'usergroup'); // The groups table
    --7--> define('VB_COOKIE_PREFIX', 'bb'); // See step #5


    7. Edit the file include/init.inc.php

    // 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');
    // define('UDB_INTEGRATION', 'yabbse');
    // define('UDB_INTEGRATION', 'smf');
    // define('UDB_INTEGRATION', 'woltlab21');
    // define('UDB_INTEGRATION', 'punbb');


    8. Upload the modified files, vbulletin30.inc.php to the Coppermine/bridge dir and init.inc.php to the Coppermine/include dir


    9. Synchronizing the forum groups with Coppermine's groups

    Login to your forum using your admin account. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board.

    Once integrated, Coppermine’s group section will now show your forum’s usergroups and permissions for each usergroup can be set.

    Share This Article

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.