Facebook Like Integration

  • Anonymous - 2010-11-17

    added facebook like functionality to posts.


    $entry_array = 'index.php?entry='.$entry;

    $entry_array = 'comments.php?y='.$y.'&m='.$m.'&entry='.$entry;


    $blog_content .= '<BR><iframe src="http://www.facebook.com/widgets/like.php?href=http://yourblogaddress.com/' . $entry_array . '" scrolling="no" frameborder="0" style="border:none; width:450px; height:30px" allowTransparency="true" colorscheme="dark" "></iframe>';

    you can add this anywhere, i added it under the date.  you will see this section listed as // DATE


  • Flagon

    Flagon - 2010-12-13


    I think you have an extra double quote after dark.  With your code it worked in every browser except for IE.  Removing the double quote made it work in everything.

    Thanks for the tip!

  • Ravenbeard

    Ravenbeard - 2011-07-23

    I tried this and got nothing at all. I changed the 'yourblogaddress' bit to my blog address, and took out the extra double quote. There wasn't a // DATE section on my themes.php page, so put that line of code under
    $entry_array = $GLOBALS;
    in the // SUBJECT section. You said it could go anywhere.
    What might I have done wrong?

  • ark04

    ark04 - 2011-09-30


    Is it possible that these changes do not work for the theme used?

    I have made these changes to two pages  I have and only works in one of them (which is not working is version 0.5.0).

    Any idea what might be wrong?

    Thanks in advance.

  • Keith Broughton

    Keith Broughton - 2012-04-06

    I got it to work on the Default Theme.
    I also saw where I could remove "Created by"   as it's a Personal Blog I don't really need "Created by"

    thanks' for the tip..

  • Ricardo

    Ricardo - 2012-04-20

    this works for google+

    $gplus_array = $base_permalink_url . 'index.php?entry=' . $entry;

    at line 400 and edit line 402 to

    $str  .= ' ( ' . round( $rating * 5, 1 ) . ' / ' . $votes . ' )' . '&nbsp;&nbsp;|&nbsp;&nbsp;' . '<g:plusone size="small" annotation="none" href="' . $gplus_array . '"></g:plusone>';

    dont forget to add the google + javascript in /scripts/sb_javascript.php

    greetz echtor

  • yen leidong

    yen leidong - 2014-10-09

    perfect @echtor,
    Thanks for the script (y)


Log in to post a comment.