I tried out the beta version.
It works ok. A lot of writing & thinking though.
Is the macro still under developement?
I now use the macro to hide files from non-logged in users.
Before I moved the HTML under %loggedin% & the HTML would not appear right in the upload page, so I cut it out. Now I can bring it back!
I could not figure out too well on how to make the size change depending on the current display size.
I tried Javascript instead & it works great!
Anyone interested in the code, this is my version:
Simply paste the code in the bandwidth monitor. Tweak the code for more effects.
===========================
<script language="javascript">
var Bytes=%done-bytes%;
if(Bytes>=1024&&Bytes<1048576){document.write(Math.round(Bytes/1024)+"KB")}
if(Bytes>=1048576&&Bytes<1073741824){document.write(Math.round(Bytes/1024/1024)+"MB")}
if(Bytes>=1073741824){document.write(Math.round(Bytes/1024/1024)+"GB")}
</script>
/
<script language="javascript">
var Bytes=%total-bytes%;
if(Bytes>=1024&&Bytes<1048576){document.write(Math.round(Bytes/1024)+"KB")}
if(Bytes>=1048576&&Bytes<1073741824){document.write(Math.round(Bytes/1024/1024)+"MB")}
if(Bytes>=1073741824){document.write(Math.round(Bytes/1024/1024)+"GB")}
</script>
===========================
- It will change to KB if the file size exceeds 1024Bytes.
- It will change to MB if the file size exceeds 1024KiloBytes.
- It will change to GB if the file size exceeds 1024MegaBytes.
Average computer does not have over a TeraByte, nor would anyone want to send data for soo long, so no point in adding it to the code. [unless you just want to have it
]