Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of dragosstancu
    dragosstancu
    Member

    @dragosstancu

    The same time, the login achievement action gives points like crazy! maybe I messed up something :)

    Avatar of dragosstancu
    dragosstancu
    Member

    @dragosstancu

    Paul,

    First of all, thanks a lot for this plugin!

    Question:

    I added my own code, in functions.php:
    `
    function wf_unlock_achievement_coins_register() {
    global $bp;
    $user_id=bp_loggedin_user_id();
    if($user_id>0){
    do_action(‘coins_register’,$user_id);
    }
    }

    function dpa_handle_action_coins_register() {
    $func_get_args = func_get_args();
    dpa_handle_action( ‘coins_register’, $func_get_args );
    }

    function wf_record_coins_register() {
    bla ….
    }
    add_action(‘coins_register’, ‘wf_record_coins_register’);

    When I call wf_unlock_achievement_coins_register() from my register coin page, it happens only once. Is that supposed to be the way it works?
    I want to keep giving points to users for registering more coins.

    Is there a parameter/setting i’m missing?

    Thanks a lot mate!

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