BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Auto assign user badge on a fulfilled requirement #43738

    I tried the plugin last night

    & I followed a tutorial article and tried to trigger if a user has completed a level or has reached max-widith in his matrix tree

    The function i used below:

     function my_prefix_custom_activity_triggerso( $triggers ) {
        // The array key will be the group label
        $triggers['award point on level complete'] = array(
            // Every event of this group is formed with:
            // 'event_that_will_be_triggered' => 'Event Label'
            'affwp_mlm_check_level_1_complete' => __( 'if mlm level is complete', 'gamipress' ),
            // Also, you can add as many events as you want
            // 'my_prefix_another_custom_event' => __( 'Another custom event label', 'gamipress' ),
            // 'my_prefix_super_custom_event' => __( 'Super custom event label', 'gamipress' ),
        );
        return $triggers;
    }
    add_filter( 'gamipress_activity_triggers', 'my_prefix_custom_activity_triggerso' );
    
    function my_prefix_custom_listenerx( $args ) {
        // Call to the gamipress_trigger_event() function to let know GamiPress this event was happened
        // GamiPress will check if there is something to award automatically
        gamipress_trigger_event( array(
            // Mandatory data, the event triggered and the user ID to be awarded
            'event' => 'affwp_mlm_check_level_1_complete',
            'user_id' => get_current_user_id()
            // Also, you can add any extra parameters you want
            // They will be passed too on any hook inside the GamiPress awards engine
            // 'date' => date( 'Y-m-d H:i:s' ),
            // 'custom_param' => 'custom_value',
        ) );
    }
    // The listener should be hooked to the desired action through the WordPress function add_action()
    add_action( 'affwp_mlm_is_level_complete', 'my_prefix_custom_listenerx' ); 


    but it’s not triggering still, i don’t know if i have the function set correctly

  • Participant
    Level: Enlightened
    Posts: 69

    I appreciate all you do ..and this is why i say all the time..you a wonderful guy.

    Please assist me with a short-code for an auto-suggest field (a shortcode i can put on any page) .. where a user can just type in who he wants to follow. (1 person, And can’t change or follow any other person again) – i will be very grateful boss ..please im sorry for being a bother on this issue 🙏

  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43585

    Or a shortcode for an auto-suggest drop-down field

    where user can just type in a username to follow (just 1 following).
    —–

    this would be alot easier because, This way I can hide the short-code from non-affiliate users.

    -Please respond to me on if this one would be possible

  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43574

    Is it possible to force affiliates to the buddypress members-list page to follow only 1 person ? Immediately after they become affiliates , and after following someone, direct them to their affiliate-account page (Only affiliates will see the follow button on the members list alone)

  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43500
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43498
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43464

    //What we can offer you is a way to let your users follow other user’s who are affiiliates//

    —–
    Please boss , how do i get already logged-in buddypress users to auto-follow their referrers ?

  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43416

    Can you suggest a way to get around the issue?

    What about if a user goes to the members list

    Searches for his sponsor on the member list and then Hits the “follow” button

    A function By hitting this follow button also makes him become an affiliate ..under that sponsor

    This way he is joins the affiliates , under that sponsor and also automatically follows them.

    —–

    Or making a shortcode (to put on each users affiliate profile) – for an auto-suggest field where users can type in the name of their sponsors ..and then would not be able to change it again?

    ——

    Is this possible to achieve?

    What do you suggest?

  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43415
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 69
    evil lizard on in reply to: Buddypress Auto-Follow from other registeration page #43361
    This reply has been marked as private.