News:

Looking for documentation? Take a look on our wiki

Main Menu

Where does this "remember me" come from?

Started by mrmysterious, October 25, 2017, 15:33:50 PM

Previous topic - Next topic

mrmysterious

Hello community,

Here my system- info:

Systeminformationen
Einstellung    Wert

PHP erstellt für    Linux hapi.ispgateway.de 3.14.79-grsec-pvops-xen-x64 #1 SMP Mon May 22 13:12:26 CEST 2017 x86_64
Datenbankversion    5.6.19-67.0-log
Datenbankzeichensatz    utf8_general_ci
Datenbankverbindungszeichensatz    utf8mb4_general_ci
PHP-Version    5.6.30
Webserver    Apache/2.4.27
PHP-Interface für den Webserver    cgi-fcgi
Joomla!-Version    Joomla! 3.8.1 Stable [ Amani ] 4-October-2017 14:00 GMT
Joomla!-Plattform-Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Browsererkennung    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 OPR/48.0.2685.50

VirtueMart 3.2.4

I am going crazy over the following little problem I pointed out in the picture and spend hours searching....



As you see everything has been translated to German except "Remember me", which is the function of the system plugin "remember".

You can try yourself in the life site

http://www.geliefert.reviewinghiv.org/index.php

as you click on the left on "Konto erstellen" - then you get the view in the pic.

My problem is I want it also to be translated but I just can't find out the origin of that string. As mentioned above it is the output of the joomla system plugin "remember" which is important when using
cookies to identify returning users.

So when activated the checkbox appears and the string "Remember Me" - like in Pic 1.



When deactivating the plugin - the string and the box are gone.



But that is not an option because I want my users to be remembered - but in their own language!

So I tried it with the firefox "Inspector" which gave me the following code for that field which seems to be a form:



Now I have found that code in several php files on my server and disabled it everywhere to find out where it would originate - with no effect at all.

Most likely I thought it could be here:

/webseiten/geliefert/templates/as002053free/html/com_virtuemart/user/login.php:

Quote/* <div class="width100 floatleft" id="com-form-login-remember">

           

            <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>

            <label for="remember"><?php echo $remember_me = vmText::_('JGLOBAL_REMEMBER_ME') ?></label>

            <input type="checkbox" id="remember" name="remember" class="inputbox" value="yes" alt="Remember Me" />

            <?php endif; ?>

        </div>

        </fieldset>

        <div class="clr"></div>*/



No effect disabling that. But similar code is in other php files, too - every file that has something to do with login I edited - with no effect.
And to the plugin "system - remember" there is "remember.php" with no such code at all.

Now I'm finally stunned. All I need is to find the origin of that string and box which seem to come out of nowhere...

I hope someone can help.
Joomla!-Version 3.8.5
VirtueMart 3.2.12
Template As002053free (customized)
OS Linux h
PHP 5.6.30
MySQL 5.6.19-67.0-log

jenkinhill

Language overrides....  There constants are involved, I'd override them all:

COM_USERS_LOGIN_REMEMBER_ME
Remember me

JGLOBAL_REMEMBER_ME
Remember me

MOD_LOGIN_REMEMBER_ME
Remember Me
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

mrmysterious

Thanks for your help,

it worked out fine.

It was  JGLOBAL_REMEMBER_ME that caused the problem ALTHOUGH it had been set in the German language file:



So I don't understand... :o

Joomla!-Version 3.8.5
VirtueMart 3.2.12
Template As002053free (customized)
OS Linux h
PHP 5.6.30
MySQL 5.6.19-67.0-log