intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!! intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
 

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]

Main Menu

intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!

Started by theweeeman, October 09, 2005, 01:26:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theweeeman

 ???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  my forum

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!

Stramm




theweeeman

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;
?>





theweeeman

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
// ------------------------------------------------------------------------- //

Stramm

you've edited init.inc.php und uncommented (removed the //) before define('UDB_INTEGRATION', 'phpbb');??

theweeeman

yup, i have, done that too! and i have set the permissions to the relevant files to 0777 ;D

Stramm

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 /

theweeeman

it has always been set to / :-\\ ive checked and double checked the cookie setings, and im 99% sure their correct. lol

Stramm

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

theweeeman

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

theweeeman

ok so now its doin half its job! but whats the string of text above my photo gallery???? ???

theweeeman

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

Stramm

;) thanks
just wanted to ask you for your FTP info... but this way I like it more

theweeeman

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

Stramm

if you hurry up and PM me the FTP details I'll have a look. Will be offline in a few though


theweeeman

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

Stramm

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