PDA

View Full Version : Coppermine photo gallery integration


croft
06-22-2003, 11:20 PM
Is there anyone that have been working on this gallery for integration in vb ?
http://www.chezgreg.net/coppermine/

Well if there is can you please reply or if anyone is planning on doing it ?

gmarik
06-24-2003, 11:46 AM
Oh, it's really avery good free gallery,
but I think it would make more sence to integrate PhotoPost in a better way. Still,

A great idea, croft.

fastlaneweb
06-24-2003, 06:02 PM
I would like to see this hack as well. I use coppermine photo gallery as a seperate install, but would like to find a way to intergrate it.

___________________
Bradley Green
http://www.laserforum.org

Blackangel
07-06-2003, 03:27 PM
Download the dev version.

http://www.chezgreg.net/coppermine/mod.php?mod=downloads&op=viewdownload&cid=7

and read the readme.html

ANT.menmusic
08-21-2003, 02:56 PM
i was gonna purchase Photopost Pro, but let me see how the Coppermine dev works integrated into my forum first...i've already spent lots of money on vBulletin and the brand free license.
if that doesnt work, then maybe i can get the company to pay for it. we'll see.
thanks for the link, Blackangel!
-ant

croft
08-22-2003, 12:57 AM
The coppermine works exelent with vbulletin =)
But i updated to vb3 beta 5 and now its not.
Is there anyone that has gotten coppermine to work with vb3 yet ?

ANT.menmusic
08-22-2003, 03:48 AM
Yesterday at 09:57 PM croft said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=427799#post427799)
The coppermine works exelent with vbulletin =)
...
i have 2 questions:

Are people still able to view the pictures if they're not logged in? I didn't see this option when configuring the usergroups.
my vBulletin images seem broken? do i have to install it in the same directory as vBulletin in order for that to work?


-ant.

croft
08-22-2003, 10:20 AM
No not the same directory.
it should be like this.
www.yourdomain.com/forum
www.yourdomain.com/gallery

That should do it.
be sure to check the cookie path and name.

You need the dev version of coppermine to get it to work with vbulletin.

Integrating the script with your bulletin board
Coppermine can be integrated with the following bulletin boards (eg. Coppermine and your bulletin board will share the same user database)

phpBB 2
Invision Power Board
vBulletin
The login integration use your bulletin board cookies, therefore it won't work if your board cookies are not visible by Coppermine. So unless you are an expert, keep things simple and install Coppermine and your bulletin board on the same domain. Example :

Bulletin board:http://yourdomain.com/board/
Coppermine:http://yourdomain.com/gallery/
If you are using phpBB 2, go to the admin control panel and check that "Cookie domain" corresponds to your domain, "Cookie name" is "phpbb2mysql" and "Cookie path" is "/".

If you are using Invision Power Board, go to the "admin control panel / board settings / cookies" and check that all fields are blank. If they are not, you modified the default values and you are an expert.

If you are using vBulletin, go to the "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 "/"

It is also recommended that you use the same database for your board and Coppermine.

You will also need to perform the following operations after having unpacked the archive on your harddrive and before uploading the files to your webserver :

Edit the file include/init.inc.php. At the beginning of the file you will find the following lines :

// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin');Un-comment the line that corresponds to the bulletin board you use (eg. remove the "//" that are at the beginning of the line)

define('UDB_INTEGRATION', 'phpbb');The go to the bridge directory and open the file that corresponds to the bulletin board you use (eg. phpbb.php).

At the beginning of the file there are a number a configuration values that need to be set. For phpBB they are the following :

// database configuration
define('PHPBB_DB_NAME','phpBB'); // The name of the database used by the board
define('PHPBB_BD_HOST','localhost'); // The name of the database server
define('PHPBB_DB_USERNAME','root'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD',''); // The password to use to connect to the database

// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH','/phpBB2/');Modify them according to the configuration of your board and save the file.

Upload all files onto your webserver and run the install script. Note that the admin username and password you enter during the installation will be ignored by the script. To login as an admin, you will need to use the admin username and password of your board.

Once you have completed the installation, login using the admin account of your board. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board. The permission you will see for each group will be completely messy, so take some time to set them properly.

Each time you add or delete a group in your board you will need to do the operation above in order to keep the synchronisation of the groups.

When you will try to login / logout or manage users from Coppermine, you will be redirected to the corresponding page of your bulletin board. Once the login or logout is performed you won't be redirected automatically to the gallery because your board does not have any function for that. It's up to you to add a link on your board to get you back to the gallery.

croft
08-22-2003, 02:19 PM
Here is a complete fix to use the same userdatabase for vbulletin 3 beta 5 and coppermine dev version.

Posted by Hawkin over at coppermine main forum.

In vbulletin.inc.php:

$bbpassword = isset($HTTP_COOKIE_VARS['bbpassword']) ? $HTTP_COOKIE_VARS['bbpassword'] : '';

to:

// $bbpassword = isset($HTTP_COOKIE_VARS['bbpassword']) ? $HTTP_COOKIE_VARS['bbpassword'] : '';

(this for forcing coppermine to use sessionhash instead of the new md5 password)

Then change the sessionhas query abit:

" AND useragent='".addslashes($HTTP_USER_AGENT)."'";

to:

"";

(seems like the HTTP_USER_AGENT gets cut off here, so when I took that away, the query gave back a result.


I know this is far from a nice or good fix. But at least I got successfully recognized as the user logged allready logged in, in vbulletin 3.

ANT.menmusic
08-24-2003, 08:34 PM
well - everything is workin fine.... thanks croft for makiing me aware of the dev version.

my only concern is that when i close my board, i would like for visitors to get the same error reporting when they attempt to enter the photo gallery... gonna have to look into that if that's at all possible.

other than that, it's great!

-ant.

ricoche
08-28-2003, 03:22 AM
Regarding Coppermine dev.

Has anyone had any success with including recent uploaded or random images on the forum homepage in vbulletin 3.0 beta 5? I've been all over the place today reading all the coppermine forum posts, but it doesn't look like it's been done yet.

I found the ssi.php file and have been working on that. I can get the images to show when editing my php files, but I can't get the setup integrated in with the HTML.

Thanks,

Ricoche

croft
08-28-2003, 08:58 AM
I had to end up using iframs to add them to the forum =(