coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: n1^ on August 17, 2004, 10:05:19 AM

Title: little info plz on phpbb
Post by: n1^ on August 17, 2004, 10:05:19 AM
ok i have phpbb installed and working.

gotlan.net/forum

and i also have the gallery working fine

gotlan.net/gallery

ok i started to follow the steps here: http://coppermine.sourceforge.net/manual.php#integrating

when i get to the part

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


i dont get the format in whitch u use.

im sry maybe it just being really late 1 am Cali. thx for your input
Title: Re: little info plz on phpbb
Post by: n1^ on August 17, 2004, 10:36:00 AM
i cant login to my phpbb admin board anymore.
Title: Re: little info plz on phpbb
Post by: Joachim Müller on August 17, 2004, 01:53:32 PM
Forget about the redirector for a moment - you haven't even configured your bridge file correctly (or not at all). If you can't log in to your forum, you will have to look for support on your forum's support board (phpbb in your case), since coppermine integration doesn't change anything on your bbs, it doesn't touch the bbs install.
When asking for support on integration, it is most helpfull to post real links (with http:// in front of it, so they are clickable), a test user account and the stuff you changed in the bridge file (replace password with asterisks for security reasons).
I recommend taking another look into the integration guide and to follow it step by step. Do not skip a step!

GauGau
Title: Re: little info plz on phpbb
Post by: n1^ on August 18, 2004, 05:02:59 PM
well thats the thing i did edit the bridge/phpbb.inc.php via ftp

i just dont get what it mean for that code i posted ie:

header("Location: http://".$cpg_host.$cpg_path);

i dont get the format ""http://".$cpg_host.$cpg_path""  i read them over and over  i having a block, can some1 post there example.

http://gotlan.net/forum/ <-- forum

http://gotlan.net/gallery/  <-- gallery

i would make a test accout but i cant login to the admin accout. and i can logout of my accout.
Title: Re: little info plz on phpbb
Post by: photoman13 on August 18, 2004, 09:32:12 PM
why not use the bridge supplied with coppermine. Allyou have to do is add your mySQL forum info into one file.. and change copy/paste into a file for login/out purposes to re0direct back to coppermine, if using coppermine to log in.

Seemed rather easy for me :)
Title: Re: little info plz on phpbb
Post by: n1^ on August 18, 2004, 10:51:38 PM
umm yes i did do that can some1 post there config where i code i posted??

ie again....

header("Location: http://".$cpg_host.$cpg_path);

thats the only part i dont get  the mysql is fine that works the groups moved over fine,  but can some 1 post how they did that part of the code.
Title: Re: little info plz on phpbb
Post by: Nibbler on August 18, 2004, 11:09:09 PM
You can leave that file exactly as it is, your gallery is installed in /gallery
Title: Re: little info plz on phpbb
Post by: Joachim Müller on August 19, 2004, 08:44:29 AM
Like I said before: edit your bridge file accordingly. I recommend you re-read the entire integration section in the docs: http://coppermine.sourceforge.net/manual.php#integrating

GauGau
Title: Re: little info plz on phpbb
Post by: EZ on August 21, 2004, 05:02:16 PM
Quote from: NexGen^MarK on August 18, 2004, 10:51:38 PM
ie again....
header("Location: http://".$cpg_host.$cpg_path);
thats the only part i dont get...

Although this forum is for Coppermine support not PHP tutoring:

That line triggers a browser redirect to the given URL. The function header(...) is a PHP funcition that sends an HTTP header to browser. The syntax of the parameter is standard string concatenation in PHP, ie. the string "Location: http://" + the contents of the variable $cpg_host + the contents of the variable $cpg_path. For more information please see PHP documentation.

Regardless of your understanding of how it works and why - it works. As Nibbler already wrote the default cpg_redir.php file is good for your configuration and you don't need to touch it.

If something still doesn't work please post FULL information about your setup as GauGau suggested.

EZ.