VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: mrmysterious on October 25, 2017, 15:33:50 PM

Title: Where does this "remember me" come from?
Post by: mrmysterious on October 25, 2017, 15:33:50 PM
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....

(http://fs1.directupload.net/images/171025/bqvbsec6.png) (http://www.directupload.net)

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 (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.

(http://fs5.directupload.net/images/171025/zhr2t5jz.png) (http://www.directupload.net)

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

(http://fs1.directupload.net/images/171025/xq47jcpr.png) (http://www.directupload.net)

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:

(http://fs5.directupload.net/images/171025/irhd4hfj.png) (http://www.directupload.net)

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.
Title: Re: Where does this "remember me" come from?
Post by: jenkinhill on October 25, 2017, 15:41:53 PM
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
Title: Re: Where does this "remember me" come from?
Post by: mrmysterious on October 26, 2017, 05:49:59 AM
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:

(http://fs1.directupload.net/images/171026/7ioa7mnn.png) (http://www.directupload.net)

So I don't understand... :o