Repairing someone else's install..... Repairing someone else's install.....
 

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

Repairing someone else's install.....

Started by in2mitsi, September 02, 2005, 08:50:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

in2mitsi

Merging phpbb with Coppermine.

I thought seeing as I had managed to get my own working I could use similar values to get a friends working for him.
Alas not so :(

Standalone the gallery works fine.
As soon as I remove the // from the phpbb line in init.inc then things go pear shaped.

I have changed the following sections........

cpg_redir;
<?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.hissite.com".$cpg_host.$cpg_path);
exit;
?>
   


phpbb.inc;
// database configuration
define('PHPBB_DB_NAME', 'db_name'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'db_username'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'passwordl'); // 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.hissite.com/', 'forums/');
// 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', 'headforu_phpbb'); // 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


I know the above worked on one version, but it doesnt on this one.........where have I gone wrong??

When you upload the init file with the // removed, you can not login.
Clicking login does nothing. It just sits there.........

(Oh and I havent provided a test login because you cant login..........)
Link Here

Joachim Müller

You have modified the wrong sections of your bridge file - I highlighted the stuff that needs changing in red:
Quote// database configuration
define('PHPBB_DB_NAME', 'phpBB'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'root'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'yourmysqlpassword'); // 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', '/phpBB2/');
// 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

Quote from: in2mitsi on September 02, 2005, 08:50:00 AM
(Oh and I havent provided a test login because you cant login..........)
You're suppossed to provide a phpbb test user account - phpbb is still working, isn't it?

in2mitsi

Hey thanks for the reply.........

The parts in red were the bits I changed, obviously I removed the real values to post them here though..........
I changed the real values to ie. db_name to show I had changed them to the correct values in the real file.

The only extra thing I edited, was I changed 'PHPBB_WEB_PATH' to the actual domain name in the hope that it might have gotten it going.

If you would be so kind as to sign up, I can authorise you,  but its an admin approve thing and it doesnt have the admin add user function. :(

Nibbler

define('http://www.hissite.com/', 'forums/');

That is wrong, it should be

define(PHPBB_WEB_PATH, '/forums/');

in2mitsi

Thanks nibbler, but when I put the domain in manually, when you click login it does nothing.

I changed it back to that and now when you click login, it takes you to the forum index........but your not logged into the gallery........

File currently looks like;

// 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', '/forums/');
// 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);

Joachim Müller

Quote from: in2mitsi on September 03, 2005, 02:03:13 AM
If you would be so kind as to sign up, I can authorise you,  but its an admin approve thing and it doesnt have the admin add user function. :(
We won't go through the registration process just to be able to support you for obvious reasons: we would have to sign up on thousands of sites just for support reasons, and we would have to give away our email addresses as well, resulting in even more spam sent to us. Don't make it so hard for us to support you, after all it's a courtesy that we provide free support. Do as suggested and provide a non-admin test user account, as it's you who wants support, not us. You can savely disable the test user account once everything is set up and running.