WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mikebronner
    Member
    Posted 1 year 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!
    ~Mike

    http://wordpress.org/extend/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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 1 year ago #

    I haven't had time, so no.

  5. Artisantopia
    Member
    Posted 1 year 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?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.