× Joomla Facebook Connect support forum

Topic-icon Problems with FB login

Active Subscriptions:

None
15 years 1 month ago #9342 by fb_1127481405
I'm using a Rocket Theme Solar Sentinel template and trying to get the JFBC login to work with it.

It worked once when first installed but now the FB login button does not work at all.

If I move the module to the left column all works as it should but I would prefer to use the top panel login with the popup.

Seem to recall this issue being discussed before but I can't find any reference to it now.
The topic has been locked.
Support Specialist
15 years 1 month ago #9350 by alzander
Replied by alzander on topic Problems with FB login
Yup, it's been discussed before :) The 3.2 release has the ability to fix this, but we haven't really documented it much because we threw it in the last minute. It will take a minor amount of code to add the button, and hopefully, you're up to the challenge. The problem has to do with using Javascript inside of a Javascript pop-up window.

I'm assuming you're simply using the JFBCLogin module and placing it in the pop-up that RocketTheme uses. If that's not the case, just let us know.. if you're adding the {JFBCLogin} tag to another Login module, it's basically the same steps. Anyways, edit the /modules/mod_jfbclogin/tmpl/default.php file. At line 42, you'll see:
echo $fbClient->getLoginButton($buttonSize); ?>
You'll want to replace that with the following:
<a onclick="jfbc.login.login_custom()">Login With Facebook</a>

This will be a simple text link, but you can add any image in place of the Login With Facebook text and that will be the login button. If you need more help with that, let us know. In the next release, we'll be adding an option to use this login ability instead of the standard Facebook one. We'd love to hear your feedback, but so far, reports have been good with this method.

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9356 by fb_1127481405
That works quite well. I spent most of yesterday looking for a solution online. Should have asked first!

One remaining problem which is that the Login and Logout buttons display as text only making it difficult to see that they are clickable.

I see you use the same code as the standard Joomla login.

<input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" />

I could go looking but it seems that the class="button" is not available to your module. How do I fix that?
The topic has been locked.
Support Specialist
15 years 1 month ago #9359 by alzander
Replied by alzander on topic Problems with FB login
The big difference there isn't actually the class of button, it's the fact that it's in an input. If you wanted to make the above into a button, try the following (untested, but should work):
<input type="button" onclick="jfbc.login.login_custom();" value="Login With Facebook" />

Hope that helps, and again, you could also use a custom image as described above, but I think if you want a standard HTML button, the snippet above should work for you. If not, you know where to find us.

Definitely glad to hear our new method is working out well... cause we hated hearing about Javascript pop-ups, frankly :D
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9360 by fb_1127481405
That has made the FB login into a nice button. The problem I was trying to solve was that Login and Logout are also plain text as opposed to buttons as they are in the standard Joomla login from which they appear to be copied.

I think the Rocket Theme popup has somehow denied that styling to the JBFC login module. It would be nice if I could retrieve it or maybe the styling for your button could be applied to Login and Logout.
The topic has been locked.
Support Specialist
15 years 1 month ago #9464 by alzander
Replied by alzander on topic Problems with FB login
Bill,
Very sorry for the delayed response, and thanks for PM'ing me a link to your site.

I just tried to register through Facebook, and I saw an error "Couldn't instantiate mail function" and I wasn't logged in. I'm assuming you have User Activation enabled, so I need to do that, but without the email, I can't. Because of that, I can't see the logout button your talking about.. which puts me on hold.

Can you help me out and activate my account? Once I see what's happening, I think it should be easy to help you style it right up. I did see the Login With Facebook button which looked like a normal HTML button.. if there's something wrong there, just let me know!

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

None
15 years 1 month ago #9477 by fb_1127481405
Alex, I have skipped user activation in the JFBC configuration settings so no idea why FB or Joomla wanted you to do that.

You don't actually have a registration at all I've just found out so I can't activate you.

Other users have been able to use their FB login to register without activating an email so not sure why its not letting you.
The topic has been locked.
Support Specialist
15 years 1 month ago #9483 by alzander
Replied by alzander on topic Problems with FB login
It's working for me now.. not sure what happened

I can see exactly what you're talking about now, but honestly, don't have a good suggestion immediately on seeing it. Everything in that pop-up looks right. You may want to try changing the type from submit to type=button, which is what the Login With Facebook is using.. hopefully that will work, but again, not really sure what's going on. We'll try some things on our end, and if you figure anything out (or button works), let us know!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9492 by fb_1127481405
I changed the type from type=submit to type=button but made no difference.

I can't even see where Logout gets set in the default.php script for JFBCLogin.

If I move the module to position "left" Login and Logout both appear in a nice html box as does Login with Facebook so there is something going on with displaying the login module in the popup which disables button styling.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9694 by fb_1127481405
Any update on this? The new site is due to go live and it would be nice to have this problem solved.
The topic has been locked.