thought the issue was how the data is recorded i,e not possible to cross reference to an activity – this is an interesting one to have a look at though as being able to easily look at data and produce stats would be good.

The OP is just asking for a total count.
Pretty easy to hook in and ++ / — a count within wp_bp_activity_meta table.

But a custom table would be better, imo,
You could use it for a total count scan.
And you could get specific about favs based all members – not just favs specific to a member as per the serialized array.

AND – get it out of wp_usermeta table – hurrah.!
The use of that table is becoming a real scalability issue.
Things like last_activity in user_meta is slooooow.
I think boone wants to move last_activity for BP 1.7 and use an existing activity table.

So maybe a redo of favorites is a natural task for 1.7 ?

edit – just saw the Paul comment that says:
“During development of BuddyPress 1.7, I’ll be revisiting the Like in BP Labs.”

Well, it’s one of the things I am more interested in to look at adding to core. Of course, just like anyone else, I need to make the case to the rest of the team that there ought to be a Like in BuddyPress, which is why I had a bit of an experiment in my Labs plugin.

If people like the idea for core, I would suggest they think the idea of a Like button through — bearing in mind we are changing how theming will be easier in 1.7 — in terms of where the button(s) should be, what should it do, any options it might merit, how it would replace Activity’s existing Favourite button. Perhaps even think about how it could be implemented in the code, and where the likes should be stored in a database, and how other 3rd party plugins could extend the Like button (I might want to make it work with my Achievements for BuddyPress, for example).

In addition to displaying the favorite count under each activity item, it would be nice to display a list of usernames who have favourited that item. Each usernames could be linked to the corresponding profile page. Similar to how the Instagram feed currently looks.

I think this would add a new level of engagement to the activity stream.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Display number of times an activity feed entry has been favorited’ is closed to new replies.