WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Like Box Widget
[resolved] Problems after upgrade to WP 3.5 (14 posts)

  1. dmitrijus.aldosinas
    Member
    Posted 1 year ago #

    Hi,

    after upgrading wordpress to 3.5 the last lines of plugin box have been cut off. I tried it on my test instalation - the same results. I tried changing the hight setting in the plugin options, but without any results.
    The page is : http://pamirsta.lt.

    Thanks!

    http://wordpress.org/extend/plugins/facebook-like-box-widget/

  2. dmitrijus.aldosinas
    Member
    Posted 1 year ago #

    Already fixed that. Changed the line to look like this:

    $like_box_xfbml = "<script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\"></script><fb:like-box href=\"$pageURL\" connections=\"$connection\" width=\"$width\" height=\"$height\" show_faces=\"$showFaces\" border_color=\"$borderColor\" stream=\"$streams\" header=\"$header\"></fb:like-box>";

    added connections=\"$connection\" width=\"$width\" height=\"$height\" options to the line.

  3. kjy112
    Member
    Posted 1 year ago #

    awesome fix. thank you Dmitrijus

  4. ctabor
    Member
    Posted 1 year ago #

    I have no idea where Dmitrijus put that code... I am not a developer.
    But my height is getting cut off also...

    It's not on the home page, as it looks crummy in the footer... but it's on the inside of the site, here is a page:

    http://pursuitathleticperformance.com/blog/

    How do I fix this? Or will there be an update to this plug in?

    I am on WP3.5... and recently updated template also.

  5. idahopotatis
    Member
    Posted 1 year ago #

    Exactly where and how did you do this?

  6. idahopotatis
    Member
    Posted 1 year ago #

    Got the same problem but no clues :

    http://www.primitiv.com

  7. dmitrijus.aldosinas
    Member
    Posted 1 year ago #

    Hi guys,

    the solution is quiet simple - just edit the wp-content/plugins/facebook-like-box-widget/facebook-like-box-widget.php file, and change the first line that start's with $like_box_xfbml to look like this:

    "$like_box_xfbml = "<script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\"></script><fb:like-box href=\"$pageURL\" connections=\"$connection\" width=\"$width\" height=\"$height\" show_faces=\"$showFaces\" border_color=\"$borderColor\" stream=\"$streams\" header=\"$header\"></fb:like-box>";"

    As you can see, it adds some parameters to the whole line, so it passes the height and connection parameters to the facebook script. It should work perfectly.
    Although, one more thing. After you change this line, you should be able to adjust the height of the box through your widget configuration options. You must do it manually - change the height so it would fit your webpage template, and change the connection attribute to adjust how many faces you wanna see in your box. It won't adjust automatically.
    If you have any questions - I'll be glad to help :)

  8. dmitrijus.aldosinas
    Member
    Posted 1 year ago #

    Hello again,

    looks like new WordPress update 3.5.1, which is available from now fixes this bug :)

  9. zena1939
    Member
    Posted 1 year ago #

    I just wanted to say thank you for this post. It helped a lot. Instead of adding connections=\"$connection\" to that line of code I only inserted
    height=\"$height\". For some reason when I added the connections part into the php file it just broke the widget.

  10. groggy72
    Member
    Posted 1 year ago #

    Any sign of an update for this excellent plugin. All the fixes above don't work for me (3.51) and just broke the widget also

  11. groggy72
    Member
    Posted 1 year ago #

    I've tried this exactly:

    Replace the first line beginning "$like_box_xfbml

    with the text below

    "$like_box_xfbml = "<script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\"></script><fb:like-box href=\"$pageURL\" connections=\"$connection\" width=\"$width\" height=\"$height\" show_faces=\"$showFaces\" border_color=\"$borderColor\" stream=\"$streams\" header=\"$header\"></fb:like-box>";"

    and it breaks the plugin in 3.51

  12. groggy72
    Member
    Posted 1 year ago #

    Can confirm that zena's suggestion of adding height=\"$height\" to the code works.

  13. groggy72
    Member
    Posted 1 year ago #

    Does anyone know how to make this responsive?

  14. Peterkopi
    Member
    Posted 1 year ago #

    Mine is broken too :-(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags