SMF Mod Site

Mod Name:
Redirect on Login and/or Logout mod.
Created By:
New Feature
First Created:
October 04, 2008, 04:09:20 PM
Last Modified:
December 26, 2009, 05:05:37 PM
Latest Version:
Compatible With:
1.1.6, 1.1.7, 1.1.8, 1.1.9, 2.0 Beta 4, 2.0 RC1, 2.0 RC1-1, 2.0 RC2, 1.1.11
Total Downloads:

Download this mod (3kB) [28958] (4kB) [2686] (4kB) [2447]
Manual Install Instructions for SMF


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 you don’t provide the full url path (i.e. SMF assumes it’s an SMF function and appends before the URL address.
For example if you specify board=1.0 this automatically becomes
Other examples, to send the user to the forum front page enter the URL as action=forum, to send them to board two enter board=2.0 etc etc...
To send them to another webpage enter and so on.

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 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.

   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)

SMF Versions: 1.1.5, 1.1.6, 1.1.7,1.1.8, 1.1.9 2.0 Beta 4,2.0 RC1 and 2.0 RC1-1