We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Only facebook signon | Forum

Topic location: Forum home » Support » General Questions
Eman
Eman Apr 9 '15
I would like to restrict sign-on with only facebook, except for admins.

Is this possible?

I can always add users separately, if I wish.

Another question: Is there an effective way to stop spammers?


Thanks in advance.

dave Leader
dave Apr 9 '15

Hi, as to your first question im not sure on that one.  I suppose you could block out the sign in other than the facebook and add this code for the switch


    $isModerator = OW::getUser()->isAuthorized('base');
     $isAdmin = OW::getUser()->isAdmin();

     if($isModerator || $isAdmin)
     {
      //show your normal log here 
      }else{

                //show the facebook only login

              }


as to your second question, there are a number of things on my other site you can try.

stopspambots.org/tipsandtactics.html


that page has some good tips..   Also get the question captcha, its free,


http://www.oxwall.org/store/item/583


i use that and its great.  You have to know how to write the questions so the bots cant google them, yes bots can google answers sadly :(    if you need some tips on how to write the question i can help.


hope that helps :)

Taissa Team
Taissa Apr 14 '15
Eman, have you solved your issue with the help of the dave's tips?

And please, be note, one request per one topic. Create a separate topic regarding issues that are not related to the Facebook sign-in.
Eman
Eman Apr 17 '15

Quote from Taissa Eman, have you solved your issue with the help of the dave's tips?

And please, be note, one request per one topic. Create a separate topic regarding issues that are not related to the Facebook sign-in.
Sorry about the two questions. I actually found a solution for the second but not for the first.
Still did not try Dave's. Not sure how to implement it.
But I guess the more I complicate the usual sign-in, the more people are encouraged to rather use facebook log-in. :)
Thank you for your care.
Kind regards
Eman

Taissa Team
Taissa Apr 20 '15
Eman, to permit only Facebook sign-in except admin it will be the custom code modifications because there is no such default functionality. Could you please explain why do you need such kind of modification? May be there is another way to solve the issue.

Otherwise it would be better to create a topic in the Custom code modification forum  and apply to other members for the assistance or probably some community member already have a solution.  Or if you are not familiar with the plugin development or code modification, it would be better for you to find a developer who can help you. You can do it here: http://www.oxwall.org/market/specialists.



Eman
Eman May 26 '16
Allowing login via facebook only can (hopefully) deter spammers.
I am having people joining the site and advertising for their commercial stuff  (does not seem to be a bot, because there is a captcha to register to my site).
If people with facebook accounts log-in to my site and bother me, I could bother them back on facebook, so it would be less likely.
Those who register using any email account, what can I do to prevent them? Send them an email? I don't think that would help.

dave Leader
dave May 26 '16
I suppose you could just comment out the part of the login box in the html file to hide everything but the facebook button. 
ross Team
ross May 30 '16

You can hide the sign-in label via css


.ow_signin_label {

    display: none;

}

and you can hide the sign-in button on sign-in page: 


.ow.base_sign_in form .ow_sign_in span.ow_button .ow_positive input{

display: none

}