× Joomla Facebook Connect support forum

Topic-icon How to change the photo in login button?

Active Subscriptions:

None
Hello. I cant find the file whene i mast go to chenge the photo for the ligin button. And i cant find the css for the login button. What code i must paste there and in what file.
The topic has been locked.
Support Specialist
14 years 8 months ago #14136 by alzander
The image for the button is actually pulled from Facebook, it's not something we include in the package. If you'd like to change it, you can add your own button in the /modules/mod_jfbclogin/tmpl/default.php file. Where we insert the button is by calling "$jfbcLibrary->getLoginButton()". You can remove this call and replace it with your own image, and a link to force the login when clicked.

For more information on how to use a custom image, please see the 2nd question on this page:
www.sourcecoast.com/jfbconnect/docs/common-support-questions

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

None
14 years 8 months ago #14137 by k.androutsos
any body???????
The topic has been locked.
Support Specialist
14 years 8 months ago #14138 by alzander
Please be patient for responses. Support, especially on a Sunday, isn't always immediate. The 2 hour response above we think is very reasonable, but may responses can take up to 24 hours at times. We always get back to all requests for help though.

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

None
14 years 8 months ago #14139 by k.androutsos
Thanks for your help alex. I put the code in defaul.php but the module and all page crashed. Where in default.php it must put it. In a "if" ... in "php" , in whitch section ???

Thanks!
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #14140 by k.androutsos
No problem alex.... before whene you write the answere i write and mine.... sorry i dont see.... but please tell me why happend this?
The topic has been locked.
Support Specialist
14 years 8 months ago #14141 by alzander
In the default.php file, look for the following line:
echo $fbClient->getLoginButton($buttonSize); ?>
You'll want to comment that line out, by putting 2 forward slashes in front of it. Then, on the next line, add the code for the image. When done, it will look something like this:
// echo $fbClient->getLoginButton($buttonSize); ?>
<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="link-to-image.jpg" /></a>

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

None
14 years 8 months ago #14145 by k.androutsos
I done this butt nothing! it must to deseble anything else? in ather folder?
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #14147 by k.androutsos
do you know why happend this?
The topic has been locked.
Support Specialist
14 years 8 months ago #14153 by alzander
Have you tested the image you used to make sure it's accessible? I'd try removing the img tag and simply put in text, like "Login With Facebook" and test that. If that works, then it's definitely the image you're using. If not, please post the URL of the page you're trying add this to, so we can take a look as to what's happening on the front-end.

Thanks,
Alex
The topic has been locked.