• Resolved nsxdarin

    (@nsxdarin)


    Hey all – relatively new to WP & BadgeOS…what I’m wondering is if I can manually have an achievement awarded from a .php script..what I mean is I want to have a standalone .php file on my site that I can call from within a separate application (in my case, Flash) which will then award an achievement to a user who makes certain progress within the Flash game. Example: I want to be able to call a .php script called ‘award.php?Score=pointsID=userid’ which basically just runs ‘badgeos_award_achievement_to_user ( Score, ID)’ – is this in any way possible?

    Darin

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Been a long time since I did anything with flash, but I wonder if ajax is possible within it.

    You could have the php file loaded within WordPress though technically be a separate file from say a theme file, and ajax POST to it. Inside you should have access to all of the BadgeOS functionality.

    The key to whatever solution you find is that BadgeOS and WordPress needs to be loaded at the time of running the php.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any changes to your situation nsxdarin?

    Thread Starter nsxdarin

    (@nsxdarin)

    Got it working…just had the code call a webpage in which I had the award achievement php code, passed the userid and awardid thru the url.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Awesome to hear, and my kudos due to the Flash aspect of it as well 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Award Achievements From Separate Script?’ is closed to new replies.