Hi guy's,
I change the code for the membership error when intergrating with php with :
// Edit users
function udb_edit_users()
{
$target = 'memberlist.php';
udb_redirect($target);
}
as said to in the forum, but then I get:
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)
What exactly did you modify?
Joachim
Add the entire file as an attachment to your posting.
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)
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.
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
Ideea's Anyone?
If you want people to check login issues it is a good idea to post a test account to test with.
Whatever you need just let me know.
Test account login in: test, password: demo
Tks,
dave
http://www.creatingslideshows.com/gallery
Any hint to solve this one?
-dave
Seems to be working exactly as expected.
i click login
enter login info
redirected back to cpg
click logout
I am now logged out