Post phpBB2 Integration; strange redirects via Memberlist Post phpBB2 Integration; strange redirects via Memberlist
 

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

Post phpBB2 Integration; strange redirects via Memberlist

Started by stardotstar, January 02, 2005, 03:01:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stardotstar

Hi all, It seems that I have a wierd redirection thing going on, much reading on these problems has left me at a loss.  Does not seem cookie related or path definition.

My cpg132 is at:

http://www.archeli.com/cpg132/index.php

there is a user: coppermine pass:cpg which I created using the register redirection and it all worked fine, as does the profile page redirection to phpBB2 which is at:

http://www.archeli.com/phpBB2/index.php

So the general path statememts must be ok.  The cookies seem to be ok too.  The problem occurs in two destinct ways:

1)  When I am logged in as my admin (phpBB2) account and I select Memberlist from either admin or user mode I get a page unavailable at:

http://www.archeli.com/cpg132/usermgr.php
QuoteThe page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

The file is there in fact.

2)  When logged in as a regular member (ie coppermine) and I select Memberlist it tries to redirect to the admin/index.php of the phpBB2 board instead of the memberlist as it should... 

http://www.archeli.com/phpBB2/admin/index.php

QuoteInformation
You are not authorised to administer this board
as it should

Or am I missing something here?

Why would my admin account not process a redirect via this link at all but a standard member gets an inappropriate page??

I'm not much of a php coder but I am learning and am confident that most of the integration was done correctly.

Any help appreciated.

TIA

Will.*

Supporting code:

// database configuration
define('PHPBB_DB_NAME', 'archeli_mysql'); // 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', '/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


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


phpBB2.0.5 cookie settings;
Cookie domain  : blank
Cookie name  : phpbb2mysql
Cookie path  : /
\x\\\\_

stardotstar

Another thing is not working properly (predictably);

When I'm logged in as admin and in admin mode I cannot manage users - I get the page not available issue.

I am wondering how a standard level user or even moderator from the forum could be added to the administrator group on cpg.

Can anyone halp with the issues in this thread please?

TIA

Will.*
\x\\\\_

Joachim Müller

when bridging is enabled, you can not edit your members using the coppermine interface - you'll have to edit your user with your bbs' interface. The memberlist button and the "users" button are suppossed to send you to phpbb's inteface - this redirection is broken for the phpbb bridge file you're using, but has been fixed in the cvs. Either get the most recent phpbb bridge from the web cvs or edit your bridge file accordingly (this has been asked and answered before).

Joachim

stardotstar

Thank you, the gallery is excellent and your support first rate (I apologise for not finding the threads to the latest versions of the bridge.)

This issue is definitely solved.
\x\\\\_