Here is the Hack:
First Backup Your Files!
Step 1)
open file: /administrator/components/com_users/users.xml
after line 13 where you see this:
Code: Select all
<param name="editor" type="editor_list" default="" label="User Editor" description="WYSYWYG Editor for this User" />
Code: Select all
<param name="login" type="text" default="" label="Login Redirection URL" description="What page will the login redirect to after user login, if let blank will load module default" />
<param name="logout" type="text" default="" label="Logout Redirection URL" description="What page will the login redirect to after user logout, if let blank will load module default" />
Step 2)
open file index.php
around line #139 replace:
Code: Select all
$mainframe->login();
Code: Select all
$mainframe->login();
// Per User Redirection
$temp_my = $mainframe->getUser();
$params = new mosParameters( $temp_my->params );
$userRedirect = $params->get( 'login', '' );
if ($userRedirect) {
$return = sefRelToAbs( $userRedirect );
}
$temp_my = '';
around line #168 replace this:
Code: Select all
$mainframe->logout();
Code: Select all
// Per User Redirection
$temp_my = $mainframe->getUser();
$params = new mosParameters( $temp_my->params );
$userRedirect = $params->get( 'logout', '' );
if ($userRedirect) {
$return = sefRelToAbs( $userRedirect );
}
$temp_my = '';
$mainframe->logout();
Save the File.
And you're done!
Notes:
Now you can login to the Administrator end and set the individual redirects in the user manager.
Warning:
If you don't want the frontend users to be able to edit these redirects then you need to set the Frontend User Params: to NO in your Global Configuration.
Enjoy
-barnett