By Marius Lead on Wednesday, 04 April 2018
Replies 5
Likes 0
Views 1K
Votes 0
I have noticed that when user session is expired, the lightbox pop up is shown with social image and login form and create account form. I would like instead to just redirect user to homepage. Where should I alter the code?
thanks
Hi Marvin,

The form that generate the login form was:
.../components/com_easysocial/views/login/view.ajax.php
·
Wednesday, 04 April 2018 18:43
·
0 Likes
·
0 Votes
·
0 Comments
·
ok noted. But where do I control pop up form triggering? For example I dont want to call the form, but rather to redirect to some url?
So if the user is inactive he would be locked out and login form would pop up, instead I want to redirect user to some url.
·
Wednesday, 04 April 2018 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marvin,

It is quite tricky, where you can take a look on the file:
.../administrator/components/com_easysocial/includes/ajax/adapters/site.php
where it trigger the form.

*I've moved this under tutorial category
·
Thursday, 05 April 2018 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
This is in my opinion only when lockdown enabled. Is the same script triggered if session expired?

// When lock down is enabled, and the user isn't logged in, ensure that the user is really allowed to view ajax stuffs
if ($this->config->get('general.site.lockdown.enabled') && $this->my->guest && method_exists($obj, 'lockdown') && $obj->lockdown()) {
$this->ajax->script('EasySocial.login();');
return $this->ajax->send();
}
·
Thursday, 05 April 2018 14:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes it is Marvin
·
Friday, 06 April 2018 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post