Topic-icon [SOLVED] Change Text of Modal Login Button Only

Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #36711 by jallencecil
Hi, I have edited the language file to the text I want to show on my home page for SCLogin module but it has also changed the button text on the modal popup to the same. Where can I edit the code to not display this but rather just "Login" for the button only?

TIA
Last edit: 10 years 7 months ago by jallencecil.
The topic has been locked.
Support Specialist
10 years 7 months ago #36783 by alzander
TIA,
The code for that login button is in the /modules/mod_sclogin/tmpl/login.php file. At line 20, you'll see:
echo '<div class="sourcecoast sclogin-modal-links sclogin"><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="modal">' . JText::_('MOD_SCLOGIN_LOGIN') . '</a>';
Update that to:
echo '<div class="sourcecoast sclogin-modal-links sclogin"><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="modal">Login</a>';

That should do what you're looking for, but if not, let us know. We'll look into adding that as an option in the future as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #36868 by jallencecil
Hi Alex,

Thanks for the reply.

I edited the code line you provided and it actually did the opposite... lol. It made the text on the home page display "Login" and the modal login view button text remained unchanged. I made sure I was editing line 20 of the code.

Thoughts?
The topic has been locked.
Support Specialist
10 years 7 months ago #36911 by alzander
If it worked opposite of how you expect, update that line how you want the text to display and then update the mod_sclogin.ini language file to have the text you want for the other text.

I hope that makes sense.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #36913 by jallencecil
Worked like a charm!

Thanks!
The topic has been locked.
Support Specialist
10 years 6 months ago #36961 by alzander
Awesome. Glad to hear that helped. If you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for SCLogin, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/access-...authentication/24054

Thanks,
Alex
The topic has been locked.