Yep, that did the trick.

Thank you both for the help, I appreciate it.

Trucktime

Smartys wrote:
    if (!$authorized)
        message($lang_login['Wrong user/pass'].' <a href="login.php?action=forget">'.$lang_login['Forgotten pass'].'</a>');

I changed it to:
if (!$authorized)
        message($lang_login['Wrong user/pass'].' <a href="../index.php">'.$lang_login['Forgotten pass'].'</a>');

to redirect to the index.php file in the root.

However it keeps going to the  PunBB file login.php

Any idea why?

Thanks
Trucktime

Smartys wrote:

Oh, then you need to edit PunBB's login.php to redirect instead of using message

That's what I thought, but I can't figure out what I need to change in login.php

Thanks,

Trucktime

I use the files according to this thread:

http://punbb.org/forums/viewtopic.php?id=8786


Thanks,
Trucktime

I have integrated PunBB with my site, that is I moved the login/logout
function to another page on my site, away from the native forum file.

Everything works well, except for one thing that I need to change.
I want to redirect the user to a custom page after a failed login attempt.

After reading countless posts about redirecting I still haven't found the answer.

Any suggestion will be greatly appreciated.

Trucktime

Thanks deadram,

I'll check it out.

Trucktime

I have bridged PunBB and Coppermine, and it works well.

Now what I like to do is to put a login/logout box on the index page of
my site, so the login.php of PunBB will be bypassed.
For a new registration I still want to use login.php.

Any thought about how to accomplish that?

Every suggestion will be appreciated.

Trucktime