coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: JCphotog on May 22, 2004, 06:34:41 PM

Title: Integration.
Post by: JCphotog on May 22, 2004, 06:34:41 PM
Currently, I have phpBB and Coppermine running on the same domain separately and they are working.   I would like to integrate coppermine.  

The instructions seem very straight forward.  There is a line:

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

What files am I un packing?  Is there some kind of bridge software required to connect the 2 or just the few amendments listed in the manual?  Then again it states:

QuoteUpload all files onto your webserver. Visit your coppermine gallery in your browser. To login as an admin, you will need to use the admin username and password of your board.

What files am I uploading?

Then it mentions:
QuoteThe go to the bridge directory and open the file that corresponds to  the bulletin board you use (eg. phpbb.php).

Would that be index.php in the /phpbb/ directory?

Thanks again for the help!  I will spread the word about how awsome you guys are!
Title: Re: Integration.
Post by: Casper on May 22, 2004, 06:45:45 PM
Quote from: JesseCohen on May 22, 2004, 06:34:41 PM

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

What files am I un packing?  Is there some kind of bridge software required to connect the 2 or just the few amendments listed in the manual?

This means the coppermine package.  The bridge software is in the 'bridge' folder.


Quote from: JesseCohen on May 22, 2004, 06:34:41 PM
Then again it states:

QuoteUpload all files onto your webserver. Visit your coppermine gallery in your browser. To login as an admin, you will need to use the admin username and password of your board.

What files am I uploading?

This is talking about all the coppermine files.  It assumes you are making a new install.  If already installed, ignore this.

Quote from: JesseCohen on May 22, 2004, 06:34:41 PM
Then it mentions:
QuoteThe go to the bridge directory and open the file that corresponds to  the bulletin board you use (eg. phpbb.php).

Would that be index.php in the /phpbb/ directory?


No, there are bridge files for various BBS in the bridge folder, this means open the one corresponding to your BBS, in your case 'phpbb.inc.php'. 

Title: Re: Integration.
Post by: JCphotog on May 22, 2004, 06:55:08 PM
Cool, so there is nothing to upload.  Excellent!  Thanks for the help! 
Title: Re: Integration.
Post by: Casper on May 22, 2004, 07:37:21 PM
well, you will have to upload the ammended bridge file and init.inc.php.
Title: Re: Integration.
Post by: JCphotog on May 23, 2004, 09:26:03 PM
Maybe, I'm missing something, but I don't see that in the instructions.

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

and I see the section about editing the appropriate bridge file ie. phpBB.inc.php

Where does it say to upload int.inc.php and the bridge file?

I was going through the directories, and these files already seem to be there.   int.inc.php and bridge/phpbb.inc.php  

If these need to be updated what files do I need to upload?
Title: Re: Integration.
Post by: Casper on May 24, 2004, 12:40:19 AM
Sorry if I'm not being plain enough.
You have to upload the edited files, i.e., the bridge file and the init.inc.php file, to replace the originals.

It is no good just changing them on your pc, they have to be on the server to work.
Title: Re: Integration.
Post by: JCphotog on May 24, 2004, 01:48:28 AM
I'm sorry if i'm slow! :) Actually, I was talking about the server, The files are currently up there.  In the instrucitions, it mentions editing them, removing the comments, so that the lines would be active.  But i'm not sure about uploading.

Since there is a copy of init.inc.php and phpbbb.inc.php already there(on the server), do I need to replace them with something, or just do the edits mentioned in the manual?

If they need to be replaced, which files do I need to use?

Thank you for the help.  I am really suprised at how avialble tech help has been on open source scripts.  And you guys have been the best!

Quote from: Casper on May 24, 2004, 12:40:19 AM
Sorry if I'm not being plain enough.
You have to upload the edited files, i.e., the bridge file and the init.inc.php file, to replace the originals.

It is no good just changing them on your pc, they have to be on the server to work.

Title: Re: Integration.
Post by: JCphotog on May 24, 2004, 05:36:21 AM
Ah.. I think we're saying the same thing.  Basically, I amend the current 2 files, and then upload them.  Yes yes.  I'll give it a shot.  Plus..  That's what they make back ups for!
Title: Re: Integration.
Post by: JCphotog on May 24, 2004, 06:08:26 AM
All right.  Away from theory, I made the changes, and things worked.  Aside from one small problem.  The redirect isn't working 100 percent.  After I log in, It goes to the BB instead of the gallery.  Here is the redirect file I added.  Any suggestions??

Quote<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://www.artdc.org".$cpg_host.$cpg_path);
exit;
?>

Maybe I screwed something up?
Title: Re: Integration.
Post by: Casper on May 24, 2004, 10:42:23 AM
No, that's just normal.  Remember to put a link to your gallery on the board page, and vice verca.
Title: Re: Integration.
Post by: Nibbler on May 24, 2004, 04:26:01 PM
It should redirect you back to coppermine if you login from coppermine. You can simplify the redirect file if it has problems.


<?php 
header
("Location: http://www.yoursite.com/coppermine"); 
exit; 
?>



and make sure you have it inside your phpbb directory.
Title: Re: Integration.
Post by: JCphotog on May 24, 2004, 06:12:41 PM
Thanks, Strange, I tried using the simplified redirect, and still no dice, it sends you right the BB.  I realize a link in the BB would be an easy solution, but that's a little rough to get redirected to a page that has nothing to do with your log in.  I could tell folks to login to the bb first. It just loses a little functionality.   Do you know if there is a way to add a button on the phpBB that will only show up if you log in? 

Do you think there could be something I screwed up in the mods on the integration?