• Resolved Zlato

    (@zlato)


    Hi quan_flo
    How to remove specific users from trecking
    I use this code for remove from sidebar user id 1,4,40,84 but in your wigest they still there:

    dd_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users' );
    
    function buddydev_exclude_users( $args ) {
    	//do not exclude in admin
    	if( is_admin() && ! defined( 'DOING_AJAX' ) ) {
    		return $args;
    	}
    
    	$excluded = isset( $args['exclude'] )? $args['exclude'] : array();
    
    	if( !is_array( $excluded ) ) {
    		$excluded = explode(',', $excluded );
    	}
    
    	$user_ids = array( 1,4,40,84 ); //user ids
    
    	$excluded = array_merge( $excluded, $user_ids );
    
    	$args['exclude'] = $excluded;
    
    	return $args;
    }

    THX MAN ??

    https://www.ads-software.com/plugins/buddypress-who-clicked-at-my-profile/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author quan_flo

    (@quan_flo)

    The action you use to filter is not used by the plugin.

    See https://plugins.trac.www.ads-software.com/changeset/1380129

    I added this as filter. 3.4 will have this included. see faq section for the correct usage.

    if you like the plugin feel free to rate or donate for it.

    Thanks
    Florian

    Thread Starter Zlato

    (@zlato)

    HI Thx now works just fine.
    iTRY TO TRNASLATE THE PLUGIN IS THIS CORECT : buddypress-wcamp-sl_Sl
    Is this ok tu put language file : /plugins/buddypress-who-clicked-at-my-profile/languages/buddypress-wcamp-sl_Sl

    I use the budypress ver 2.5.1 do i need to put this code in function.php to send email to users :else return $action;

    Thx

    Plugin Author quan_flo

    (@quan_flo)

    You can put your language file in the plugin’s language directory but better way is to use wordpress’ global language directory.

    Thread Starter Zlato

    (@zlato)

    Hi how but this :
    I use the budypress ver 2.5.1 do i need to put this code in function.php to send email to users :else return $action;

    THX

    Plugin Author quan_flo

    (@quan_flo)

    I do not understand what you mean.. What do you want to send via E-Mail?

    Thread Starter Zlato

    (@zlato)

    sorry this: “notify your members about other members that visited their profile via buddypress notification system” is this email notification ?

    and shoud i need to put this line : “I use the budypress ver 2.5.1 do i need to put this code in function.php to send email to users :else return $action;”

    Plugin Author quan_flo

    (@quan_flo)

    Not E-Mail, the Buddypress notification system is meant. The menu top right normally

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove some users’ is closed to new replies.