Advertisement:

Navigation

SMF Mod Site

Mod Name:
Redirect on Login and/or Logout mod.
Created By:
PJLawrence
Type:
New Feature
First Created:
October 04, 2008, 04:09:20 PM
Last Modified:
December 26, 2009, 05:05:37 PM
Latest Version:
0.3
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:
33826

Download this mod

RedirectLoginLogout0.2.zip (3kB) [28872]
RedirectLoginLogout0.3.zip (4kB) [2610]
RedirectLoginLogout0.4.zip (4kB) [2341]
Manual Install Instructions for SMF

Description:

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.

Notes...
If you don’t provide the full url path (i.e. http://yoursite.xxx/home.html) SMF assumes it’s an SMF function and appends http://yoursite.xxx/index.php? before the URL address.
For example if you specify board=1.0 this automatically becomes http://yoursite.xxx/index.php?board=1.0
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 http://yoursite.xxx/mywebpage 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 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)

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