Advertisement:

Author Topic: My Facebook connect is in text  (Read 2563 times)

data99

  • Full Member
  • ***
  • Posts: 180
My Facebook connect is in text
« on: January 19, 2014, 02:48:37 am »
Facebook connect in text what is the problem how do I make it with Facebook blue back ground button style

werwe

  • Newbie
  • *
  • Posts: 27
Re: My Facebook connect is in text
« Reply #1 on: February 09, 2014, 11:16:08 pm »
In header.php after <div line id="user_menu">
Add this:
<div class="form_publish">
   <strong class="publish_button"><?php fbc_button(); ?></strong>
</div>   


Using modern themes.
If your question is solved, please add [Solved] to tiltle of this post  ;)

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: My Facebook connect is in text
« Reply #2 on: March 08, 2014, 01:12:21 am »
It just makes the text bold but no image button :(

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: My Facebook connect is in text
« Reply #3 on: March 08, 2014, 10:52:28 am »

aide2001

  • Guest
Re: My Facebook connect is in text
« Reply #4 on: March 08, 2014, 01:05:04 pm »
or try this
goto facebook plugin index.php and change this bit
<a title="Use Facebook" href="' . OSCFacebook::newInstance()->loginUrl() . '" title="use your facebook"></a></div>';
to something like this
<a title="Use Facebook" href="' . OSCFacebook::newInstance()->loginUrl() . '" title="use your facebook"><img src="//www.YOUR WEBSITEADDRESS.co.uk/images/login-facebook.png" width="220px" height="35px" alt="facebook login logo"></a></div>';

and get a facebook image and put it in your images folder

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: My Facebook connect is in text
« Reply #5 on: March 08, 2014, 01:10:07 pm »
is a work-around to create a button with you color of preference..

what about an actual image (official facebook button) and get rid of the text completely? the script has to be modified for that?


EDIT: this was my answer to Tom's link.. didn't see the second answer yet.. will check it out :) thanks
« Last Edit: March 08, 2014, 01:15:27 pm by volunteer »

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: My Facebook connect is in text
« Reply #6 on: March 08, 2014, 01:46:43 pm »
thanks for the tip! edited your code in the plugin and came out with this!
I will share it now, sure is handy for someone else

in your plugins folder look for facebook/index.php

and change

Code: [Select]
    function fbc_button() {
        if( !osc_is_web_user_logged_in() ) {
            echo '<div><a href="' . OSCFacebook::newInstance()->loginUrl() . '">' . __( 'Login with Facebook', 'facebook' ) . '</a></div>';
        }
    }

for

Code: [Select]
    function fbc_button() {
        if( !osc_is_web_user_logged_in() ) {
            echo '<div><a href="' . OSCFacebook::newInstance()->loginUrl() . '">' . __( '<img src="/oc-content/themes/YOU+THEME+HERE/images/facebook_login.gif">', 'facebook' ) . '</a></div>';
        }
    }

you can download the original images from here:
https://developers.facebook.com/docs/facebook-login/checklist/#brandedlogin

or use the one I attach to this post:
ALSO ATTACHED SCREENSHOT OF MY SITE TO SEE RESULTS

will post this as tips/tutorial.. saw many people dealing with this issue :)

aide2001

  • Guest
Re: My Facebook connect is in text
« Reply #7 on: March 08, 2014, 06:10:00 pm »
Glad it worked, can you edit the title to [SOLVED]
Please  8)

volunteer

  • Full Member
  • ***
  • Posts: 241
[SOLVED] My Facebook connect is in text
« Reply #8 on: March 08, 2014, 07:51:07 pm »
I am not the author of the thread but will try :P

aide2001

  • Guest
[SOLVED] My Facebook connect is in text
« Reply #9 on: March 08, 2014, 10:22:27 pm »
well done you ;)