Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

  • pws2015
    Participant

    @pws2015

    haven’t a code can insert it in register page to add select options for role?


    pws2015
    Participant

    @pws2015

    thanks is solved


    pws2015
    Participant

    @pws2015

    hello,
    i have address, city and postal code filed but i need to see this value in page member for each profile row.. for now i see name, avatar and last active time


    pws2015
    Participant

    @pws2015

    Hi,
    In this file: wp-content/plugins/bp-custom.php i add this:

    function buddydev_exclude_users_by_role( $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 );
    	}
    	
    $tab_role=array('administrator','subscriber','author','contributor','editor');
    	foreach($tab_role as $k=>$role){
    	//$role = ;//change to the role to be excluded
    	$user_ids =  get_users( array( 'role' => $role ,'fields'=>'ID') );
    	
    	
    	$excluded = array_merge( $excluded, $user_ids );
    	}
    	
    	$args['exclude'] = $excluded;
    	
    	return $args;
    }
    

    So i exclude all role but i have custom role which users of this role are only can see they profiles in member page


    pws2015
    Participant

    @pws2015

    in page member i see “All members (total of members)”.. in total i see 11 but i have just 1 user on result!


    pws2015
    Participant

    @pws2015

    hi,

    thanks..
    haven’t plugin do this (not chnages source code)? and not display from all pages, map, search form… ??


    pws2015
    Participant

    @pws2015

    ok thnks


    pws2015
    Participant

    @pws2015

    haven’t plugin if user is logged can see his profile or no ?


    pws2015
    Participant

    @pws2015

    In my site i have doctors and patients. if is doctor (buddypress member) have profile but if is patient must not buddypress member just a simple user can login and have other page can see it..

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)
Skip to toolbar