![]() |
time to download this attchment
Hello Everyone ,
time to download this attchment by All-the-vb This a very small but usefull Hack! What this hack does? show a size attachment with KB or Mb ----> And the time you want to download this attachment. and see a Screenshot in the a next reply Files to edit: 1 (showthread.php) Templates to edit: 1 (postbit_attachment) Time to install: 2 min |
installed. good job.
|
Now that my friend, is beautiful :) Thanks for sharing.
|
Quote:
|
Pretty sure it is an estimated time for download.
|
Very nice hack - does it detects my connection automaticly?
|
romanticyao & MindTrix
welcome ----------------------------- kentaurus & gmarik the time you need to download attachment with ISDN |
Quote:
|
Quote:
|
Maybe an option can be added so that the user can pick the speed they are on to get the estimated time to download.
|
Nice hack, thanks. :)
|
Quote:
|
the old way +
an option can be added so that the user can pick the speed they are on to get the estimated time to download = !!! |
didn't work for VBB 3.0.0 :( Anyone fixed this?
|
Works great
[high]* ChuanSE clicks install :D [/high] https://vborg.vbsupport.ru/external/2004/04/1.php |
Quote:
|
hi
very usefull hack! I got an small error with larger files. https://vborg.vbsupport.ru/ thx maresi |
Quote:
|
where would i need to put the connection speed e.g.
download time: 2.00 sec @ 64 Kbps, 1 view Also at what size of file does the time start to go wrong? And could this be corrected? |
Quote:
|
how about keeping it as KB, like 2000KB, that might work, i'll try and mod it myself and post it if it works
|
:classic:
|
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
|
i got this to work but can't upload attachments bigger than 1MB at the moment. I should have this figurered out later today
|
any word?
|
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. |
Quote:
|
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"; } |
Quote:
|
yes and also change the template is in the first post
|
Quote:
|
Any updates for this hack?
I really like it :D |
Well, can the hack not be developed by finding the users average ping (v3arcade does it), then base the time round their ping?
I ask this because the times are out of sync with my net connection, if their based on ISDN (around 100kbps). Im on a 1.5mbps connection at home and the times are completely wrong. |
actually ISDN is 64Kpbs originally, that's what this hack calculates
|
Thats even worse!
|
/me clicks install
|
I got some download time issues like someone talked about here.
I changed Code:
$attachment[time] = round(($attachment[filesize] * 8)/64000,2); Code:
$attachment[time] = round(($attachment[filesize] * 8)/512000,2); Closer to reality |
All times are GMT. The time now is 07:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|