Thanks to those who have been testing the alpha and revealed a couple of bugs.
0.0.8 Beta is ready for final testing.
- Fixes a bug which stopped avatars of likers being shown
- Gives admins the option to choose how long an excerpt should be
To test the like feature with blog posts simply paste the following code into your theme (within the loop) wherever you would like the button to appear:
<?php bp_like_button( get_the_ID(), ‘blogpost’ ); ?>
This is normally in single.php and index.php in the <p class=”postmetadata”></p>
Get hold of it from the SVN repo: http://plugins.trac.wordpress.org/browser/buddypress-like/trunk
It will temporarily be available for download as a zip as well: http://alexhemptonsmith.com/downloads/buddypress-like.0.0.8-beta1.zip
Hi! I Like the concept of your Like button! Good work!
However, There’s a bug in my installation – I suppose it’s because i have “Friendships” turned off! I looked in your code and it seems that alot of calls that have to do with friends, i.e:
friends_get_friend_user_ids()it would be GREAT if this plugin would work for us who have communities with users but with Friendship-links turned off!
do you have any idea how I can replace those lines of code that deal with “get_friend_user_ids” to only
get_user_ids()?Best regards!
Thanks for the bug report!
To fix this I am:
* setting the default privacy setting to ‘show names of all likers’ for sites with friendships disabled (by default it’s ‘show names of friends, and just the number of non-friends’). This setting will also kick in when the friends component is disabled.
* disable the option for the aforementioned ‘show names of friends, and just the number of non-friends’ privacy setting on sites with friendships disabled.
* add a check to the ‘Show likes’ function just incase
This will come in Beta 2
where do i get the code for statistics… i mean you can like… but soemwhere there must be a list oft the most liked posts? or?
cheers… and thank you for the plugin work
Version 0.0.9 (already in the works) has a shortcode which allows you to get recently liked content, as well as the most liked content. There are also a bunch of stats functions if you want to do something custom with the data in a plugin or a themes functions.php file.
Agree with both comments, I just have followers, no friends and it would be really good to bump to top of acitvity stream when liked.
Something like friendfeed?
Great work though, when are we looking at the beta 2 release?
Beta 2 is ready now (http://wp.me/pP9cz-K), and doesn’t require the friends component to be activated.
Looks great.
`
/* Grab the content and make it into an excerpt of 140 chars if we're allowed */
if ( bp_like_get_settings( 'show_excerpt' ) == 1 ) {
$content = 'Liked Content: --- '.$activity['activities'][0]->content.'';
if ( strlen( $content ) > bp_like_get_settings( 'excerpt_length' ) ) {
$content = substr( $content, 0, bp_like_get_settings( 'excerpt_length' ) );
$content = '(EXCERPT) '.$content.'...';
}
};
</code`
Can’t post code… I’m copying you what I’m using for the excerpt issue here:
http://musicpln.org/picts/holder/bp-like.php Right-click Save AS….
This text is working well for knowing when something is an excerpt or not… Please consider adding something like this in the next release… it looks nice and clarifies.
When you post your beta/plugin with the donation link… I’ll be glad to send you the 20.00 US.
Very nice.
Thanks for the suggestion. See how I’ve tried to show that the excerpt is a quote on the latest 0.0.8 Beta 2 (http://wp.me/pP9cz-K), hopefully it’s clear enough. But I’m willing to consider other options.
So does this not work if you have friends deactivated? Any news on a beta 2 release?
Thanks a lot, great idea.
Beta 1 and previous versions would not work correctly is friends were disabled. Beta 2, (http://wp.me/pP9cz-K) fixes this problem!
Dont know if Im missing something, but cant see the ‘show likes’ in beta 2?
I am really impressed together with your writing talents and also with the format in your weblog.
Is that this a paid subject or did you modify it yourself?
Either way stay up the excellent quality writing, it’s rare to look a great weblog like this one nowadays..