Since the bridgescript that comes with Coppermine 1.4.2 for vBulletin doesn't work at all I started digging in the script and corrected it to finally work.
While I was at it I also added support for the vBulletin 3.5.x branch
Installation:
Easy!
Just upload the "vbulletin30.inc.php" from this archive into your Coppermine's bridge folder while OVERWRITING the existing one.
You can then launch the bridgemanager (http:/www.yourdomain.tld/gallery/bridgemgr.php) and set everthing up.
That should have done it.
If you followed all the instructions from the manual and the bridgemanager you should now have a fine working Coppermine with your vBulletin.
I tested this myself on my own forums with the following setups:
Ugh, for me, everything works fine until it asks for the relative forum url. I entered ../Forum/ as the relative and http://www.themotec.com/Forum as the forum URL, yet I get an error saying that the config cannot be found, and it actually shows the correct path...why is this
I have two problems with coppermine bridge. I tried this file and the bridge file included in 1.4.6.
1. Everytime I try to log out of coppermine, I get this error message:
An error occurred while attempting to log you out. Click here to log out.
This problem has been mentioned before, but there has been no solution. Hellcat thinks that cookie hash is not given on the logout url. Does nobody know a fix?
Nibbler, a coppermine developer, said this: It may not be possible to obtain the logout hash externally. You'd need to look through the code and determine how it is implemented. Can this be integrated into the bridge?
2. It looks like you are not redirected to coppermine after logging in and that you are redirected to the forum after logging out (from coppermine). The phpbb bridge is better. You are redirected to the gallery after login and after logout, too.
Can this be improved?
GauGau, another coppermine developer, said this:
This is by design of the bbs app you use (in your case vb). Some bbs apps support redirect after login (e.g. phpbb or smf), some don't. Those that don't support it should indeed have a button in the forum navigation that can send the user back to coppermine. This is by design and can hardly be changed by coppermine coders.
I was trying to restrict pic view for guests. They should only be able to see the thumbnail, but not the actual picture. This is the solution for it:
Edit displayimage.php and add
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before
/************************************************** ************************
* Local functions definition
************************************************** ************************/