coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: elfprince13 on December 02, 2005, 01:06:44 AM

Title: Integrating with phpbb 2.15 help
Post by: elfprince13 on December 02, 2005, 01:06:44 AM
After dutifully following all the instructions in the documentation tht came with my download of Coppermine,  for integrating, I go to my gallery and all I get is a blank screen. If i recomment the line that switches on integration it works fine, but once I try to integrate it goes blank. No error messages, just an empty page
Title: Re: Integrating with phpbb 2.15 help
Post by: Nibbler on December 02, 2005, 01:25:02 AM
http://forum.coppermine-gallery.net/index.php?topic=17684.0
Title: Re: Integrating with phpbb 2.15 help
Post by: elfprince13 on December 02, 2005, 01:32:27 AM
the forum is here http://rancidmoose.unitedti.org/forum (http://rancidmoose.unitedti.org/forum)

the gallery is here http://rancidmoose.unitedti.org/gallery (http://rancidmoose.unitedti.org/gallery)

here are the files

cpg_redir.php

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


phpbb.inc.php

  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', 'uti_rancidmoose'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '*********); // 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', '/forum/');
// 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



init.inc.php



define('COPPERMINE_VERSION', '1.3.5');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');



-------------------

I only pasted in the lines I changed.

test account test, password test
Title: Re: Integrating with phpbb 2.15 help
Post by: Nibbler on December 02, 2005, 01:35:07 AM
define('PHPBB_DB_USERNAME', '*********);

Did you miss the ' at the end of the username you entered ?
Title: Re: Integrating with phpbb 2.15 help
Post by: elfprince13 on December 02, 2005, 01:37:55 AM
thank you so much! that was it...I love having other people read my code....you guys are great
Title: whoops.....
Post by: elfprince13 on December 02, 2005, 01:47:14 AM
Sorry about this....anyway my gallery shows up fine, but then after I login, it redirects me to the forum, and then when I go back to the gallery it says Im not logged in. sorry for all the questions and thanks for the help with my last one...test account and password are still the same
Title: Re: whoops.....
Post by: Nibbler on December 02, 2005, 02:04:24 AM
Works fine for me.
Title: Re: Integrating with phpbb 2.15 help
Post by: elfprince13 on December 02, 2005, 02:11:44 AM
are you clicking the link in phpbb or Coppermine.? im using the coppermine link, and it when Im in Coppermine it shows that Im not in logged in, but from phpbb it shows that I am, I tried with both my admin account and the test account


Edit
====
its not working from either page.....
Title: Re: Integrating with phpbb 2.15 help
Post by: Joachim Müller on December 02, 2005, 09:05:27 AM
works fine for me as well. This is probably related to settings on your local client. Check your browser's privacy settings, and temporarily disable any security apps like "Norton Internet Security" that might be running on your PC.
Title: Re: Integrating with phpbb 2.15 help
Post by: elfprince13 on December 02, 2005, 10:44:02 PM
ummm.....I'm using Safari, and I have Mac OS X. And it redirects me and shows that Im logged in at forum, just not at the gallery, Anyway Ill try tonight at the school during Tech Club and see if it works then