This mod will allow admins to be able to select the URLs where users will be directed to after they have either logged in or logged out.
I've used this mod on my own site to redirect people to the forum when they login. Then when they logout to the main website home page.
Once installed, go to the Features and Options, Basic Settings area of your admin panel. (In SMF version 2 go to Miscellaneous under Configuration, Modifications of your admin panel) -Find the enable logon redirect and logout settings. -Select whether you want to redirect the user when they login and/or logout. -Enter the required URLs.
If for some reason you are informed that your browser cannot display a webpage when you login/out. Simply retype your forum web address and go to feature and option settings and correct the login or logout URL loaction. Alternatively type http://yoursite.xxx/index.php?action=featuresettings which will take you directly to your forum setting page if the problem occurred when logging in.
This mod only redirects the user if the $_SESSION['login_url'] or $_SESSION['logout_url'] are not set, hence should be compatible with other mods/functions which assign these variables.
Disclaimer: This mod is provided "as is" without express or implied warranty.
Changelog 0.2 - October, 2008 (First release) 0.3 - 20th October, 2008 (Support for SMF Version 2.0) 0.4 - 26th December, 2009 (Support for SMF Version 2.0 RC 2)