Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Mathieu Viet

    (@imath)

    Go to plugin’s settings and look at the bottom of it

    Thread Starter billxam43

    (@billxam43)

    Thank imath – no joy however, tab still shows “buddydrive” on the users page.

    Plugin Contributor Mathieu Viet

    (@imath)

    Try Changing the title of the BuddyDrive page in the WP page administration, it should work

    Thread Starter billxam43

    (@billxam43)

    The tab on the users activity page is where I want to change it.

    Plugin Contributor Mathieu Viet

    (@imath)

    Sorry, i don’t get it. Can you paste a screenshot ?

    This work for the user profile but not for group tab:

    function mb_profile_menu_tabs(){
    global $bp;
    $bp->bp_nav[‘buddydrive’][‘position’] = 50;
    $bp->bp_nav[‘buddydrive’][‘name’] = ‘viredrive’;

    }
    add_action(‘bp_setup_nav’, ‘mb_profile_menu_tabs’, 201);

    How I can change name in tab groups?

    I call it “viredrive” you can call it another name.

    Hey! If you are looking for a way to change the ‘BuddyDrive’ label in the navigation, there is a filter that you can actually use. If you are using php 5.2 and above copy and paste the following code inside your theme’s functions.php

    /**
     * Changes default BuddyDrive Label
     */
    add_filter('buddydrive_get_name', function(){
    	return  __('Files', 'dunhakdis');
    });

    Cheers!

    If you are using a lower version of PHP:

    /**
     * Changes default BuddyDrive Label
     */
    add_filter('buddydrive_get_name', 'dunhakdis_buddydrive_set_name');
    
    /**
     * Callback function to 'buddydrive_get_name' filter
     */
    function dunhakdis_buddydrive_set_name() {
    	return  __('Files', 'dunhakdis');
    }
    Thread Starter billxam43

    (@billxam43)

    Thanks Danny and Joseph. Both of those do what I wanted. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Changing name?’ is closed to new replies.