Log in | Register | Lost password

Bottom
Unreachable buttons when creating album
  • Posted: 02.04.2006, 03:47
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    After having imported my photoshare albums, I tried to add a new album at the top level. When the window for entering album is displayed, the associated button are thrown far on the right.
    Here is the mediashare footer found in the page source:

    Code

    <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>




    edited by: emathieu, Apr 01, 2006 - 10:51 PM
  • Posted: 02.04.2006, 04:15
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I think there is a unit problem in smarty_function_mediashare_userinfo I replaced

    Code

    $size = $userInfo['totalCapacityUsed'];



    $imageDir = 'modules/mediashare/pnimages';



    $leftSize = intval($maxSize > 0 ? ($size*100)/$maxSize : 100);

    $rightSize = intval($maxSize > 0 ? 100-$leftSize : 0);



    $scale = 1000000;

    with

    Code

    $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;

    and it works
  • Posted: 03.04.2006, 18:44
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'll fix it.
  • Posted: 03.04.2006, 19:02
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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)
  • Posted: 03.04.2006, 19:34
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    Quote

    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)


    That's not a bug - that's a feature :-)

    You upload limit is way over the default limit. You have to change the limit in the admin section.
  • Posted: 03.04.2006, 19:52
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I am not sure that getting the following is not a bug:

    Quote

    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.

    ;-)
  • Posted: 03.04.2006, 20:09
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Haha! I'll fix that too!
  • Posted: 03.04.2006, 20:27
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I fixed it by modifying function mediashare_editapi_getUserInfo as following:

    Code

    $user = array('totalCapacityUsed' => (int)$result->fields[0]/1000,

    'totalCapacityLeft' => $limitTotal - (int)$result->fields[0]/1000,

    'mediaSizeLimitSingle' => (int)pnModGetVar('mediashare', 'mediaSizeLimitSingle'),

    'mediaSizeLimitTotal' => $limitTotal);


  • Posted: 04.04.2006, 14:15
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I apologize I am not so sure of the problem. I discovered lately yesterday that the total size of media (imported from Photoshare) is exceeding the maximum total allowed size. I will investigate further this evening (GMT -5)

Template courtesy of Designs By Darren.