The MU forums have moved to WordPress.org

changing space available per blog (1 post)

  1. Ovidiu
    Member
    Posted 17 years ago #

    hello,

    I am using these 2 plugins together:

    http://wpmudevorg.wordpress.com/project/Total-Upload-Space-Remaining
    and
    http://wpmudevorg.wordpress.com/project/Upload-Space-Plugin

    on plugin allows you to change the available space per blog, the other one displays the remaining space.

    The one displaying the remaining space needed a small modification to pick up the changed value by the other plugin, so for anyone interested here is the fix to space.php

    function space_used() {
    global $wpblog, $blog_id;
    $spaceAllowed = get_blog_option($blog_id, "amanzi_upload_space");
    if( $spaceAllowed == '' )
    $spaceAllowed = get_site_option("blog_upload_space" );
    if( $spaceAllowed == false )
    $spaceAllowed = 10;
    $dirName = ABSPATH."wp-content/blogs.dir/".$blog_id."/files";

About this Topic

  • Started 17 years ago by Ovidiu