<div class="mediashare-footer">
<img src="modules/mediashare/pnimages/bar_left.gif" height="5" width="17157"><img src="modules/mediashare/pnimages/bar_right.gif" height="5" width="-17057"> 17157% (857,90 Of 5,00 )
</div>$size = $userInfo['totalCapacityUsed'];
$imageDir = 'modules/mediashare/pnimages';
$leftSize = intval($maxSize > 0 ? ($size*100)/$maxSize : 100);
$rightSize = intval($maxSize > 0 ? 100-$leftSize : 0);
$scale = 1000000;$size = $userInfo['totalCapacityUsed']/1000;
$imageDir = 'modules/mediashare/pnimages';
$leftSize = intval($maxSize > 0 ? ($size*100)/$maxSize : 100);
$rightSize = intval($maxSize > 0 ? 100-$leftSize : 0);
$scale = 1000;I also believe that there is the same kind of problem when calculationg the max upload size displayed and used by file upload page, preventig from uploading files (in my case this size is < 0)
You can upload up to -852899 kbytes at one time, but no single file can be bigger than -852899 kbytes. But these are only the raw upload restrictions - memory limits may further restrict how big a single file can be.
$user = array('totalCapacityUsed' => (int)$result->fields[0]/1000,
'totalCapacityLeft' => $limitTotal - (int)$result->fields[0]/1000,
'mediaSizeLimitSingle' => (int)pnModGetVar('mediashare', 'mediaSizeLimitSingle'),
'mediaSizeLimitTotal' => $limitTotal);Template courtesy of Designs By Darren.