Everytime a user registers or logs into my site the SSI will take him to the forums and make him go back to the page he was trying to get to. (Some pages require you to be logged on). I was wondering if there was anyway to make it put the user back on the page he came from?
Please read this tips: HowTo redirect the login url with ssi_login (http://www.simplemachines.org/community/index.php?topic=18077.0)
off the top of my head i think this will work
ssi_login($_SERVER['HTTP_REFERER']);