Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Sure.

    <?php sfc_like_button(); ?>

    Did you need a more complicated example?

    Thread Starter Hector

    (@hectorpn)

    No I think this does it. I assume I can still manage the settings through the gui and they don’t have to be hardcoded correct?

    Anyhow, thanks a lot for the response and for the awesome plugin Otto.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    No, if you’re doing it manually in the theme, you need to hardcode your settings in the call. Otherwise it just uses defaults.

    <?php
    sfc_like_button( array(
    		'layout'=>'standard',
    		'showfaces'=>'true',
    		'width'=>'450',
    		'height'=>'65',
    		'action'=>'like',
    		'colorscheme'=>'light',
    		'font' => 'lucida+grande',
    		)).
    ?>

    Those are the defaults.

    hi Otto!

    and what´s the harcode for the <?php sfc_fanbox(); ?>
    .no logo bar?
    .not stories?
    . number of fans?

    really thanks for the help and the great plugin!!

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    sfc_fanbox(array(
    'stream' => 1,
    'connections' => 10,
    'width' => 200,
    'height' => 0,
    'logobar' => 1
    ));

    thanks, cool!
    actually… users have to login in to facebook to see the fans, i don´t really know if it was the same before, i don´t think so… 🙂

    Hi Otto, I don’t know if you’ll get a notified of a bump to this thread, but I’ve used SFC and really like it, but it doesn’t seem to respond to my changing the width of the LIke functionality either in the Widget Settings or by editing to the plugin itself.

    Do you have any idea how to fix it?
    Can you check out http://www.menhadendefenders.com to see what I mean.

    Thank you!

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    There’s no site on that domain, it goes to a GoDaddy page.

    And the width editing works fine, but only within specific boundaries. Like, if you try to make it too narrow or too wide for the given style, Facebook’s code will ignore that.

    Otto, thanks for looking at this thread.
    I apologize for posting the wrong URL.
    Neither http://www.menhadendefenders.org/ or http://www.fishoilsafety.com/ respond to changes in width either in the Widget settings (defaults to 250 px) or by editing the plugins settings manually.

    Thanks again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Simple Facebook Connect] How to embed Like button in theme (PHP)’ is closed to new replies.