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

    (@imath)

    1/ you can eventually filter ‘buddydrive_get_item_title’ to add what you want after the title.

    2/ As the main edit part is to modify the privacy settings, and you want to restrict to private… But you can eventually filter ‘buddydrive_get_item_date’..

    3/ not for now or next version i’m afraid. I look at it for 1.2. In the meantime, you’ll need to edit the function buddydrive_select_sharing_options() to match your need. You can replace the select box by an hidden field for instance. But modifying the plugin code, is something i don’t recommend as your modifications will be lost on next upgrade.
    I’ll keep this in mind for a future release (maybe 1.2 as 1.1 should be in repo tonight).

    Thread Starter sephilex

    (@sephilex)

    You mind explaining what and where I need to edit or filter to view the time and date of the upload/edit?

    Plugin Contributor Mathieu Viet

    (@imath)

    was for point 1 : the file size. But i’ve checked it’s a bad idea, as i’m checkins this during the upload process, i’ll cache the value and attach it as a postmeta in next upgrade.

    for the time, you can add it from the functions.php of your active theme this way :

    function sephilex_add_time( $date ) {
    	global $buddydrive_template;
    
    	$datetime = bp_format_time( strtotime( $buddydrive_template->query->post->post_modified_gmt ), false, false );
    
    	return $datetime;
    }
    
    add_filter( 'buddydrive_get_item_date', 'sephilex_add_time', 10, 1 );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘File size, time and sharing option’ is closed to new replies.