Active
Project:
Facebook OAuth (FBOAuth)
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2011 at 20:13 UTC
Updated:
8 Aug 2016 at 03:29 UTC
Jump to comment: Most recent
Comments
Comment #1
quicksketchYou can do this through theming. See #1319282: Allow Addition of Custom Code.
Actually on the one site I'm using this module, we're not using the default button either because we wanted to round the corners on it a bit, though it still says "Connect": http://www.grammy.com.
Comment #2
OneTwoTait commentedRegardless if it can be done through theming, I think a user-friendly login button should be used by default.
Comment #3
quicksketchWell I suppose Facebook itself has come to the same conclusion, see this FAQ item on What happened to Facebook Connect?
However if we take this approach we need to implement some variable display, since a user can connect their account with Facebook even after they've logged in (which allows future logins through Facebook to that particular account). So basically our current login button would use the "Login with Facebook" button for anonymous and probably "Connect" button for authenticated, unless there's a more appropriate button available.
Comment #4
konrad1811 commentedJust want to say a great job - this module :)
Previuosly I used Drupal for Facebook but that one couldn't handle FB email mapping to Drupal.
This one does it well without searching for !
Regards
Comment #5
federico commentedMy site is in Spanish and I would like to translate the button. I couldn't find the string using Drupal
Comment #6
jay.lee.bio commentedI noticed that the Grammy website now uses the following: http://developers.facebook.com/docs/reference/plugins/login/
So how about change "Connect" to "Log In" for anonymous users & "Connect" for authenticated users? I think that's the best solution.
Comment #7
le_bodyguard commentedI have change my button on "fboauth.module" in
function :
Change this for your image path :
Comment #8
mermemladeK commentedI think the correct way to change the button is to do it in the developer area of FB. I've read its sized can be changed and the text customized. Do you have a hint on how to do so?
Comment #9
lionsharz commentedsubscribing
Comment #10
nikkwong commentedany news on this?
Comment #11
alex.petcu87 commentedPlease someone can help me to add a block with a connect with facebook buton, I tray several metods, but I'm new in drupal and I don't know how.
I enable the simple fb connect, configured, but I cannot add a facebook buton to my login form, the site is www.polux.ro
Comment #12
rgnyldz commentedThere should be a block called "Facebook Login" in blocks. You can add it right after the lofin form and do some css to get it beside the login button.
I did this in www.dizipin.com
Comment #13
itqan-2010 commented#7 worked for me
change that line to be like this
$src = ($GLOBALS['is_https'] ? 'https' : 'http') . '://yoursite.com/sites/default/files/anyimage.jpg';
or what ever your path for the image you want.
Comment #14
meSteCome on... #7 can't be a solution. Changing the module is never a solution.
From the module's source code:
You can find theme_fboauth_action__connect() in fboauth.module
Comment #15
drupalfan81 commentedSubscribing...any progress made on this?
Is anyone else out there running a multilingual site with this module? What are you doing for your NON english speaking users? Currently all my users see this "Connect" button regardless of their language, most probably know what it is, but I'm guessing a good handful don't have a clue.
I think the Login/Connect issue needs to be addressed as well as how multilingual sites will deal with this.
Comment #16
meSteAs mentioned in #14, I'm using theme_fboauth_action__connect() (as recommended) to choose which is the button to show and all works fine in mono and multilingual sites.
Comment #17
drupalfan81 commentedThanks MeSte! Can you provide some direction on how to do this. I'm not that good at modifying the theme? Is it explained somewhere, or if you could just copy and paste the code here and which file I need to put it in, that would be wonderful!
thanks!
Comment #18
meSteIn your theme's template.php add a function like
Just replace "your_theme" with the name of your theme (you can copy-paste the theme's directory name).
You can also take a look at theme_fboauth_action__connect($variables) in fboauth.module to better understand what value you have to return from your custom function and how to compose it.
Comment #19
thirdender commentedThis can also be done using a
hook_form_FORM_ID_alter.