Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: ghosttr - maaliskuu 09, 2008, 05:36:45 IP

Otsikko: SSI Directing To Fourms
Kirjoitti: ghosttr - maaliskuu 09, 2008, 05:36:45 IP
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?
Otsikko: Re: SSI Directing To Fourms
Kirjoitti: Spaceman-Spiff - maaliskuu 10, 2008, 04:57:40 IP
Please read this tips: HowTo redirect the login url with ssi_login (http://www.simplemachines.org/community/index.php?topic=18077.0)
Otsikko: Re: SSI Directing To Fourms
Kirjoitti: fwitt - maaliskuu 13, 2008, 04:09:14 IP
off the top of my head i think this will work


ssi_login($_SERVER['HTTP_REFERER']);