Advanced search  

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]

Pages: [1]   Go Down

Author Topic: little info plz on phpbb  (Read 4935 times)

0 Members and 1 Guest are viewing this topic.

n1^

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
little info plz on phpbb
« 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

Code: [Select]
<?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
Logged

n1^

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: little info plz on phpbb
« Reply #1 on: August 17, 2004, 10:36:00 am »

i cant login to my phpbb admin board anymore.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: little info plz on phpbb
« Reply #2 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
Logged

n1^

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: little info plz on phpbb
« Reply #3 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:

Code: [Select]
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.
Logged

photoman13

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
Re: little info plz on phpbb
« Reply #4 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 :)
Logged

n1^

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: little info plz on phpbb
« Reply #5 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.
Logged

Nibbler

  • Guest
Re: little info plz on phpbb
« Reply #6 on: August 18, 2004, 11:09:09 pm »

You can leave that file exactly as it is, your gallery is installed in /gallery
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: little info plz on phpbb
« Reply #7 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
Logged

EZ

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 130
Re: little info plz on phpbb
« Reply #8 on: August 21, 2004, 05:02:16 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.
« Last Edit: August 21, 2004, 11:25:39 pm by GauGau »
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.