Add Instant Activity to BuddyPress With a Customizable ‘Like’ Button

February 26, 2010  | 
4 Comments

I’d like to introduce you to a fun new plugin for BuddyPress that will spark up another dimension of user activity on your social network. The BuddyPress Like plugin has arrived on the scene. This plugin will add a “Like” button, similar to what you’ve seen on Facebook, for logged in users to like activity items in the stream. It will also display how many people have liked a certain item and update the user’s activity stream to show who liked that item. A “view likes” button will appear next to an item that has been liked and clicking on it will display the users who have liked it. One great thing about this Like button is that you won’t receive tons of notifications of people having commented on something that you liked. No chance of notification overload.

People relish the opportunity to express their preferences on any number of topics, especially on the activities of their friends in a social network context. I’m going to show you how to use this plugin as well as customize it to suit the needs of your community.

Download the BuddyPress Like plugin. Install it. Activiate it.

There are currently no options for this plugin. It simply works right away.

How to Change the Color of the Button

You may like it how it is, but I wanted to draw more attention to the like button. I changed it to green, because I think it’s more clickable that way. If you’re interested to change the color, this is how you do it:

Add this bit of CSS to your child theme’s CSS file located at: yourtheme/_inc/css/default.css

.like {
background:#55C940 none repeat scroll 0 0!important;
border-bottom:1px solid #48A838!important;
border-right:1px solid #48A838!important;
color: #ffffff!important;
}

How to Change the Word ‘Like’ to Something Else

There are any number of ways that you can use this plugin. Right now the plugin allows you to like things in the activity stream, but in the future the developer plans to add ‘liking’ of other social elements of BuddyPress. I would also be interested to see a “Dislike” button as well as dashboard options to change the word ‘like’ to something else. However, for now you can change it by modifying the bp-like.php file. In this example we will change ‘like’ to ‘recommend’ :

Search for this:

if ( !bp_like_get_activity_is_liked() ) : ?>
		<a href="" class="like" id="like-activity-<?php bp_activity_id(); ?>" title="<?php _e( 'Like this item', 'buddypress' ) ?>"><?php _e( 'Like', 'buddypress' ); if ($liked_count) echo ' (' . $liked_count . ')'; ?></a>

Replace ‘Like’ with ‘Recommend’ as well as ‘Like this item’ with ‘Recommend this item’

Beneath that in the next few lines you will see ‘Unlike’ and ‘Unlike this item’ as well as ‘View likes’. Substitute ‘Un-recommend and ‘View Recommendations’, etc., or whatever words you choose.

Using the word ‘recommend’ would be especially useful in the case of a business directory or professional networking site. You can modify it to say ‘Vote Yes’ or ‘Attending’ or any custom words for your site. I’m excited to see how the developer will improve the plugin in the future. Experiment with it and have fun!

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - Send beautiful html email newsletters, from WordPress!

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - Open an Online Store with MarketPress

Out of all the WordPress ecommerce plugins available, this has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - Add bottom corner (or anywhere else) chat to your site

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - Start your own Quora / StackOverflow / Yahoo Q&A site

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress + Google Maps = Perfect

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

4 Responses to Add Instant Activity to BuddyPress With a Customizable ‘Like’ Button

  1. Cool plugin.

    How is it different from the Favorite button though? I feel both might be a recipe for confusion.

  2. Is it possible to replace the word like with an image?

  3. Great idea, but the power of Facebook like button is that it can be integrated into other websites. For Buddypress, can you integrate it to WPMU member’s site so that members of Buddypress network can like each other posts/sites?

    Thank you

  4. Please, someone help me…

    I just can not change the Like to another word.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting