By John Whelan on Tuesday, 05 November 2013
Posted in General Issues
Replies 5
Likes 0
Views 0.9K
Votes 0
The Invitex people have a question about where to find the auto-login redirect function after registration offered by EasySocial. Part of Invitex's functionality is to force a user to invite other users after registration. I understand this is accomplished via a plugin, but they need to know what to look for. Any pointers would be appreciated.

- JW
Hi,

Currently we don't have a login redirection settings but we will add this in the future version of EasySocial.

If you would like to achieve this through plugin, then just create a user plugin, with the function onUserLogin, and set the url into the app state 'users.login.form.return'.


$application = JFactory::getApplication();

$application->setUserState('users.login.form.return', $url);
·
Thursday, 07 November 2013 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Jason. Some very useful guidance on the plugin. I will be implementing it.

TechJoomla's question was slightly different and relates to the redirect that happens after "registration". In particular, the redirect that happens after automatic login upon registration by both ES registration and Facebook registration. Can you point me to the file where this redirect happens? TechJoomla needs to modify their plugin to intercept this parictular redirect.

- JW
·
Thursday, 07 November 2013 14:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

For registration redirection, according to Mark, we don't make it possible to redirect else where because we need the registration to go to an internal EasySocial page.

Refer to Mark's comment on this issue.

http://stackideas.com/forums/redirect-login-in-easysocial
·
Friday, 08 November 2013 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
I understand this, but my question is different as follows:

"Which file (and function) handles the redirect for the auto login upon registration?"

The Invitex people have asked me to get this question answered.
·
Saturday, 09 November 2013 05:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It is in /components/com_easysocial/controllers/profile.php, the login function.
·
Tuesday, 12 November 2013 12:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post