coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: theweeeman on October 09, 2005, 01:26:44 PM

Title: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 01:26:44 PM
 ???please, im new to this, had my forum running for the past six months with no trouble, then had an idea to add the coppermine gallery! The first time i bridged them i couldnt get the redirection on log out from coppermine. After working through the night i lost the forum and had to reinstall from scratch! ???

Now every time i start the bridge steps from scratch nothing happens! I have cookie settings correct in browser, all server info is correct ie, data base name, host name, etc.

so could you confirm the correct steps and in particular the cpg_redir.php details, cos they really fox me.
i can send all info for site to you or whoever offers help by email or pm, and would be honestly gratefull for ant help you can offer, Thanx

www.madaboutbiking.co.uk/phpbb2 (http://www.madaboutbiking.co.uk/phpbb2)  my forum

www.madaboutbiking.co.uk/cgp135 (http://www.madaboutbiking.co.uk/cgp135) my gallery

msql server

with gd enabled

both forum and gallery on same database. I have all relavant passwords and usernames too!
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 01:48:49 PM
recheck the links you posted
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 01:56:54 PM
http://madaboutbiking.co.uk/phpBB2/

http://www.madaboutbiking.co.uk/cpg135/index.php

sorry
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 01:59:15 PM
I should have posted this also ;)
http://forum.coppermine-gallery.net/index.php?topic=17684.0
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 02:30:35 PM
test acount for forum and gallery is : username...........test.....password....tester

I have tried various hacks that have been listed in these support forums and im sure im doing something wrong!




and here is the cpg_redir.php...............................................


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




Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 02:31:45 PM
heres the bridge file from cpg....

<?php
/*************************
 Coppermine Photo Gallery
 ************************
 Copyright (c) 2003-2005 Coppermine Dev Team
 v1.1 originaly written by Gregory DEMAR

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 ********************************************
 Coppermine version: 1.3.5
 $Source: /cvsroot/coppermine/stable/bridge/phpbb.inc.php,v $
 $Revision: 1.13 $
 $Author: gaugau $
 $Date: 2005/09/24 16:31:32 $
**********************************************/

// ------------------------------------------------------------------------- //
// phpBB2 Integration for Coppermine                                         //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('PHPBB_DB_NAME', 'madaboutbikingdb'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'madaboutbiking'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '************'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', 'www.madaboutbiking.co.uk/phpBB2/');
define('PHPBB_LOGOUT_GET', TRUE);
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 02:40:56 PM
you've edited init.inc.php und uncommented (removed the //) before define('UDB_INTEGRATION', 'phpbb');??
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 02:48:34 PM
yup, i have, done that too! and i have set the permissions to the relevant files to 0777 ;D
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 02:59:52 PM
if you've changed the cookie name in phpbb admin then this has to be changed in the bridgefile too
cookie path in phpbb should be set to /
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 03:08:23 PM
it has always been set to / :-\\ ive checked and double checked the cookie setings, and im 99% sure their correct. lol
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 03:27:29 PM
If I click on login on coppermine I don't get redirected to phpbb login page. This usually means you haven't uncommented define('UDB_INTEGRATION', 'phpbb'); in init.inc.php. Either that or you've uploaded a modified version but not into the include dir. To make sure open a ftp connection, browse to include/init.inc.php and view the file
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 03:55:38 PM
ok cheers! checked that, and found the file i had on my h,disc didnt match the one in my public_html . can you just explain this now, cos its really lost me! check out the link now! ???

http://www.madaboutbiking.co.uk/cpg135/index.php
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 04:27:02 PM
ok so now its doin half its job! but whats the string of text above my photo gallery???? ???
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 04:46:53 PM
Now, im off to phpbb support to tell em how crap they are there, you lot are gods!!!!!!. It took me all of two nights workin on this and in one afternoon its sorted ..... ;D ;D ;D ;Dcheers Stramm you were cool, thanx for ya time mate, the string of errors was all in the bridge file, and yes i hadnt uploaded the redirection file properly. I do like when support really works, and really appreciate all your help matey!!!!!!!!!!

mark this as done!!!!!! nice 1 ;D
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 04:50:48 PM
;) thanks
just wanted to ask you for your FTP info... but this way I like it more
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 06:46:50 PM
Well i was happy til i realised i cant log in now to the gallery? can someone test it from another location??????
my gallery link is posted earlier and the username is .......test........ and password ..........tester...... just cant get into gallery now and before that it wasnt redirecting after log out from gallery???? im lost now lol :-\\
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 09, 2005, 06:56:02 PM
if you hurry up and PM me the FTP details I'll have a look. Will be offline in a few though
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 07:03:09 PM
ok on way
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 09, 2005, 08:55:09 PM
 Well thanx so far for your help, its still the same, i cant log in to the gallery, It takes me to php login, then i go to the forum page and click on the link for my album, and i end up back at the previous forum page. to witch im already logged into. Sorta round im circles really!

I cant find no one to test to see if it happens on another pc, and have checked my cookie settings on board, and browser but to no joy. Cant check gallery setings cos i cant log in, seem to be locked out somehow or redirection is wrong! ???. off to bed now, might see how you get on with it now!

May even decide to scrap gallery if its this hard lol. let me know your thoughts, and thankyou again for your help so far. Hope the details i pm to you were enough.
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: Stramm on October 10, 2005, 12:15:12 AM
hahaha
what have I said? min 3 times if not 4? Make sure the cookie prefix is the same in phpbb admin and in the bridge file
in phpbb it was set to phpbb2/mysql and in the bridge to phpbb2mysql

I've changed it it phpbb. If that's not in your interest... now you know what to do. The cpg_redir.php is working now too. I had prepared it already for you so there was no need to edit it. Just uploading would have done

Good luck and have fun with the gallery
Title: Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
Post by: theweeeman on October 10, 2005, 09:09:55 AM
 :D ;D ;D ;Dyour a star chap!   thanx for ya help, couldnt believe how quick you were there.   Cheers again. ;D