Page 1 of 1

[SOLVED] Frontendusers: $prompt_loggedin

Posted: Wed Feb 13, 2008 1:53 pm
by bach
Hi!

I am trying to change the text that is displayed for the {$prompt_loggedin} tag used in the FEU Logout template. Regarding this topic, I found Calguys hint
calguy1000 wrote: this is a bit more complex.

a) create an /module_custom/FrontEndUsers/lang/en_US.php file
b) search in the /modules/FrontEndUsers/lang/en_US.php file for the string you want to change
c) Copy the line(s) you found in step b to the file you created in step a
d) Change the strings to whatever you want.

This functionality was added in the 0.12 series to allow overriding any string in any module without having to worry about re-changing that file when you upgrade the module.
I have searched in /modules/FrontEndUsers/lang/en_US.php for $prompt_loggedin, but did not find it. Then I searched in de_DE.php as well as I am using the "german version" of FEU on my site, again no match. Anyway, using lang=en_US, the tag is replaced by Welcome and using lang=de_DE the string is replaced by "Willkommen", so I guess, it is defined somewhere.

Does anybody knows, where the $promt_loggedin string is defined?

Thanks in advance
Michael

Re: Frontendusers: $prompt_loggedin

Posted: Wed Feb 13, 2008 2:56 pm
by alby
bach wrote:
calguy1000 wrote: b) search in the /modules/FrontEndUsers/lang/en_US.php file for the string you want to change
I have searched in /modules/FrontEndUsers/lang/en_US.php for $prompt_loggedin, but did not find it.
No, you must search for string text, for example "Sign out" in en_US.php:
$lang['logout'] = 'Sign out';
and substitute with your text

Alby

Re: Frontendusers: $prompt_loggedin

Posted: Wed Feb 13, 2008 3:33 pm
by bach
Hi Alby,

thanks a lot! It worked (kind of, see below)!

Am I right to assume that the smarty tag {$prompt_loggedin} in the FEU Logout template gets somehow mapped to $lang['msg_currentlyloggedinas']?

And another question: Is it possible, that the functionality of overwriting strings in the "module_custom"-folder works only for the en_US.php file?
That is at least what works for me. I have

    {cms_module module=FrontEndUsers form='logout' lang='de_DE'}

in my template and put a de_DE.php file with the string substitutes in
   
    module_custom/FrontEndUsers/lang/de_DE.php and
    module_custom/FrontEndUsers/lang/ext/de_DE.php

but the string was not changed. However, substituting the string in

    module_custom/FrontEndUsers/lang/en_US.php

worked, although I have set the module language to 'de_DE'.

Thanks again for your very fast response!
Michael

Re: Frontendusers: $prompt_loggedin

Posted: Wed Feb 13, 2008 5:50 pm
by alby
bach wrote: And another question: Is it possible, that the functionality of overwriting strings in the "module_custom"-folder works only for the en_US.php file?
Yes, for  module_custom/FrontEndUsers/lang/en_US.php
and your string text is indipendent from upgrade

bach wrote: worked, although I have set the module language to 'de_DE'.
Set also de_DE in config.php and in frontend language in General option

Alby

Re: Frontendusers: $prompt_loggedin

Posted: Thu Feb 14, 2008 9:15 am
by bach
Hi Alby!

Thanks a lot again for your helpful and fast support.

Best regards
Michael