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] 2   Go Down

Author Topic: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!  (Read 14314 times)

0 Members and 1 Guest are viewing this topic.

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« 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  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!
« Last Edit: October 10, 2005, 12:16:55 am by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #1 on: October 09, 2005, 01:48:49 pm »

recheck the links you posted

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #3 on: October 09, 2005, 01:59:15 pm »

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #4 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;
?>




Logged

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #5 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
// ------------------------------------------------------------------------- //
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #6 on: October 09, 2005, 02:40:56 pm »

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

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #7 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #8 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 /

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #9 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #10 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

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #11 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
Logged

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #12 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???? ???
Logged

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #13 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #14 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

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #15 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 :-\\
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #16 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

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #17 on: October 09, 2005, 07:03:09 pm »

ok on way
Logged

theweeeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #18 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.
« Last Edit: October 09, 2005, 11:34:38 pm by theweeeman »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: intergration of phpbb2 and cpg1.3.5 HELP PLEASE ANYONE!!
« Reply #19 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
Pages: [1] 2   Go Up
 

Page created in 0.08 seconds with 20 queries.