Replies
- evil lizard on March 8, 2022 at 7:26 am 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 - evil lizard on March 1, 2022 at 7:46 am in reply to: Buddypress Auto-Follow from other registeration page #43628
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 🙏
- evil lizard on February 26, 2022 at 4:54 pm 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
- evil lizard on February 25, 2022 at 5:27 pm 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)
- evil lizard on February 22, 2022 at 10:43 pm in reply to: Buddypress Auto-Follow from other registeration page #43500This reply has been marked as private.
- evil lizard on February 22, 2022 at 8:30 pm in reply to: Buddypress Auto-Follow from other registeration page #43498This reply has been marked as private.
- evil lizard on February 21, 2022 at 7:32 pm 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 ? - evil lizard on February 20, 2022 at 3:29 pm 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?
- evil lizard on February 20, 2022 at 3:26 pm in reply to: Buddypress Auto-Follow from other registeration page #43415This reply has been marked as private.
- evil lizard on February 19, 2022 at 6:03 am in reply to: Buddypress Auto-Follow from other registeration page #43361This reply has been marked as private.