BuddyPress Like
-
I’ve just submitted my first plugin to the WP Plugin repo, it adds the ability for users to ‘like’ activities on a users stream.
Still in a basic state, I’m going to be updating it over the coming days to include many other social areas of BuddyPress.
-
Oh, and I also get an HTTP error when trying to upload a new image.
I can report the same problem of not being able to post an article after installing the plugin.
Also:
Is there an area within a users profile to see the items that they ‘like’?
I was picturing a tab ‘my likes’ where I could see all the activity streams that I ‘liked’ and also have the ability to ‘unlike’ an item.
@Hempsworth: European Portuguese.
On 2 different test sites (WP with BP, not WPMU) everything works ok except for 3 things:
1 – the “view likes” button doesn’t appear on all activity streams items where it should appear;
2 – changing the visibility setting doesn’t change a thing (maybe it’s because I’m using the admin account);
3 – on one site the “load more” link in the bottom of the activity stream stopped working and in the other site, it loads the items with the original language, not the translation.
I will test it better as soon as possible.
Ricardo
I ‘like’ @hempsworth ‘s rating plugin.
I just don’t think options table is the right place to store language translation.
I have to delete bp_like_settings from sitemeta table with phpmyadmin.
Then reactivate this plugin before my translation shown up.
But after all. I vote this plugin to be in the core
before other developer make other rating capability in their plugin.
Okay, that was an embarrasing release! But thanks for your patience guys, sorry for the mess up!
BuddyPress Like 0.0.7 is now available.
* Fixes a couple of major bugs
* Bug fixed: Posts, drafts etc would not be saved, giving error “You do not have permission to do that.”
* Bug fixed: Could not save ‘Likers Visibility’ options from the BuddyPress Like settings screen
@paulhastings0, @Anointed, @Rbl
Thanks for letting me know about the bugs, 0.0.7 fixes the ‘You do not have permission to do that.’ error you have been experiencing.
0.0.7 also fixes the issue of display options not being saved. However, it doesn’t address your other issues:
* “%user% likes an activity” type updates will not be translated into the custom version, as these have been saved to the main BuddyPress Activities table of the database *prior to the custom messages*. So I think the ‘untranslated’ activities you are seeing were made before you upgraded? That’s why they appear to be untranslated after you hit the ‘View more’ button.
* I cannot confirm the bug you noticed about ‘View more’ button not working; but I’ll do a bit of testing to find out!
* The ‘View likes’ button currently doesn’t appear on ‘mini’ activities, this is intentional due to styling problems, however that will be fixed in a later version.
The custom messages are not intended to be translations as such, but to allow site admins to change ‘like’ to ‘love’ or similar. This is just to allow flexibility. Localization comes from the defaults being provided in the desired language.
Well done. Like it!
Did notice a missing % in the editable strings. Seems minor..
How about miniature avatars instead of names?
Also, is there a function which you can call on the viewed single item (e.g. single blog post, single activity item) so you can see a list of avatars who all liked this item?
Great work…integrates nicely.
Thanks for pointing that out, has been fixed in 0.0.8-dev
That’s a great idea, I’ll certainly start work on that soon!
A nice feature would be to be able to suppress the built-in favoriiting of BP 1.2. I use a child theme off of this simply for aesthetics and know I could just remove that function template by template. But it’d be nice to just kill it with a switch.
The redundancy between BP Like and Favorites is keeping me from using BP Like.
Thanks,
~k~
Is it possible to apply this plugin to only one specific groups forum posts?
I know the id of the group as it’s already created.
Bug report: if Friends are disabled in Buddypress components in the dashboard, hitting the View Thanks link in the activity stream to see who thanked an item results in the expanding div opening with an error message.
Fatal error: Call to undefined function friends_get_friend_user_ids() in \xampp\htdocs\mefightclub\wp-content\plugins\buddypress-like\bp-like.php on line 381
How is BuddyPress “Like” better than the existing BuddyPress Favorites functionality?
I was initially excited about this plugin, and I really appreciate Hempsworth’s efforts because it works great… but I kind of agree with r-a-y in that it’s probably best to extend the existing BuddyPress “favorite” functionality:
Hey Hempsworth, looks good!
But, do you think it would have made more sense to take advantage of BP’s already-available favorite button?
I’m happy to be convinced otherwise, but at the moment I don’t see the point, and if even I can’t see the point, then my users are going to be freaked out.
I think that “like” has legs…we just need to figure out a better use for it. Perhaps a “most liked” widget?
Personally, I would love to see “like” expanded to include blog posts within MU, making it function like an internal tweet, promoting good posts in the activity stream.
Same with “Favorites”
+1
What would be if the Like plugin adds a global “Like” Directory with Filters such as “Most Recent – Top in 24 Hr – 7 Days – 30 Days – 365 Days”.
This would definately help to find the most interesting content and would give “Like” a more concrete and useful sense.
Maybe we could talk to Andy if the “Favorite” Button could be renamed in “Bookmark” – so they wouldn’t conflict with “Like” anymore?
I don’t know how ambitious Hempsworth is to enhance “Buddypres Like” in this direction?
I like “bookmark”
I was actually going to try and figure out how to rename the button “Add to My Favorites”
It definitely should be a little more intuitive as to what it means…
I think a widget of a page showing the “Most Liked” items over different time periods would be awesome! And yes, “Favorites” really does act more like “Bookmarks”.
@gregfielding – I have tried changing ‘favorite’ to ‘bookmark’, but with no luck. It’s easy enough to change it on a basic level, but it will change back to ‘favorite’ when you ‘remove bookmark’.
There’s something buried in the core files I can’t seem to find. I’ll do a new post on this.
Like in and of itself isn’t useful. What’s useful is what you then do with the data that people have liked. For example, you can send email notifications to people who have liked something that then gets commented on. You could show information in a feed based on previous likes. You can do lists of most liked items. etc.
This is a good baseline that can be built on. Plus, users for some reason like clicking the like button. It’s another form of communication without having to think of a comment.
What would be cool is to take it a step further and make the plugin agnostic and have multiple buttons. For example, I might want a like, dislike, and sarcastic like button (or whatever creative things people come up with).
“What would be cool is to take it a step further and make the plugin agnostic and have multiple buttons. For example, I might want a like, dislike, and sarcastic like button (or whatever creative things people come up with). “
Lovely. In a futuristic version perhaps the poster can set up different buttons for his/her post.
Is there a way to get the “User likes Users activity” to show up under their post like a reply?
Thanks!
Here’s what I have so far that seems to work, you can’t delete your reply by hitting unlike, but you can with the delete button. This starts at line 310.
/* bp_activity_add( array( 'action' => $action, 'component' => 'bp-like', 'type' => 'activity_liked', 'user_id' => $user_id, 'item_id' => $activity_id ) ); */
/* Add like as reply instead of new post in activity stream */
$comment_id = bp_activity_new_comment( array(
'content' => $action,
'activity_id' => $activity_id,
'parent_id' => $parent_id
));if ( !empty( $comment_id ) )
bp_core_add_message( __( 'Reply Posted!', 'buddypress' ) );
else
bp_core_add_message( __( 'There was an error posting that reply, please try again.', 'buddypress' ), 'error' );/*bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id );*/
add_action( 'wp', 'bp_activity_action_post_comment', 3 );
/* End Like Reply */
I’ve ported this (in a very semi-informed and probably mistake-filled way) to work with Forums posts. Works flawlessly on my testbed install, and I’ve been trying to contact Hempsworth here and via his site(s) to send him my work if he’s interested in using it at all.
Posting this here in case he sees it and not email or PM or etc.
- The topic ‘BuddyPress Like’ is closed to new replies.