• Resolved Hunterwolf

    (@hunterwolf88)


    Hello,

    I have implemented a system integrating ULike, Buddypress and Mycred for credits management and I’m very satisfied!
    Thanks for the great plugin!

    However I need that everyone automatically “unlike” a Buddypress activity when it’s creator decides to delete it.

    The reason is that I want to “undo” like points trade if a Buddypress activity is deleted, and I think the fastest way is to trigger Mycred hooks “Points for unliking content” and “Points for Author Who Get Unliked” for everyone before the deletion.

    Maybe another solution is to give likers 1 point when author deletes activity they liked, and remove that total from the activity author, but that’s more a MyCred stuff!

    Would anyone be kind enough to help me? ??

    • This topic was modified 4 years, 6 months ago by Hunterwolf.
    • This topic was modified 4 years, 6 months ago by Hunterwolf.
Viewing 1 replies (of 1 total)
  • Plugin Author Alimir

    (@alimir)

    Hi @hunterwolf88

    This is possible!. But it’s a bit complicated.
    In the first step, you need to check what hook is running when deleting an activity. Then take the ID of that activity and in the mycred structure, check if there is a score with ref_type = _activityliked and then delete it.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove likes before Buddypress activity deletion (MyCred)’ is closed to new replies.