problems with phpbb intergration problems with phpbb intergration
 

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

problems with phpbb intergration

Started by killyouall, November 16, 2005, 04:45:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

killyouall

Parse error: parse error, unexpected T_STRING in /home/norma68q/public_html/gallery/bridge/phpbb.inc.php on line 36
i keep getting this error

i changed the pass so dont ask bout that
<?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.3

  $Source: /cvsroot/coppermine/stable/bridge/phpbb.inc.php,v $

  $Revision: 1.11 $

  $Author: gaugau $

  $Date: 2005/04/19 03:17:13 $

**********************************************/



// ------------------------------------------------------------------------- //

// phpBB2 Integration for Coppermine                                         //

// ------------------------------------------------------------------------- //

// Modify the values below according to your Board installation              //

// ------------------------------------------------------------------------- //



// database configuration

define('PHPBB_DB_NAME''phpBB'); // norma68q_phpbb3

define('PHPBB_BD_HOST''localhost'); // norma68q_phpbb3

define('PHPBB_DB_USERNAME''root'); // norma68q_phpbb3

define('PHPBB_DB_PASSWORD'''); // fuzzy wazzy



// The web path to your phpBB directory

'http://normalobession.profusehost.net/forum/index.php'

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


this is what my server gives me to work with

Users in phpbb3
norma68q_phpbb3 (Privileges: ALL PRIVILEGES)

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:norma68q_phpbb3:localhost","norma68q_phpbb3","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "norma68q_phpbb3", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("norma68q_phpbb3"); 


Nibbler

You are editing the wrong bit (still).

Take this line as an example:

define('PHPBB_DB_PASSWORD', ''); // The password to use to connect to the database

If your db password was mypass, then that line would read

define('PHPBB_DB_PASSWORD', 'mypass'); // The password to use to connect to the database

Also: Make your edits with a simple text editor.

killyouall