Topic-icon facebook login and modal popup

Active Subscriptions:

None
10 years 3 weeks ago #42759 by imeoda
Hallo,
i just bought jfb connect and i'm asking if it's possible to put facebook button in the box where i have register / sign-in options.
Now i can put it only in the popup after i click.

Thanks David
The topic has been locked.
Support Specialist
10 years 3 weeks ago #42767 by alzander
I'm not completely clear on what you're asking. If you have an existing login module that you're happy with, you can add the {JFBCLogin} tag to add the social login buttons to it. You'd need to edit the module's template files to do that.

If you need more help with the above, can you let us know more about what you're trying to do or even a URL with an example of where you're trying to add the login options?

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

None
10 years 3 weeks ago #42788 by imeoda
Thanks for answer
www.new-events.it/demo/liguriasconti/ind...test-deal&Itemid=103
at top right corner of the page where there is the login / registrati box i'd like to enable in the box the facebook login button.
Now i need to click on "Login" and then in the next popup i can facebook login.

Thanks
David
The topic has been locked.
Support Specialist
10 years 3 weeks ago #42848 by alzander
David,
Thanks for the link and further description of what you're looking to do. There's no option to add the social login buttons to that area of the module when the modal is turned on. It's a good idea though.

For now, you'd need to either:
* Edit the SCLogin's template files and add the login button to our code in that section. To do so, edit the /modules/mod_sclogin/tmpl/login.php file. Around line 25, 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>';
    if ($showRegisterLinkInModal)
        echo $spacer . '<a ' . $registerClass . ' href="' . $registerLink . '">' . JText::_('MOD_SCLOGIN_REGISTER_FOR_THIS_SITE') . '</a>';
    echo '</div>';
Update that to:
echo '<div class="sourcecoast sclogin-modal-links sclogin"><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="' . $modalName . '">' . JText::_('MOD_SCLOGIN_LOGIN') . '</a>';
    if ($showRegisterLinkInModal)
        echo $spacer . '<a ' . $registerClass . ' href="' . $registerLink . '">' . JText::_('MOD_SCLOGIN_REGISTER_FOR_THIS_SITE') . '</a>';
    echo 'Or login with: {JFBCLogin}';
    echo '</div>';
That should add the social network buttons like you're looking for.
* Add a Custom HTML module to a similar position in the sidebar and add similar text to the custom HTML area:

Or login with {JFBCLogin}


I hope that helps explain, but if you need more assistance, just let me know.

Thanks,
Alex
The topic has been locked.