little info plz on phpbb little info plz on phpbb
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

little info plz on phpbb

Started by n1^, August 17, 2004, 10:05:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

n1^

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

n1^

i cant login to my phpbb admin board anymore.

Joachim Müller

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

n1^

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.

photoman13

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 :)

n1^

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.

Nibbler

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

Joachim Müller

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

EZ

#8
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.