Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Lena Stergatou
    Participant

    @lenasterg

    Hi. I made a minor change in the code @danbp suggests (basically the $args[‘subnav_slug’] and now I believe it works as expected.
    So I guess it’s not a BuddyPress bug.

    Please, try the following

    
    function bpex_change_profile_settings_default_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :
    
    	$access        = bp_core_can_edit_settings();
    	$slug          = bp_get_settings_slug();
    
    	$args = array(
    		'parent_slug'     => $slug,
    		'subnav_slug'	  => 'notifications',
    		'screen_function' => 'bp_settings_screen_notification',
    		'user_has_access' => $access
    		);
     
    	bp_core_new_nav_default( $args );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' );
    
    function bpex_remove_general_item_on_usermenu() {
    global $wp_admin_bar;
    
    	if ( bp_use_wp_admin_bar() ) {
    		$wp_admin_bar->remove_node( 'my-account-settings-general' );
    	}
    
    }
    add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' );
    
    function bpex_remove_profile_settings_general_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :	
    
    		bp_core_remove_subnav_item( 'settings', 'general' );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );

    Lena Stergatou
    Participant

    @lenasterg

    Nevermind, I use a walkaround for creating the plugin “BP Groups Suggestions”, based on the ‘BP Groups Suggest Widget’ (http://buddydev.com/plugins/bp-group-suggest/) which gave the idea for extending it to a full plugin.

    You can download it from https://wordpress.org/plugins/bp-groups-suggestions/


    Lena Stergatou
    Participant

    @lenasterg


    Lena Stergatou
    Participant

    @lenasterg


    Lena Stergatou
    Participant

    @lenasterg

    Which version of Buddypress you have?
    Do you use WP Toolbar or the BuddyBar?
    The above works (at least for me) with BuddyBar.


    Lena Stergatou
    Participant

    @lenasterg

    You can try the following.
    Into your /plugins folder create a file bp-custom.php.
    Into the file put the following code:

    
    function custom_bp_adminbar_login_menu() {
        global $bp;
        global $wp;
        remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2);
        if (is_user_logged_in())
            return false;
        echo '<li class="bp-login no-arrow"><a href="NEW_LOGIN_URL">' . __('Log In', 'buddypress') . '</a></li>';
        // Show "Sign Up" link if user registrations are allowed
        if (bp_get_signup_allowed()) {
            echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __('Sign Up', 'buddypress') . '</a></li>';
        }
    }
    
    add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);
    

    Bests,
    Lena


    Lena Stergatou
    Participant

    @lenasterg


    Lena Stergatou
    Participant

    @lenasterg

    @mercime hi.
    Yes, I’m in a process of it.


    Lena Stergatou
    Participant

    @lenasterg

    Hi, BP group documents plugin now compatible with BP1.7 in beta version can be found on http://lenasterg.wordpress.com/2013/04/30/buddypress-group-documents-for-bp-1-7-and-wp-3-5-1/


    Lena Stergatou
    Participant

    @lenasterg

    Hi, @sarathbabu_k,
    I updated the BP Group Documents for BP 1.7.
    You can downloaded from lenasterg.wordpress.com/2013/04/30/buddypress-group-documents-for-bp-1-7-and-wp-3-5-1/.


    Lena Stergatou
    Participant

    @lenasterg

    Hi,
    Possible this week a beta version of BP group documents compatible with BP1.7, will be uploaded in http://lenasterg.wordpress.com

    Cheers Lena


    Lena Stergatou
    Participant

    @lenasterg

    Hi @elangley I ‘m glad you use buddypress group documents.
    If you have made an updated version can you please share it?

    Thanks
    Lena


    Lena Stergatou
    Participant

    @lenasterg

    @dexpositoromero.
    Thanks for the solution.
    It worked!!


    Lena Stergatou
    Participant

    @lenasterg

    I don’t recommend to change the core files of buddypress. The best way to do it is to write a custom code (I don’t know how to guide you).
    So if you don’t mind changing the core files, here is a quick way.

    Open /buddypress/bp-core/bp-core-classes.php and change the
    $sql = “AND pd.value LIKE ‘%%$search_terms%%'”;
    to
    $sql = “AND (pd.value LIKE ‘%%$search_terms%%’ OR u.user_login LIKE’%%$search_terms%%’)” ;

    If someone can guide us how to do it in bp-custom.php, it would be great.


    Lena Stergatou
    Participant

    @lenasterg

    If you want to display both usernames and display names you can use this version in your theme’s functions.php:

    /*Display Username and display name in Directory */
    function my_member_username() {
    global $members_template;
    if ( empty($members_template->member->fullname) ) {
    $members_template->member->fullname = $members_template->member->display_name;
    }
    $toReturn =$members_template->member->fullname .’ @’.$members_template->member->user_login;
    return $toReturn;
    }
    add_filter( ‘my_member_username’, ‘wp_filter_kses’ );
    add_filter( ‘my_member_username’, ‘stripslashes’ );
    add_filter( ‘my_member_username’, ‘strip_tags’ );

    add_filter(‘bp_member_name’,’my_member_username’);


    Lena Stergatou
    Participant

    @lenasterg

    Has anybody found the correct link for Greek language yet?
    If yes let us know.

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