Topic-icon How to change "Register on this Site" to a button

Active Subscriptions:

None
To keep things visually neat & tidy how do I change the "Login to this Site" to a button so that we'll have 2 buttons sitting nicely one above the other:
Login with LinkedIn
Register on mySite

Just an aesthetic question really ;)
The topic has been locked.
Support Specialist
12 years 2 weeks ago #21296 by alzander
Stuart,
Should be easy to do, but I need a little bit more clarification on what button you want to style, and how. You mention 3 buttons above (Login to this Site, Login With LinkedIn, and Register on mySite). I think you're mixing and matching them, so really not sure if you want the LinkedIn button to change to look like the normal Joomla login button, or the other way around.

Any clarification you can give will help as to your goals. Once we know, helping you make the changes should be very straightforward.

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

None
Hi, I thought it would be simple... basically as the attachment (we'll create the button)
File Attachment:
The topic has been locked.
Support Specialist
12 years 2 weeks ago #21309 by alzander
Gotcha. Yes, that should be pretty easy if you already have the image you want to use.

First, create a template override for the SCLogin module's login view. Do that by copying /modules/mod_sclogin/tmpl/login.php to /templates/<YOUR_TEMPLATE>/html/mod_sclogin/login.php (creating any directories that don't already exist).

Then, edit that login.php file you just made. Look for the following (around line 107):

if ($params->get('showRegisterLink'))
echo '<li><a href="' . $registerLink . '">' . JText::_('MOD_SCLOGIN_REGISTER_FOR_THIS_SITE') . '</a></li>';

and change to:

if ($params->get('showRegisterLink'))
echo '<li><a href="' . $registerLink . '"><img src="/link-to-your-image.jpg" /></a></li>';


Let us know if you run into any trouble, or have questions!

Thanks,
Alex
The topic has been locked.