• Resolved bladerzzz

    (@bladerzzz)


    Hi Gabriel,

    Thanks for your great plugin!

    I have noticed something (has to do with Buddypress hooks) that might be a bug?

    I did some site testing and this is the scenario:

    When I add a new friend, say John, I get a point and John gets 1 point as well.

    If I delete John as a friend, I get -1 point and John gets -1 point as well.

    But when I try to add John back as a friend, I no longer get 1 point nor does John.

    I checked the logs, and indeed the new activity is no longer being recorded. It seems that it will not record a new log if a previous similar log exists. I deleted the first log of me adding John as a friend, and tried adding him back and that worked. I got 1 point again and so did John. So there must be a problem with the way points are logged?

    Would really appreciate your help!

    Thanks!

    https://www.ads-software.com/plugins/mycred/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bladerzzz

    (@bladerzzz)

    I figured it’s because of the ‘has_entry’.. Removing the line of code under Adding a friend and Deleting a friend fixes it. But i’m not sure if that’s ideal. I guess because the ‘has_entry’ checks that it is the same entry thus disallowing it to add a new similar log entry.

    Plugin Author myCred

    (@designbymerovingi)

    Hey bladerzzz.

    Yes you are correct, right now the hook checks to make sure the entry is unique which will result in what you are describing. I think the best solution would be to check if a user already has a friendship instead of a unique entry.

    Ill investigate and include a solution for 1.5

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Friendship Points Possible Bug?’ is closed to new replies.