Ready to get started?Download WordPress


Achievements for WordPress
[resolved] [closed] creating custom events for achievements? (5 posts)

  1. nadir
    Posted 1 year ago #

    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.



  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    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 https://github.com/paulgibbs/achievements/blob/master/includes/class-dpa-wpcli-achievements-users-command.php which I've just written today. It boils down to a call to dpa_maybe_unlock_achievement().

  3. Dylan Jenkins
    Posted 10 months ago #

    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

  4. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 10 months ago #

    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.

  5. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Got it :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic