Topic-icon In backend, "Show Title" "HIDE" don't work for popup display in front

Active Subscriptions:

None
3 years 5 months ago - 3 years 5 months ago #66831 by rcaconsult
Hello,

1) In my site, I use Many languages and i don't want to see the module's title in the popup
because in french, i don't want to have a english title module
In backend, "Show Title" "HIDE" don't work for popup display in frontend
See attached screen capture
2) Where to translate the "show" OR "hide" password in frontend popup ?
I have put this parameter in ru-RU.mod_sclogin.ini but i think this is only for backend
MOD_SCLOGIN_VALUE_HIDE="Скрыть"
MOD_SCLOGIN_VALUE_SHOW="Показать"
thanks for your help
regards
Last edit: 3 years 5 months ago by rcaconsult.
The topic has been locked.
Support Specialist

1) In my site, I use Many languages and i don't want to see the module's title in the popup
because in french, i don't want to have a english title module

I've entered a bug into our issue tracker for the modal title to respect the setting to show/hide the title. It should be easy to include in the next release. In the meantime, you can do a template override of the following file /modules/mod_sclogin/tmpl/login.php around line 77 replace
echo '<div class="modal-header"><button type="button" class="close" data-dismiss="'.$modalName.'" aria-hidden="true">&times;</button><span class="modal-title">'.$module->title.'</span></div>';
with
echo '<div class="modal-header"><button type="button" class="close" data-dismiss="'.$modalName.'" aria-hidden="true">&times;</button></div>';

2) Where to translate the "show" OR "hide" password in frontend popup ?

Yes, that language string is only for the backend when showing the module parameters. That translation screen is only for the modal popup screen and is not related to show/hide password. What string are you trying to translate? An icon is shown for the show/hide password right now.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Always the same issue with your new code
You can see the issue here
www.la-vie.paris/en
regards
The topic has been locked.
Support Specialist
Hmm, the only place in the code that sets the modal title is that file. Do you have any caching enabled for your site? If so, can you clear module cache and try again? Can you also try temporarily disabling the "Modal Close Button" setting and see if there's any change in behavior?

-Melissa
The topic has been locked.
Active Subscriptions:

None
When "Modal Close Button" is disabled, the Title is now not displayed.
Regards
The topic has been locked.
Support Specialist
That makes me think the template override/code change is not being used. Can you explain how you did the change? Directory where you put the template override, send me a PM of the code file you added?

-Melissa
The topic has been locked.