Topic-icon JFBConnect Compatibility with Other Third-Party Login modules?

Active Subscriptions:

None
I was able to add the Facebook login button to the popup. Thanks!

Regarding this item form before. I sent u the file "social.php" from mod_improved_ajax_login by email. We're you able to take a look at it?

3) I'll look into the files over the next few days. It will definitely take some time to figure it out, so I can't give you any timeline on when I could get you an answer. Understanding 3rd party components that aren't ones we regularly support (like JomSocial) is a lower priority effort for us. We will try to get you something soon, but I'd still recommending to continue pursuing getting support from the original developers as they'd be much better equipped and aware of how to answer what you're looking for.
The topic has been locked.
Support Specialist
Glad to hear you got the popup going.

We had some time to look into the template files you sent for the other login module you're using and have some ideas. We didn't test anything directly, so there are some caveats, but hopefully we can get you something that at least gets you started.

In the social.php file, the following line is what needs to be updated:
<span class="loginBtn submitBtn" style="width:auto"><span class="btnIco <?php echo $oauth->alias?>Ico">&nbsp;</span><?php echo JText::_("LOGIN_WITH_".strtoupper($oauth->alias)); ?></span>
The biggest unknown is how the AJAX Login module hooks into that code to turn it into a clickable button using Javascript. The easiest thing to simply do is replace that whole line with:
<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="/linktoimage.jpg" /></a>
That will display your own custom image in that place and should definitely work. Again, you can take a picture of the current login button and just use that. There may some minor styling needed to center things, which we can help with as well.

If you want their exact styles for hovering and such, it's a little more complex as we need to make sure that our login functionality is always called, not theirs. You can try the below, which may work, but also may not fully override their Javascript:
<span class="loginBtn" style="width:auto"><a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><span class="btnIco facebookIco">&nbsp;</span>Login with Facebook</a></span>
That *should* work. The main things to note are the removal of the submitBtn class tag and the addition of our anchor link.

Try that and see how it works out for you. It may not work, but will hopefully get us closer to the best state. Again, the first option should definitely work, but may not look exactly how you want. The 2nd may have functional issues and will need to be tested thoroughly in a few browsers.

Keep us posted on how that goes, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,
Some progess! The second option with this code worked and I could login:
.
 Login with Facebook

However, the Text font color styling for "Login wth Facebook" is not matching the "Login" text styling, with and without hover.
Also, would like to add a space before and after "Login with Facebook".

Please see attached screenshots to see what I mean.

Thanks.


BEFORE HOVER
File Attachment:


ON HOVER
File Attachment:
The topic has been locked.
Active Subscriptions:

None
Alex,
Did you get a chance to take a look at the above last post regarding the button styling?
The topic has been locked.
Support Specialist
I was actually thinking about the solution a bit. We're not designers, which is why our extensions are much more 'functional' than glitzy. We'd make a poor template club :)

However, I think I came up with the best solution. Above, I suggested removing the "submitBtn" class from the original span. What I'd suggest is re-adding a class, let's call it "jfbcBtn". Then, edit the AJAX login module's CSS file and anywhere you see a submitBtn class, also add the new jfbcBtn class. That *should* let you inherit all the same styles that were there previously and that way, you don't have to figure them all out yourself. It's possible it may not import everything you're expecting, but should get you closer.

You can try to re-add the submitBtn class again, but my fear is that the AJAX module's Javascript is going to attach some of their functionality to the text if you do. It doesn't hurt to try though, but definitely test, a lot, in a lot of browsers.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,
Tried what you suggested. Did not work.

Added the following code:
.submitBtn {
display: block;
width: 100%;
*width: auto;
margin-bottom: 10px;
}
.jfcBtn {
display: block;
width: 100%;
*width: auto;
margin-bottom: 10px;
}

Tried the code , with and without the .submitBtn

<span class="loginBtn submitBtn" style="width:auto"><a href="javascript:void(0)" onclick="jfbc.login.login_custom();">
<span class="btnIco facebookIco">&nbsp;</span>Login with Facebook</a></span>

And

<span class="loginBtn jfcBtn" style="width:auto"><a href="javascript:void(0)" onclick="jfbc.login.login_custom();">
<span class="btnIco facebookIco">&nbsp;</span>Login with Facebook</a></span>

The Facebook login button appears to be picking up it's styling from the main site template.
The topic has been locked.
Support Specialist
The width actually looks right to me now. It's just the font color that's incorrect. Add the following and hopefully that should do it for you:
.submitBtn a {
color: #fff;
}
Getting there :)

Alex
The topic has been locked.
Active Subscriptions:

None
Yup. That did it. You're good!!!
The topic has been locked.
Support Specialist
Glad to hear it.. I'll be happy to be done with this thread :)

As always, should you need anything else, just let us know,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,

Just saw another issue related to logging into my site with mod_improved_ajax_login using Facebook. Since I have to enable Facebook login and enter the API and Secret key separately for the module from the backed, and I also inserted the JFBC code for Facebook login button for this module (and changed the styling to match); I now get two Facebook login popups when a user clicks on the Login with Facebook button. If I disable Facebook login from the backend for the module, the Facebook login button does not appear; so I am forced to have it enabled. Needless to say, I just want one Facebook login popup to appear.

Please look at the earlier email trail. I hope you are not too confused!

Just go to my home page planethop.com/ and try to login with your Facebook account and you will see (you are already registered on the site.)

Thanks.

File Attachment:
The topic has been locked.