BuddyDev

Search

[Resolved] CubePoints Buddypress Integration

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 32
    Vlad on #42509

    Hello,
    Found the CubePoints Buddypress Integration plugin,
    but it is deprecated, here is the link https://wordpress.org/plugins/cubepoints-buddypress-integration/
    This code is causing the problem.

    function bp_cubepoint_setup_globals() {

    global $bp, $wpdb;

    $bp->cubepoint->id = ‘cubepoint’;
    $bp->cubepoint->table_name = $wpdb->base_prefix . ‘cubepoint’;
    $bp->cubepoint->table_name = $wpdb->prefix . ‘cubepoint’;

    $bp->cubepoint->slug = get_option( ‘bp_slug_cp_bp’ );

    $bp->cubepoint->points_slug = ‘points’;
    $bp->cubepoint->table_slug = ‘table’;
    $bp->cubepoint->earnpoints_slug = ‘earnpoints’;
    $bp->cubepoint->awards_slug = ‘awards’;
    $bp->cubepoint->bp_cubepoint_per_page = get_option(‘bp_points_logs_per_page_cp_bp’);

    }
    add_action( ‘bp_setup_globals’, ‘bp_cubepoint_setup_globals’, 2 );
    add_action( ‘bp_setup_admin_bar’, ‘bp_cubepoint_setup_globals’, 2 );

    You can fix this.
    I think this plugin might be useful for others.

    Thank you for helping.

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #42510

    Hi Vlad,
    Thank you for the post.

    The cube points plugin is abandoned. It has not been updated for 9 years+
    https://wordpress.org/plugins/cubepoints/

    I will suggest avoiding the above code and looking for the alternatives.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 32
    Vlad on #42536

    Hi Brajesh!

    can you suggest something like that

    Thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #42537

    Hi Vlad,
    My cred is one of the alternatives.
    https://wordpress.org/plugins/mycred/

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 32
    Vlad on #42539

    Thanks Brajesh!
    I am looking at this plugin just now.

  • Keymaster
    (BuddyDev Team)
    Posts: 21801
    Brajesh Singh on #42540

    You are welcome 🙂

You must be logged in to reply to this topic.

This topic is: resolved