Skip to:
Content
Pages
Categories
Search
Top
Bottom

Achievements with BP-Album

  • Avatar of karlschweigert
    karlschweigert
    Member

    @karlschweigert

    I’ve managed to get the Achievements plugin to work with BP-Album! Thank you very much for the help you listed on your site!

    Could you please let me know how to REMOVE points when someone deletes an image? I couldn’t find a do_action corresponding to user picture removal.

    The code I used to add the BP-Album achievement is as follows:

    ‘function dpa_handle_action_bp_album_data_after_save() {
    $func_get_args = func_get_args();
    dpa_handle_action( ‘bp_album_data_after_save’, $func_get_args );
    }

    function myplugin_set_action_category_name( $category_name, $category ) {
    if ( __( ‘Other’, ‘dpa’ ) == $category_name && ‘bp_album’ == $category )
    return __( “Buddypress Album Plus”, ‘bp-album’ );
    else
    return $category_name;
    }
    add_filter( ‘dpa_get_addedit_action_descriptions_category_name’, ‘myplugin_set_action_category_name’, 10, 2 );

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

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