1 (edited by Bold Soul 2004-03-01 18:29)

Topic: HELP! Redirecting login form.

Ok - I've worked out most other issues, but I could use an assist here!  Name the price! wink

I would like to redirect the login form to return to the last page viewed (i.e. history.go(-1)), but I'm totally uncertain how to do this, or of doing so would break anything in punBB.

Can anyone help out?  Thanks!

Re: HELP! Redirecting login form.

Hmm, that's what it does without modifications? Try logging out, navigating to this topic and then logging in.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by Bold Soul 2004-03-01 19:01)

Re: HELP! Redirecting login form.

Hmm - interesting.  I moved the login forms to another directory so that they can function as the login for content areas of my site as well as the forums.  When logging in, it seems to default to index.php.

Let me move some things around and try again.

(edit)

Yep - it defaults to the index.php page of the root directory for punBB.

Re: HELP! Redirecting login form.

Ah...could there be something wrong with my HTTP Referrer?  I have this all running on a local development box.

Re: HELP! Redirecting login form.

Yes, "Base URL" must be correctly set in admin/options.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: HELP! Redirecting login form.

Thanks Rickard.  I'll see how it all works when I post it all to our live server!