• Resolved carlobudree

    (@carlobudree)


    Good day

    I’m new to BadgeOS. Might be a stupid question, but have been battling to resolve. Phase 1, I want to allocate points only (excluding badges) to members of the site for various activities. Started with one activity (read an article). I’ve setup the achievement type and inserted the shortcode into the article, but it does not auto-allocate the points to the member. I’m also using the leaderboard widget/add on which displays 0 for all members. I’m clearly doing something wrong, could you assist?

    https://wordpress.org/plugins/badgeos/

Viewing 1 replies (of 1 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    I don’t believe we have a default available trigger for *reading* something.

    If you’re a coder this will make sense, if you’re not a coder, stop now and just let me know 🙂

    This would have to be something custom. It’s not tested at all, but logically this will make sense. This could either be done via a shortcode, or perhaps a filter on the_content. You’d want to grab the $post global, check that it’s an achievement type, and if it is, use something like badgeos_maybe_award_achievement_to_user. You’d pass in the current user, the achievement ID which you could get from the $post global, and the rest theoretically should work out and award it IF the user is still eligible.

Viewing 1 replies (of 1 total)
  • The topic ‘Point allocation’ is closed to new replies.