coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: synyn on July 28, 2005, 11:22:50 AM

Title: CPG 1.3.3 with phpbb bridge parse error
Post by: synyn on July 28, 2005, 11:22:50 AM
Well im really new to this coppermine intergration deal but i seeme to figure a lot of it out on my own. i got the init.inc.php and cpg_redir.php files configure i think, but im having trouble with the bridge file phpbb.inc.php for a phpbb forum.  Both the gallery and forum exist on the same server but i seem to get some kind of a parse error.  Parse error: parse error, unexpected T_STRING in /home/tonybobd/public_html/synergy/gallery/bridge/phpbb.inc.php on line 40

Any help???

The parse error that points to line 40 on the bridge file indeicates the FALSE/TRUE command for if the version of phpbb is old or new.  

This is line 40 on phpbb.inc.php
define('PHPBB_LOGOUT_GET', FALSE);

The link to the gallery is...  http://www.tonybobdesign.com/synergy/gallery
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: Nibbler on July 28, 2005, 04:06:33 PM
Can you post the whole top section of the file, all the bits you have modified ?
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: synyn on July 28, 2005, 06:47:09 PM
sure can...

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

// database configuration
define('PHPBB_DB_NAME', 'tonybobd_phpbb3'); // 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('http://www.tonybobdesign.com, '/synforum/');
// 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', FALSE);


im not sure about the url to my message board which is at http://www.tonybobdesign.com/synforum/ umm and thats about it, the login information is are correct other then the stars taht i just added!
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: synyn on July 28, 2005, 06:50:10 PM
sure here you go...

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

// database configuration
define('PHPBB_DB_NAME', 'tonybobd_phpbb3'); // 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('http://www.tonybobdesign.com, '/synforum/');
// 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', FALSE);


I wasnt sure about the url to my message board as well i didnt know if i had to have the full liknke the the '/synforum/' after the full link such as http://www.tonybobdesign.com/synforum/
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: kegobeer on July 28, 2005, 06:53:39 PM
define('PHPBB_WEB_PATH', '/synforum/');
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: synyn on July 28, 2005, 07:10:16 PM
awsome, it seemed to work now but now the only thing i have questions is on is that its not integrated into thte forum at all its just like the stand alone section maybe the redirect php files is wrong or something..this is what i have...

?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://www.tonybobdesign.com/synergy".$cpg_host.$cpg_path);
exit;
?>


the link to the gallery is as follows http://www.tonybobdeisgn.com/synergy/gallery/

do i have this file correct because the forum and gallery are on the samer server so i only need to define the path to the gallery.
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: kegobeer on July 28, 2005, 07:23:53 PM
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/synergy';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: kegobeer on July 28, 2005, 07:26:31 PM
Coppermine is still a standalone application - bridging tells Coppermine to use your phpBB user table instead of its own.  If you want Coppermine to look like your bbs, you have to make a theme for Coppermine.
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: synyn on July 28, 2005, 08:05:39 PM
is it possible u can point me to a site that can showme how to make a theme including the forum navigation links that correspond with the forum as well as the header and footer. 
Title: Re: CPG 1.3.3 with phpbb bridge parse error
Post by: kegobeer on July 28, 2005, 08:13:35 PM
You can start off by reading the documentation, reading the FAQ, and checking out the themes board.