CPG 1.3.3 with phpbb bridge parse error CPG 1.3.3 with phpbb bridge parse error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CPG 1.3.3 with phpbb bridge parse error

Started by synyn, July 28, 2005, 11:22:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

synyn

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

Nibbler

Can you post the whole top section of the file, all the bits you have modified ?

synyn

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!

synyn

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/

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

synyn

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.

kegobeer

<?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;
?>
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

synyn

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. 

kegobeer

You can start off by reading the documentation, reading the FAQ, and checking out the themes board.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots