coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: g13Nio on March 07, 2004, 06:43:24 PM

Title: how i can user coppermine with phpbb?
Post by: g13Nio on March 07, 2004, 06:43:24 PM
i want to use coppermine for my phpbb forum,
i want my phpbb users have the same user on the coppermine,
is it that imposibol?
and if yes how?
Title: how i can user coppermine with phpbb?
Post by: Casper on March 07, 2004, 08:41:54 PM
Yes you can.  The instructions are in the readme, in the docs folder of your cpg download.

Also see, and read thoroughly these threads;

http://forum.coppermine-gallery.net/index.php?topic=1841
http://forum.coppermine-gallery.net/index.php?topic=2972
Title: how i can user coppermine with phpbb?
Post by: g13Nio on March 08, 2004, 03:46:41 PM
i have my phpbb in www.mysite.com/index.php this is my phpbb index
and i have www.mysite.com/photosonline

then cpg_redir.php is at www.mysite.com/index.php ?

and what i must write on this:

<?php 
$cpg_host
=$_SERVER['HTTP_HOST'&#93;; 
$cpg_path='/gallery'
header&#40;"Location&#58; http&#58;//".$cpg_host.$cpg_path&#41;; 
exit; 
?>


i want i must write to this:


// HTML code for login/logout redirection
DEFINE("REDIR1",'<HTML><BODY onLoad="document.redir.submit();"><FORM NAME="redir" METHOD="post" ACTION="');
DEFINE("REDIR2",'login.php');
DEFINE("REDIR3",'?redirect=cpg_redir.php"><INPUT TYPE="hidden" NAME="redirect" VALUE="cpg_redir.php"></FORM></BODY></HTML>');
// Login
function udb_login_page()
{
echo(REDIR1.PHPBB_WEB_PATH.REDIR2.REDIR3);
exit();
}
// Logout
function udb_logout_page()
{
echo(REDIR1.PHPBB_WEB_PATH.REDIR2.'?logout=true'.REDIR3);
exit();
}


thnx.. :roll:
Title: how i can user coppermine with phpbb?
Post by: Joachim Müller on March 08, 2004, 07:31:06 PM
read the threads that deal with phpBB integration (casper already pointed you into this direction) thoroughly. Read them again. Then read the postings of EZ once more, aloud. If you still can't figure out what to do, reply on the threads that already deal with the problem, instead of replying to this very thread...

GauGau