• Resolved MC-land

    (@michaeliresource)


    Hi,

    Is there a way to create default folders for each user. I have 900+ users and would like them to upload some documents. To ease this, I would have 2 named folders ready for them in their buddydrive so they know what to upload in each one.

    Also, how can i hide the buddydrive link on their profile so only the user can see it?

    Thanks

    https://www.ads-software.com/plugins/buddydrive/

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

    (@imath)

    Hi,

    I’m currently working on the next upgrade of the plugin. It will be soon possible to view any folders/files of the groups a user is member of from his profile and he will be able to add files into any of these folders. So it should help you to achieve your goal.

    If this

    Also, how can i hide the buddydrive link on their profile so only the user can see it?

    means you want to only show the BuddyDrive link to logged in users viewing their own profile, then you can use a bp-custom.php file and add this code in it :

    <?php
    
    function michael_iresource_only_self_profile() {
    	$bp = buddypress();
    
    	if ( isset( $bp->bp_nav['buddydrive'] ) ) {
    		$bp->bp_nav['buddydrive']['show_for_displayed_user'] = bp_is_my_profile() || bp_current_user_can( 'bp_moderate' );
    	}
    }
    add_action( 'bp_buddydrive_setup_nav', 'michael_iresource_only_self_profile' );
    Thread Starter MC-land

    (@michaeliresource)

    Thanks for that bit of code imath. It worked perfectly.

    Although with your upgrade its not quite what im after.
    Just looking for a way for admin to create some default folders in every users buddy drive.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘admin create folders and menu link visibilty’ is closed to new replies.