Topic-icon Remove 'Login with facebook' button

Active Subscriptions:

None
HI
I have jomsocial with JFBC integration
In the jomsocial register page the JFBC 'login with facebook' button is visible
the 'Login with facebook' button at the bottom of the JS Register new user page (underneath the 'next'button)
My client has aksed for this button to be removed
I have asked JS support but all they can suggest so far is to disable JFBC integration in JS
This I do not want to do as JFBC is an integral part o the layout/site
As this button is controlled by JFBC I am hoping that you are able to resolve the issue and for me to keep my client happy.

Can you please help in how to stop that button appearing
Hopeful of a helpful reply
Iain
The topic has been locked.
Active Subscriptions:

None
10 years 1 month ago #57991 by norfolkandway
HI
In chrome > inspect
I can delete the following
<div class="social-login facebook jfbcLogin pull-left">
<a class="sc_fblogin" href="javascript:void(0)" onclick="jfbc.login.provider('facebook');">
<img src="/media/sourcecoast/images/provider/facebook/icon_label.png" alt="Login With Facebook" title="Login With Facebook"></a>
</div>
This removes the button
Would it be ok to delete this from JFBC code without affecting other functionality of JFBC
If so can you kindly let me know where I might find this code
And....Is there a way to do this so that it does not re-insert upon JFBC update
Thanks
Iain
The topic has been locked.
Support Specialist
10 years 1 month ago #57998 by alzander
No.. you definitely don't want to find that code in JFBConnect and remove it. That's the code that generates all of our social login buttons.

There's a few options I would suggest here. First, JFBConnect is not adding that button to JomSocial. It's done by JomSocial when you have the "Use JFBConnect" option within JomSocial. When that's enabled, JomSocial asks JFBConnect for the social login button code and adds it to various pages. To my knowledge, that's all that setting does, so if you don't want it on any of the pages of JomSocial (or want to add those buttons manually), you can disable that setting. JFBConnect will still import profile data into JomSocial using our social profile plugins.

Another option is to add some CSS to your template to hide the button from that page. You'd need to find the right selector to do so, but Chrome tools can help. Once you click on the <div class="social-login facebook jfbcLogin pull-left"> element, use the '+' button and that will generate a pretty specific selector for you. Then, add:
display: none;
That should hide the button. If so, add that full style to your template and make sure it doesn't accidentally remove the button from other pages.

I hope that helps give you some ideas, but if you need anything else, just let us know.

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

None
10 years 1 month ago #58003 by norfolkandway
Hi
Thank you for prompt reply
If I disable, "Use JFBConnect" then the site loses the redirection functions for same page login/logout (unless there is a way to do this another way I really would like to keep this function as there seems to be no similar function with JS.) I do have the JS redirect plgun installed and 'Redirect back to previous page' set to yes but this does not seem to work
Maybe a different thread in JS may mean I can disable 'use JFBconnect' if I can get the redirect plugin to work, google search me thinks
I shall try to find the correct selector, and contact template dev.
I have now also posted the same question in JS forum so hope for a reply there as the code to display is generated from JS (Thank you for letting me know this)

Thanks again for reply, most helpful, I hope....

Regards
Iain
The topic has been locked.
Support Specialist
10 years 1 month ago #58008 by alzander
No problem for the explanation. I hope you find a good resolution, but if you run into more issues or have any questions, just let me know.

Thanks,
Alex
The topic has been locked.