Topic-icon Disable FB Login Registration but keep Google+

Active Subscriptions:

None
12 years 6 months ago #39273 by kevort
Our site integrates with several Google+ features, so we want to enforce a policy that you can only log into the site with a google+ account.
Once the user has registered, we would like to allow them to link other accounts (FB/Twitter) so they could share content on any of the available networks.

Is it possible to restrict the registration process to google+ only?

Thanks,
Kevin
The topic has been locked.
Support Specialist
12 years 6 months ago #39280 by alzander
Interesting question. It's obviously a specific use-case, so there's not an option to disable the other login buttons just for registration. However, it should be pretty easy to do with some minor code modifications. The below will basically 'hide' the Facebook and Twitter login buttons wherever they are normally shown for registration. It won't technically prevent it, but without seeing the option, it really shouldn't happen.

To do so, edit the /components/com_jfbconnect/libraries/provider/facebook.php and twitter.php files. In each, there's a function for loginButton. Edit that function, like below (for the facebook.php file):
function loginButton($params = null)
    {
        return "";  // <----- ADD THIS LINE
        $jfbcLogin = "";
I hope that helps, but if not, or you have any other questions or issues, just let me know!

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

None
12 years 5 months ago #39978 by kevort
Alex,
That approach worked perfectly. Thank you!
The topic has been locked.
Support Specialist
12 years 5 months ago #39982 by alzander
Glad to hear that worked for you. Should you need anything else, please let me know.

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

Thanks,
Alex
The topic has been locked.