Replies
@sbrajesh, before then. is there a php snippet or method you could help with, that could be used to limit the number of persons a user can follow?
The plugin in question is this one :
https://wordpress.org/plugins/buddypress-followers/…it’s a bit urgent , i’ld appreciate your help
Hello bro @tosin
Thanks,
I wonder why something that generic doesn’t exist yet
—
But I trust brajesh would look into it nonethelessHello brajesh,
I meant “FOLLOWING” , not friendship
….
The suggested plugin does not limit followingI did thru email ..thing is most of these guys are hardly ever responsive .. It’s a major reason why i’m always here… They never respond boss ..
i mean an event like:
// See if the 1st level for this cycle is full
if ( $level_1_count == $cycle_max_width )Or
// See if the 1st level is full
if ( $level_1_count == $max_width )loop through all levels
If yes and the level max_width is filled up
…
Then add trigger action to award the current user a badge/point/rank. ..etc for filling up his level to max width
….
….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 correctlyI 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 🙏
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