phpbb2.0.x bridge problem phpbb2.0.x bridge problem
 

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

phpbb2.0.x bridge problem

Started by canelli, August 08, 2005, 08:09:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

canelli

I'm testing the phpbb2 2.0.x bridge from cpg 1.4.1 beta.

I'm running the test web on my laptop with this configuration

M$ Win XP2 SP2
IIS 5.0
PHP 4.3.10

the gallery works fine in standalone mode. I had some troubles in login and logout phase with the gallery bridged with phpbb2

the webs paths are

cpg - http://localhost/centroveladervio/cpg141
phpbb2 -  http://localhost/centroveladervio/phpbb2


bridge setting:
Forum URL:  http://localost/centroveladervio/phpbb2 
Relative path to your BBS's config file:  ../phpbb2/ 
Use post-based groups?:  0 
Cookie prefix:  phpbb2mysql

When I try the login from cpg the url made is

http://localhost/centroveladervio/phpbb2/login.php?redirect=..../centroveladervio/cpg141/

I can login in phpbb2 but the redirect url is wrong  (missing a / in the redirect part).

If I mannualy use the url
http://localhost/centroveladervio/phpbb2/login.php?redirect=../../centroveladervio/cpg141/
the login take on and I'm redirected to the cpg site


canelli


Nibbler

Can you try changing this line in the bridge file

$redirect = str_repeat('..', $levels) . rtrim($cpg['path'], '/') . '/';

to

$redirect = str_repeat('../', $levels) . trim($cpg['path'], '/') . '/';

canelli

I made the fix in file phpbb.inc.php , function login_page() and logout_page()

The mod works on my test environments (WIN XP + IIS50 + PHP 4.3.10,  linux + apache 1.3.27 + PHP 4.3.2, WIN2000 + IIS50 + PHP 4.3.10)