Topic-icon How to change login with facebook button in the JFBCLogin module ?

Active Subscriptions:

None
I try to change the login button...

I try the system with put the code in a new custom module but this alternative is not good for me.

Can you tell me how I can change the login button in the "default" module ?

Thanks a lot !
The topic has been locked.
Support Specialist
How are you trying to change the button? Do you want to change the text, what it looks like, or something else?

In general, to change that button, you want to edit the /modules/mod_sclogin/tmpl/login.php file. In there, you can search for getLoginButton() and there are multiple options around there if you'd rather use an image or a text-only link. If you need more info though, just let us know.

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

None
Yes, I go in my template directory, HTML/mod_jfbclogin/default.php

I can now center the login & logout button but I dont know how to change the image of the login button... i'm not an expert in PHP ;-)

If you have an exemple to change this image it's very nice !
The topic has been locked.
Support Specialist
Gorgo,
I'm not sure what version of JFBConnect you're using, but we'd recommend v4.1. With that release, there's a new login module, SCLogin, that we'll be developing and using going forward. It's template file is much cleaner, and has more features. Additionally, in the login.php file (the template file for the login portion), there is a section of code that you can simply uncomment and update with the image you'd like to use.

If you really want to continue using the JFBCLogin module, you can see the examples on the following page on how to add your own custom image:
www.sourcecoast.com/jfbconnect/docs/common-support-questions

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

None
Ok I test this SCLogin and it's work with my image now :)

Another little problem, I config this module to show the Facebook picture but this picture appear with a bad quality, can you tell me how I can change to put a high quality profile image ?
The topic has been locked.
Support Specialist
Gorgo,
When you say the Facebook picture is bad, do mean the user's avatar/profile picture? If so, can you let us know the page we can see this on? The SCLogin module has some parameters for width/height, and we use that to tell Facebook the quality of the image to use. It's possible there's something wrong going on there with the dimensions you've picked. If we see the page, we should be able to fix it.

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

None
Yes it's the profile picture.

In the "old" module I have choice of the quality of this picture High / Medium or Hide, I select High and the picture is perfect.

But here in the SClogin module, the quality of the picture is the same of "medium" in the old module...

You can test here : www.sohy.be/zonexbe2/

Tks !
The topic has been locked.
Support Specialist
Yup, that looks pretty bad!

Looking at our code, our guessing looks little off. If you don't mind a quick code change, please edit the /modules/mod_sclogin/helper.php file. Around line 250, you'll see the function "getJFBConnectAvatarSize". In that block of code is:
if($picWidth >= 200)
            return "large";
Update that first line to 100:
if($picWidth >= 100)
            return "large";
That will force the large image more appropriately.

We're releasing version 4.1.1 of JFBConnect today. This update will -not- be included, so if you make the change and then upgrade, you'll need to do it again. It will be in the next release though.

Sorry for the trouble, and thanks for the report,
Alex
The topic has been locked.
Active Subscriptions:

None
Ok thats work now... I install the new version to test it.

Thanks a lot.
The topic has been locked.
Support Specialist
Let us know how it goes. Remember, that picWidth change will not be in the 4.1.1 release, but the same change should still fix it. We'll be implementing the change in the next release of the SCLogin module, whenever that may be.

Best of luck,
Alex
The topic has been locked.