Topic-icon What is the link to popup login window

Active Subscriptions:

None
11 years 9 months ago #46481 by witku
Hi,

I would like to have a custom button (login button) on the page (a graphic) which after clicking would open a modal popu SCLOGIN window with possibility to enter login/password or to choose to login from FB etc.

How to do it ? What link should I use?

In other words - I would like to have something like login on www.sourcecast,com (the top right corner)

Sorry if the answer was published already, I could not find it ...

Thank you,

regards,
Witek
The topic has been locked.
Support Specialist
11 years 9 months ago #46490 by alzander
There's not a way to do that built-in to the SCLogin module. The SCLogin module supports a text or standard HTML button for the "Login" button. To use a graphic, you'd have to make a minor modification to our template files in the SCLogin module to do what you're looking for.

The edit to make is in the /modules/mod_sclogin/tmpl/login.php file. Around line 28, you'll see:
echo '<div class="sourcecoast sclogin-modal-links sclogin"><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="' . $modalName . '">' . JText::_('MOD_SCLOGIN_LOGIN') . '</a>';
Change that top line to:
echo '<div class="sourcecoast sclogin-modal-links sclogin"><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="' . $modalName . '"><img src="link-to-your-file.png" /></a>';
I hope that helps, but if you have any questions, just let me know!

Thanks,
Alex
The topic has been locked.