Topic-icon custom button

Active Subscriptions:

None
11 years 8 months ago #25180 by purplechris
custom button was created by purplechris
i use this to embed a custom button for facebook login but i dont know how to change this to show linkedin login button too
The topic has been locked.
Support Specialist
11 years 8 months ago #25183 by alzander
Replied by alzander on topic custom button
There wasn't anything posted, so I'm not sure what you're using. There isn't as easy of a way to use a custom image with the LinkedIn login button, it's something I can see adding in a future version. However, if you don't mind adding a few lines of PHP code, you can check out the post below which shows the code:
www.sourcecoast.com/forums/jfbconnect/jf...overrides?p=1#p24932

Hope that helps, but if you were asking for something different, just let me know!

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

None
11 years 8 months ago #25189 by purplechris
Replied by purplechris on topic custom button
thats strange

this is what im using for facebook is what you have on this page for using a custom button with facebook

www.sourcecoast.com/jfbconnect/docs/common-support-questions

works great really need something like this for linkedin, badly infact
The topic has been locked.
Support Specialist
11 years 8 months ago #25190 by alzander
Replied by alzander on topic custom button
I'd really recommend reading that thread I pointed to. There are a few methods in there that tell you how to use a custom image with a link to the Login button.

This post shows the URL to link to. It also explains a caveat that you can't use a New User or Login redirect with this method:
www.sourcecoast.com/forums/jfbconnect/jf...overrides?p=1#p24910

Alternatively, you can use the 4 lines of PHP in this post, along with the correction 2 posts below it. This method allows you to have the redirections enabled, but obviously is a little more complex:
www.sourcecoast.com/forums/jfbconnect/jf...overrides?p=1#p24932

We're planning to make this as simple as JFBConnect in a future (hopefully the next v1.3) release. Until then, it just takes a few lines of code.

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

None
11 years 8 months ago #25192 by purplechris
Replied by purplechris on topic custom button
i see that the only issue im not using the login module

im simply entering the js code given in my 2nd post which means i have to then use {JLinkedLogin} for the linkedin button. and then it doesnt match my facebook design, perhaps its possible to edit in the component code the generation of the linkedin button to globally change it to an image of my choice allowing me to use {JLinkedLogin} with my own image without using your module as the module itself again shows a standard facebook button removing what ive already done.
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #25200 by purplechris
Replied by purplechris on topic custom button
never mind i just changed the css for the linkedin square on your plugins css and set the button at the side to display:none, works perfectly.
The topic has been locked.
Support Specialist
11 years 8 months ago #25201 by alzander
Replied by alzander on topic custom button
Glad you got it. Just so you know, the code in the post linked to can be used outside of the SCLogin module as well. Should you decide you need more help to implement it the way originally requested, just let us know, and we can help!

Thanks,
Alex
The topic has been locked.