Integration. Integration.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Integration.

Started by JCphotog, May 22, 2004, 06:34:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JCphotog

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!

Casper

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'. 

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JCphotog

Cool, so there is nothing to upload.  Excellent!  Thanks for the help! 

Casper

well, you will have to upload the ammended bridge file and init.inc.php.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JCphotog

#4
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?

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JCphotog

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.


JCphotog

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!

JCphotog

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?

Casper

No, that's just normal.  Remember to put a link to your gallery on the board page, and vice verca.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

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.

JCphotog

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?