By LAC Webadmin on Wednesday, 24 May 2017
Posted in Technical Issues
Replies 10
Likes 0
Views 344
Votes 0
Hi There,

After like the session times out, ES will pop a login dialog box. Is there a way to override which login template that dialog box loads?

Thanks,

Jackson
Hi Jackson,
Are you referring to this popup(http://take.ms/it2uX)?
If yes, the background image can be configured from Settings>General>Login.
If you want to modify the file, you can template override this file: JoomlaFolder/components/com_easysocial/themes/wireframe/helpers/html/login.php
Is there a way to override which login template that dialog box loads?
Not really sure what you mean by this. Which login template would you like to load?
·
Wednesday, 24 May 2017 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Not really sure what you mean by this. Which login template would you like to load?


I made an override to JoomlaFolder/components/com_easysocial/themes/wireframe/helpers/html/login.php and it doesn't look good in the login dialog box.

I would like to load another login.php designed for the dialog box is what I like to do. Can you point me to a file that I need to override to do that?

By the way, how do I test that dialog box? I set the session time out to 5 min in the joomla configuration and I'm not seeing the dialog box after 5min. It is kind of hit and miss. Can you point me to how do I force it to appear?

Thanks,

Jackson
·
Thursday, 25 May 2017 00:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jackson,
I would like to load another login.php designed for the dialog box is what I like to do. Can you point me to a file that I need to override to do that?
Since overriding that file brought changes to the login popup in the frontend, then that's the file you need to override.
By the way, how do I test that dialog box? I set the session time out to 5 min in the joomla configuration and I'm not seeing the dialog box after 5min. It is kind of hit and miss. Can you point me to how do I force it to appear?
Perhaps you can try browsing EasySocial as a non-logged in user, then join an open group. The login popup will appear to ask you to login since only logged in users can join a group.
·
Thursday, 25 May 2017 10:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

Since overriding that file brought changes to the login popup in the frontend, then that's the file you need to override.

I think you're not understanding what I meant with I want to override the login dialog box. So, here it is again:


  • I already overridden login.php.
  • Since my override layout does not look good on login dialog box, I want to change what the login dialog box loaded template. By default it loads the same login.php which I overridden, I want to override the login dialog box so I can load my own version of another login.php, that way I can adjust the layout.
  • Can you point me to which php or template file is the login dialog box?


Hope I am explaining it right this time.

Thanks for the tip on how to make the login dialog box appear.

Jackson
·
Friday, 26 May 2017 00:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jackson,
Unfortunately, I am still not understanding your question. There is only one login.php file that the login dialog box uses. Once you override this file, then the site will load this file.
If you want to have different versions of the file accross several templates, then you have to place the respective files into the respective template override locations, which is JoomlaFolder/templates/currentTemplate/html/com_easysocial/helpers/html/login.php
·
Friday, 26 May 2017 11:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

In joomlafolder/components/com_easysocial/themes/wireframe/login/dialogs/login.php file, on line 35:

<?php echo $this->html('html.login', $return); ?>


is that the template file where that login dialog box is calling? If that's the correct file then technically, I should be able to override the original login.php file and use a different file like custom.login.php and modify the layout, right?

Another question, how do I force the dialog box to pop up? I tried your suggestion to go to a group and I set my session timeout to 5 minutes but it never popup. When it happened before, I don't know what I did

Thanks,

Jackson
·
Tuesday, 06 June 2017 06:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jackson,
The line of php code is calling this file: JoomlaFolder/components/com_easysocial/themes/wireframe/helpers/html/login.php
When you override this file in the template(JoomlaFolder/templates/currentTemplate/html/com_easysocial/helpers/html/login.php), you have to use the same file name(login.php) in order for the override to work.

For the session, there may be a keepalive function from Joomla going in the page.
You can refer to this link for some info: https://forum.joomla.org/viewtopic.php?t=938154
In my local, I discovered that my Joomla login form is executing the keepalive function preventing the session to end.
·
Tuesday, 06 June 2017 13:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post