vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   time to download this attchment (https://vborg.vbsupport.ru/showthread.php?t=59907)

Mu5icMan 06-09-2004 08:36 AM

how about keeping it as KB, like 2000KB, that might work, i'll try and mod it myself and post it if it works

sketch42 06-09-2004 08:55 AM

:classic:

Mu5icMan 06-09-2004 09:07 AM

i've just tried to install it normally on my vb 3.0.1 board and it doesn't work cause in postbit_attachment there is no reference of $attachment[filesize] bytes. If i leave this field blank or add it in afterwards the attachments in my board come up as 0.00KB

Mu5icMan 06-09-2004 10:24 AM

i got this to work but can't upload attachments bigger than 1MB at the moment. I should have this figurered out later today

sketch42 06-09-2004 11:33 PM

any word?

Mu5icMan 06-10-2004 10:06 AM

i got it to work for seconds, e.g.

size: 1.65 MB, download time: 216.63 sec, 2 views

now trying minutes. If needed i'll try hours also.

sketch42 06-11-2004 04:42 AM

Quote:

Originally Posted by Mu5icMan
i got it to work for seconds, e.g.

size: 1.65 MB, download time: 216.63 sec, 2 views

now trying minutes. If needed i'll try hours also.

can you post the code you have so far?

Mu5icMan 06-11-2004 06:27 AM

I've changed when it regisiters the format from Kb to MB to 800000. And i've taken out the code for minutes cause there's something wrong with it. I've also added @ 64 Kbps at the end. If you don't want it for the timing of a 64Kb connection just change 64000 to whatever you want.

$attachment[time] = round(($attachment[filesize] * 8)/64000,2);
if ($attachment[filesize] > 800000) {
$attachment[filesize] = round(($attachment[filesize]/1024)/1024,2);
$attachment[filesize] = "$attachment[filesize] MB";
} else {
$attachment[filesize] = round($attachment[filesize]/1024,2);
$attachment[filesize] = "$attachment[filesize] kB";
}

{
$attachment[downtime] = "size: $attachment[filesize], download time: $attachment[time] secconds @ 64 Kbps";
}

sketch42 06-11-2004 06:33 AM

Quote:

Originally Posted by Mu5icMan
I've changed when it regisiters the format from Kb to MB to 800000. And i've taken out the code for minutes cause there's something wrong with it. I've also added @ 64 Kbps at the end. If you don't want it for the timing of a 64Kb connection just change 64000 to whatever you want.


$attachment[time] = round(($attachment[filesize] * 8)/64000,2);
if ($attachment[filesize] > 800000) {
$attachment[filesize] = round(($attachment[filesize]/1024)/1024,2);
$attachment[filesize] = "$attachment[filesize] MB";
} else {
$attachment[filesize] = round($attachment[filesize]/1024,2);
$attachment[filesize] = "$attachment[filesize] kB";
}

{
$attachment[downtime] = "size: $attachment[filesize], download time: $attachment[time] secconds @ 64 Kbps";
}

so place this instead of the one in the first post?

Mu5icMan 06-11-2004 08:00 AM

yes and also change the template is in the first post


All times are GMT. The time now is 07:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01629 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete