Support » Plugin: Achievements for WordPress » creating custom events for achievements?

  • Resolved nadir


    I am planning to use this awesome achievements framework to not only award people using bbpress/buddypress on the web, but points accrued in a game I’ve been working on. I see mentions of an API and I took a look at the extension files that are already made for various supported platforms … I was wondering if there was any documentation or some pointers on where to start?

    I’m hoping to call a PHP script that will translate points earned in game and submit it through the Achievements API.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Paul Gibbs


    BuddyPress Lead Developer

    Hi nadir,

    Sorry that I’ve missed this post until now. I think you’ll need to create some sort of bridge between your external system and WordPress. You could do this in several ways:

    * custom AJAX event
    * custom XMLRPC event
    * some sort of cron-based process running on the web server that interrogates the game server periodically and syncs data up.
    * or use a command-line script (with WP-CLI) on the web server to award/remove achievements.

    Once that’s figured out, as to “how” to award an achievement, take a look at the award() method in which I’ve just written today. It boils down to a call to dpa_maybe_unlock_achievement().

    hello Paul. check your link which >> 404.
    I am hoping to link events in event manager with the badgeos achievements. Does your code go some way to solving that? thanks

    Plugin Author Paul Gibbs


    BuddyPress Lead Developer

    dylan – a lot changes in 5 months.

    Achievements has nothing to do with the event manager or badgeos plugins; they are separate plugins by other people, and as such I can’t advise on them here.

    Mods – can we lock this thread that’s been dragged back up? Thanks.

    Got it :).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘creating custom events for achievements?’ is closed to new replies.