Achievements for WordPress
[resolved] Feedback: Earn Achievements With Karma (5 posts)

  1. mikebronner
    Posted 3 years ago #

    Maybe I'm thinking about this the wrong way: is there a way to set up an achievement based on the Karma score of a user? I would like to set up achievements that are automatically earned as they reach a certain score, to signify their level, so to speak.

    Is this doable, even with some coding?

    Thanks again, Paul!


  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    You could try creating an event type of "dpa_unlock_achievement". See the bottom of the dpa_maybe_unlock_achievement() function in includes/core/functions.php.

    I suspect this will end up creating an infinite loop (because awarding an achievement from the "dpa_maybe_unlock_achievement" event will trigger another "dpa_maybe_unlock_achievement" event...) or it will cause the database to be queried twice for the event type. :)

    We'll probably need to figure out how to handle this elegantly. In the old Achievements 2.x I had some special handling to stop these situations occurring, but it was so long ago, I can't remember what the exact problem was.

  3. wickstim
    Posted 3 years ago #

    Levelling up is an awesome idea, did you end up making any progress in this area?

  4. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years ago #

    I haven't had time, so no.

  5. Artisantopia
    Posted 3 years ago #

    @mikebrommer - I just found this after posting my question here - http://wordpress.org/support/topic/ranking-based-on-karma-points?replies=1

    I think we are after a similar thing!

    Have you made any progress with this?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Achievements for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.