Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of hnla

Facebook like for BuddyPress (25 posts)

Started 1 year, 6 months ago by: muratk

  • Profile picture of muratk muratk said 1 year, 6 months ago:

    is there a plugin for Facebook Like to be used on BuddyPress ?

  • Profile picture of muratk muratk said 1 year, 6 months ago:

    no one is using Facebook Like?

  • Profile picture of Gpo1 Gpo1 said 1 year, 6 months ago:

    There’s a BP like plugin,but I want a FB like plugin

  • Profile picture of Svenl77 Svenl77 said 1 year, 6 months ago:

    No need of a plugin, just insert


    <iframe src="http://www.facebook.com/plugins/like.php?href=&layout=standard&show_faces=true&width=450&action=like&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px”>

    on the page where you want to add the like button. Then change the permalink to the correct one.
    In the moment its the like script for groups.

    would not be hard to make a plugin for this if someone have the time.

  • Profile picture of muratk muratk said 1 year, 6 months ago:

    fine but we need something dynamic to be put on every post on the BuddyPress site. on forums, groups etc…

  • Profile picture of josemv josemv said 1 year, 6 months ago:

    I think this is the same solution as @Svenl77 posted http://wpmu.org/how-to-add-the-global-facebook-like-button-to-buddypress-profiles-and-activity-stream-items/

  • Profile picture of muratk muratk said 1 year, 6 months ago:

    not at all. we are talking about posts not profiles or activity streams.

  • Profile picture of josemv josemv said 1 year, 6 months ago:

    But as @Svenl77 already stated, you have to taylor the code in order to add dynamic URL for forum posts or whatever. The article uses bp_activity_thread_permalink() for activity stream updates and bp_user_link() for user profiles.
    I think that by adding the parameter for forum posts it will work there. Unfortunately, I do not know which parameter it is.

    Edit: searching http://phpxref.ftwr.co.uk/buddypress/nav.html?_functions/index.html I found bp_the_topic_permalink(). Not sure if it is the correct template tag tho…

  • Profile picture of gregfielding gregfielding said 1 year, 6 months ago:

    I’d like to put this on forums, groups, events, etc…is there a list of template tags somewhere?

  • Profile picture of josemv josemv said 1 year, 6 months ago:

    In the phpxref link I posted before you can find them. Good luck understanding them tho, seems chinese to me…

  • Profile picture of gregfielding gregfielding said 1 year, 6 months ago:

    Here’s the group one to use: bp_group_permalink()

    Here’s the code I used to add a facebook like button to the group header:

    <iframe src="http://www.facebook.com/plugins/like.php?href=&layout=standard&show-faces=true&width=450&action=like&font=arial&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; margin:1px 0px -12px 0px; overflow:hidden; width:450px; height:30px”>

  • Profile picture of josemv josemv said 1 year, 6 months ago:

    If U can find the template tags for forum posts, groups, events, post them here please

  • Profile picture of muratk muratk said 1 year, 6 months ago:

    Sociable for WordPress 3.0 works on BP.unfortunately Like button is on pro version only. On the other hand Facebook share still works.

  • Profile picture of nit3watch nit3watch said 1 year, 6 months ago:

    @svenl77 You said your using it for groups, i tried but it breaks my theme? Did you have any problems? I take it you have it in the group header, think I could look at your code mebe?
    Iv’e tried placing the iframe just about everywere..

    EDIT: was the unclosed iframe

  • Profile picture of Anton Anton said 1 year, 6 months ago:

    @nit3watchhttp://pastebin.com/FzK3L5NE