Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cpg132 to phpBB2 login hangs up in BB2  (Read 4879 times)

0 Members and 1 Guest are viewing this topic.

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
cpg132 to phpBB2 login hangs up in BB2
« on: November 08, 2004, 08:10:21 pm »

Hi guy's,
I change the code for the membership error when intergrating with php with :
Code: [Select]
// Edit users
function udb_edit_users()
{
    $target = 'memberlist.php';
    udb_redirect($target);
}
as said to in the forum, but then I get:
Code: [Select]
Parse error: parse error, unexpected T_VARIABLE, expecting '{' in /home/creating/public_html/coppermine/cpg132/bridge/phpbb.inc.php on line 265
Any idea where the hick-up in my gidda-up is?

Cheers,
desert dave
 8)
« Last Edit: November 11, 2004, 03:42:55 pm by desert_dave »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cpg132 to phpBB2 login error
« Reply #1 on: November 09, 2004, 08:05:37 am »

What exactly did you modify?

Joachim
Logged

Nibbler

  • Guest
Re: cpg132 to phpBB2 login error
« Reply #2 on: November 09, 2004, 12:24:28 pm »

Add the entire file as an attachment to your posting.
Logged

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: cpg132 to phpBB2 login error
« Reply #3 on: November 09, 2004, 05:42:03 pm »

I had to re-install phpBB2 so I redid the intergation also. Now cpg132 takes me to phpBB2 for login in and after I log in it will go back to cpg132. Log out is fine stays(or appears to) at cpg132.

My re-direct looks like this;
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/coppermine/cpg132';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

I've attached my phpbb.inc.php for you as requested. It has the revision added already that should take care of this problem but doesn't;
// Edit users
function udb_edit_users()
{
    $target = 'memberlist.php';
    udb_redirect($target);
}

Please take a look to see what I missed.

Cheers,
desert dave
valley of the sun  8)
Logged

Nibbler

  • Guest
Re: cpg132 to phpBB2 login error
« Reply #4 on: November 10, 2004, 05:44:08 pm »

The defines under // HTML code for login/logout redirection are in the file 3 times. I don't get that parse error, but I'd suggest you start again from a fresh copy of the file.
Logged

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: cpg132 to phpBB2 login error
« Reply #5 on: November 10, 2004, 06:19:58 pm »

Sorry Nibbler, I made the text attachment before I the deleted the extra two off.
I played with this thing until late last night and here's where I'm at:
Log out is fine. Log in takes you to BB2 and stalls there until you log in then it will go back to cpg132.

Here's the site if you'd like to ck: http://www.creatingslideshows.com/coppermine/cpg132.
I have also attached the revised php.inc file.

Cheers,
dave
Logged

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: cpg132 to phpBB2 login hangs up in BB2
« Reply #6 on: November 13, 2004, 02:22:12 am »

Ideea's Anyone?

Logged

Nibbler

  • Guest
Re: cpg132 to phpBB2 login hangs up in BB2
« Reply #7 on: November 13, 2004, 03:50:07 pm »

If you want people to check login issues it is a good idea to post a test account to test with.
Logged

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: cpg132 to phpBB2 login hangs up in BB2
« Reply #8 on: November 14, 2004, 03:10:26 pm »

Whatever you need just let me know.
Test account login in: test, password: demo
Tks,
dave

http://www.creatingslideshows.com/gallery
« Last Edit: November 16, 2004, 03:10:41 pm by desert_dave »
Logged

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: cpg132 to phpBB2 login hangs up in BB2
« Reply #9 on: November 16, 2004, 03:16:30 pm »

Any hint to solve this one?
-dave
Logged

Nibbler

  • Guest
Re: cpg132 to phpBB2 login hangs up in BB2
« Reply #10 on: November 16, 2004, 06:14:08 pm »

Seems to be working exactly as expected.

i click login
enter login info
redirected back to cpg
click logout
I am now logged out
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.