1
elrohir
bytes -> Mb
  • 2006/11/9 16:22

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


In the image module MyAlbum, the filesize limit is given in bytes, which is not really that cool when you upload an image - since it therefore displays the limit in bytes. Is it possible to change it to display k or m bytes without changing the actual limit? Just so people don't actually have to start THINKING...

Thanks,
-E

2
Mithrandir
Re: bytes -> Mb

Myalbum/submit.php line 306:

$size_label = new XoopsFormLabel_ALBM_MAXSIZE $myalbum_fsize . ( empty( $file_uploads_off ) ? "" ' &nbsp; <b>"file_uploads" off</b>' ) ) ;

to
$size_label = new XoopsFormLabel_ALBM_MAXSIZE , ($myalbum_fsize/1048576) . ( empty( $file_uploads_off ) ? "" ' &nbsp; <b>"file_uploads" off</b>' ) ) ;

(or just divide by 1000000 if you want the easy number)
and change
define("_ALBM_MAXSIZE""Max file size(byte)");

to
define("_ALBM_MAXSIZE""Max file size(MB)");

in language/[yourlang]/main.php line 61
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
elrohir
Re: bytes -> Mb
  • 2006/11/9 18:22

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


Awesome, I'll try it out right away

4
elrohir
Re: bytes -> Mb
  • 2006/11/9 19:38

  • elrohir

  • Just popping in

  • Posts: 37

  • Since: 2006/9/14


Yup, worked great - thanks a bunch

Login

Who's Online

246 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits