Skip to:
Content
Pages
Categories
Search
Top
Bottom

Intergating with Achievements being unlocked

  • Avatar of Armin
    Armin
    Participant

    @electron88

    I want to add additions so when an achievement is unlocked, a user gets a BuddyPress gift or Points from cubepoints. How can I do this because the development post I have read is very confusing for a non developer like me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Avatar of techguy
    techguy
    Participant

    @crashutah

    I’d put some developer speak here, but it will be hard to do that integration without being a developer. I’m sure it wouldn’t cost much to pay a developer to do it though. The hooks are probably there already.

    Avatar of Armin
    Armin
    Participant

    @electron88

    I am familiarizing myself with wordpress/buddypress. I just need to know where to start. I basically want to learn this since it is interesting for me.

    Avatar of techguy
    techguy
    Participant

    @crashutah

    This is a good place to start: http://codex.wordpress.org/Plugin_API But it does require you to have a bit of understanding of PHP also.

    Avatar of Armin
    Armin
    Participant

    @electron88

    It will be very complicated towards adding like different points or gifts to different achievements. Why can’t there be an option when your making a achievement that there is a field for entering a code.

    So when achievement is unlocked, this code would run once.

    It’s a very bad idea to allow input directly from the web to run in PHP, plus it assumes a level of technical competence that most users probably don’t have.

    First of all, you need to find out how to send gifts via BuddyPress Gifts plugin or use points from Cubepoints. Do those plugins have any documentation, or have you contacted their developers for assistance?

    Avatar of Armin
    Armin
    Participant

    @electron88

    CubePoints does:

    if( function_exists(‘cp_alterPoints’) && is_user_logged_in() ){
    cp_alterPoints(cp_currentUser(), POINTS);
    cp_log(‘Achievement’, cp_currentUser(), POINTS, 1);

    Replace POINTS with number.

    Source: http://gradly.net/wp-content/plugins/cubepoints/docs/docs.html

    Avatar of Armin
    Armin
    Participant

    @electron88

    I finally managed to figure this out. I put the cubepoints code somewhere in the core that works perfectly now. Users get x cubepoints per achievement they unlock. The only problem is its the same amount for all achievements but its still good since its working. :)

    Avatar of josh101
    josh101
    Participant

    @josh101

    @Armin can you explain how to do this because if so i will use this plugin as well.

    @armin I second josh101’s request. :)

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

The forum ‘Achievements’ is closed to new topics and replies.