October 24, 2021, 02:29:43 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Additional Info
Type
Package ID
PeterLawrence:PJL2000
First Created
October 04, 2008, 04:09:20 PM
Last Updated
December 26, 2009, 05:05:37 PM

Redirect on Login and/or Logout mod. v0.3

Redirect on Login and/or Logout mod.
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
Latest version v0.3
Downloads 34,133
Reviews 0
Rating 0/5
Subscribers 19
License (View License)
Author(s)
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
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: