Timan, on Feb 20th 2009, 01:50 PM, said:
for some reason the login form was not meant to be on pages other than the forum index. So the form I do have in the header, will always redirect you there. Only thing you can try doing is get to where you want to, and login when an error pops up saying you have no permissions. That should redirect you to the correct page.
can't you make a own login page and send the form in the header to that page?
the you can use
$_SERVER['HTTP_REFERER'];
to bring the user back to the page from which he/she logged in
I mean it can't really be trusted to give the right page
but then it's the users own fault they go to a other page
(I don't know how the logins for ipb works else I could make a script that can do this)