2005-07-05, 04:12 AM
I have the Cheek to call this a MOD because MyBB-RC4 has to be modified for it to work.
I have used this procedure twice, and it works fine for me and works as expected.
There is NO Guarantee it will work on your particular configuration........... You install it using this procedure at your own risk. If you have any doubt, then consult the Coppermine Manual, as this is simply an abridged version of instructions for MyBB-RC4 & MySQL that suits my application.
And like Coppermine who repeat their instructions in RED to emphasize them.
YOU SHOULD USE YOUR MyBB ADMIN NAME AND PASSWORD WITH COPPERMINE ALSO! (Am I Serious..?? YES)
Coppermine uses two cookies, the names must be different, the paths must be the same.
Go to: MyBB Admin CP > Board Settings > Change > General Configuration >
1. Cookie Domain: and change to .yourdomain.com (Your url and note the DOT in front).
2. Cookie Path: and change to / (root)
Upload Coppermine .zip file to the public dir on the server and extract it there.
Create in Coppermine Dir/albums/uploads dir.
CHMOD to 777 (You may need to make this 755 depending on your server setup)
/albums
/albums/userpics
/albums/uploads
/albums/edit
/include
** BACKUP YOUR MYBB DATABASE ** (You will also need to know what the Names & Password are, for entering into Coppermine)
In a browser go to: http://yourdomain.com/coppermine_folder/install.php
Fill in User Name / Password / Email etc. (Good idea to use the same ADMIN NAME & PASSWORD as your MyBB otherwise you WILL run into problems once it's bridged)
MySQL Config:
Database Name: Same as MyBB.
Database Username: Same as MyBB.
Database Password: Same as MyBB.
Table Prefix: Leave as cpg140.
After coupling the database, Click Login, and log into Coppermine.
Bridging:
As Admin, Click Admin Tools, scroll to the bottom and Click Bridge Manager.
Click Start bridging wizard > MyBB RC4 Radio Button > Next.
Forum URL: Enter your URL path to your forums (No forward slash on the end).
Relative Path: should be ../your forum folder name/inc/ (ADD the forward slash to the end).
BBS Specific Settings: I chose NO to make it easier at this stage.. (You can always change it later).
Click Next > Click the 'Enable' radio button > finish.
The next option screen is to enable / disable the Bridging Wizard. You have already installed it... DO NOT use this function unless you are going to disable the bridge.
You have also now 'LOCKED' Coppermine to the Forum (MyBB) and cannot access it from the web.
Go to: MyBB Admin > Templates > Modify / Delete > and add or insert this line (Changing 'yourwebsite and yourcoppermine-folder' to suit) to these three Templates :
toplinks * toplinks_admin * toplinks_member
<li><a href="http://www.yourwebsite.com/yourcoppermine-folder/index.php">Gallery</a></li>
Go to: Your Forums and Click Gallery.. It will take you to Coppermine where you will have to log in.. This will take you back to the Forum to login, as 'Cookies' have not been established yet.
Sign into the forum using your Admin Name (The same as you entered in Coppermine Admin) and re-click the Gallery Link.. you should now be Admin at Coppermine.
One more thing to do........
As Admin, Click "Groups" and Apply Modifications, Even if you don't change any. (this is supposed to synchronise the database).
Now all you need to do is to set up Coppermine for access / permissions / limits etc.
And that's it... Easy! isn't it ??