Skip to:
Content

BuddyPress.org

Opened 8 years ago

Last modified 4 years ago

#6806 new enhancement

Activity Bump for marked favorite and new replies

Reported by: vapvarun's profile vapvarun Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version:
Component: Activity Keywords:
Cc:

Description

It could be great. Favorite this, an activity that touch lot of people could be seen longer (because it could be pushed at the top of the list more frequently) same for new responses on a particular activity. It will increase the member engagement on the popular activity. We can keep it as optional. I have attached modified/ working version of the old plugin for Activity Bump which is no longer maintained in WordPress repo.

Attachments (1)

buddypress-activity-bump.zip (9.3 KB) - added by vapvarun 8 years ago.
Activity Bump for new replies

Download all attachments as: .zip

Change History (12)

@vapvarun
8 years ago

Activity Bump for new replies

#1 @DJPaul
8 years ago

  • Keywords 2nd-opinion added
  • Milestone changed from Awaiting Review to Under Consideration

Hi @vapvarun

Thanks for sharing your idea. I think it's worth considering, but the popularity algorithm (and how we'd store that in the database) I think would need to be more complex than merely bumping a timestamp when something's updated, which brings its own scaling problems. Otherwise, I think you'd see a lot of spamming going on because it would be so trivial to fill up a screen with own spam content.

I had found a good and simple algorithm online a couple years ago that I thought might be good for something like this. I'll try to find it again.

#2 @DJPaul
8 years ago

  • Type changed from idea to enhancement

#3 @DJPaul
8 years ago

  • Milestone changed from Under Consideration to Awaiting Review

#4 @imath
8 years ago

@vapvarun The BP Reactions plugin is adding a popular tab to the activity directory where activities are displayed according to the number of reactions (Favorites or likes) they got. Waiting for this ticket to evolve, you can probably test this plugin to see if it match your needs > https://wordpress.org/plugins/bp-reactions/

#5 @vapvarun
8 years ago

@imath I have checked the BP Reaction plugin, it will add the tab for favorite but idea is to display that specific activity first which have recently received any reaction , Like if i have reacted or commented on a 1 month old activity, it should display first At present we are not updating the timestamp of the activity on the basis of we have marked favorite , added comment or added reaction on it.

Best example is Facebook itself, if someone add a like or comment on your old post it will display first on your activity feed.

#6 @imath
8 years ago

Editing the activity date when it has been favorited (or commented) seems wrong to me, that's why i haven't took this road. The activity hasn't change, it has not been updated. Do you edit the date of a WordPress post when it received a comment ?

I've quickly look at the content of your zip and it seems you're doing so. BTW you shouldn't use extract and use buddypress() instead of global $bp ;)

#7 @vapvarun
8 years ago

@imath yes sure editing timestamp will be wrong approach, It was just a demonstration what need to be done at that time. The approach which i was planning initially to save timestamp for each action inside activity meta for mark favorite and comment or any other action scope which can be added by any other plugin like like reaction and add one more filter popularity to display them on the basis of their latest timestamp for each activity from activity meta. It will need very less modification. If you agree i can provide some codes to demonstrate it.

#8 @imath
8 years ago

the problem here will be to know the impact on queries/loading time for let's say thousands of favorited activity.. So if you want to work on a patch, you're very welcome, but i advise you to take this problem in account :)

#9 @DJPaul
8 years ago

  • Keywords 2nd-opinion removed
  • Milestone changed from Awaiting Review to Future Release

Having an alternate algorithm to show popular activity (vs. most recent) is a fun idea. Things like comments on the ticket, reactions, etc, would feed into it.

#10 @vapvarun
6 years ago

@DJPaul tried with adding activity meta activity_bump_date and used the same meta value to pass values to ajax query string. We can use the same approach to save it as serialized data if we want to keep all like and comment on that activity, but that will be necessary.

https://github.com/vapvarun/bp-activity-bump
https://screencast-o-matic.com/watch/cFVT2OoOlT

This ticket was mentioned in Slack in #buddypress by vapvarun. View the logs.


4 years ago

Note: See TracTickets for help on using tickets.