Informations about alert messages & template customizations

If an Auto Login Link is expired or if the maximum of page views has been reached, an error message will appear on the login page.
The error message get inserted using Javascript, therefore, no template changes must be done.

If you do not want to display any messages from the module, then disable the Javascript Mode and dont insert this code into your login.tpl file.


It is possible to modify the output of the messages:

  • To change the language strings, or add new languages, refer to this article.
  • When using the javascript mode, edit the file template.php which is located at the module directory to change the output.
  • If you prefer to manually adjust the template, disable the javascript mode at the module settings and insert following code into your login.tpl file:

    {if $ModAutologin_InvalidLink}
        <div class='panel panel-danger'>
            <div class='panel-heading'>
                <h3 class='panel-title'><strong>{$LANG.autologinfrommail_invalid_head}</strong></h3>
            </div>
            <div class='panel-body text-center' style='font-size: 15px;'>{$LANG.autologinfrommail_invalid_body}
            </div>
        </div>
    {/if}
    
    {if $ModAutologin_MaxViewsReached}
        <div class='panel panel-danger'>
            <div class='panel-heading'>
                <h3 class='panel-title'><strong>{$LANG.autologinfrommail_maxviews_head}</strong></h3>
            </div>
            <div class='panel-body text-center' style='font-size: 15px;'>{$LANG.autologinfrommail_maxviews_body}
            </div>
        </div>
    {/if}
    
    {if $ModAutologin_TwoFactorAuth}
        <div class='panel panel-danger'>
            <div class='panel-heading'>
                <h3 class='panel-title'><strong>{$LANG.autologinfrommail_twofactor_head}</strong></h3>
            </div>
            <div class='panel-body text-center' style='font-size: 15px;'>{$LANG.autologinfrommail_twofactor_body}
            </div>
        </div>
    {/if}
  • No labels