PDA

View Full Version : Statistics Modifications - Displaying attach stats on forumhome


ry215
01-15-2009, 10:00 PM
REQ here:
https://vborg.vbsupport.ru/showthread.php?t=201660

Info:
vBulletin Version: 3.7.x & 3.8.x
New Templates: 1
New Phrases: 5
Uses Hooks: 2
Time to install: 1 minute max

Features:
This modification includes these statistics

Total Attachments
Disk Space Used
Average Attachment Filesize
Total Downloads


History:

01/16/2009: First Release


01/16/2009: Optimize


Thanks for using this MOD and Please click Mark As Installed!

KURTZ
01-16-2009, 08:38 AM
how many queries? :)

ry215
01-16-2009, 09:01 AM
how many queries? :)

one query

lasto
01-16-2009, 09:23 AM
i was gonna ask the exact same question - also if there anyway to have them stats on one line instead of four

cheers

sayedsaad
01-16-2009, 02:57 PM
First of all Thanks, How can do new Template?
I importd it the product, but not work
thanks again

ry215
01-16-2009, 04:15 PM
First of all Thanks, How can do new Template?
I importd it the product, but not work
thanks again

Plz click Mark As Installed! :D

Open template FORUMHOME,

find:
<if condition="$show['birthdays']">
<!-- today's birthdays -->

add above:
$template_hook[forumhome_wgo_pos3]

Theater
01-16-2009, 07:14 PM
Excellent, thank you very much for making my request a reality. /bow

Theater
01-16-2009, 07:24 PM
i was gonna ask the exact same question - also if there anyway to have them stats on one line instead of four

cheers

It would appear that you can under Forum Home Templates > forumhome_attact_stats. You can even give it your own custom attachment stats icon, but it looks great "as-is" imo. :D

sayedsaad
01-17-2009, 03:44 AM
Plz click Mark As Installed! :D

Open template FORUMHOME,

find:
<if condition="$show['birthdays']">
<!-- today's birthdays -->

add above:
$template_hook[forumhome_wgo_pos3]

Thank you very much

NgocTam
02-27-2009, 01:43 PM
Nice. Thanks :D

movslow
02-27-2009, 04:12 PM
Installed, nice work.
:up:

Switch02
02-27-2009, 04:16 PM
Nice and useful, well done. ;)

Legendery.
02-27-2009, 07:50 PM
thanks for sharing bro.

gwerzal
03-01-2009, 11:22 PM
Thanks

Installed on all my sites

Fivestones
04-21-2009, 03:56 AM
Hello And thanks for this !! I am new to all this stuff and i dont know 1 thing about it !! This is my frist thing i have added to my site and i did it LOL !!

I had to go to another Stats and read some on what to do but i got it now Thanks !! 5Stones ;)

Vangerltd
04-26-2009, 06:08 AM
Total Attachments: 3,073
Disk Space Used: 797.51 Mb
Average Attachment Filesize: 266 bytes
Total Downloads: 56,686somebody else?

BigDog56
04-26-2009, 12:13 PM
somebody else?

Total Attachments: 8,980
Disk Space Used: 1.71 GB
Average Attachment Filesize: 199.8 KB
Total Downloads: 241,003

Vangerltd
04-26-2009, 11:15 PM
fxd, $viet vbb_as_average must be
$viet vbb_as_average = $viet vbb_as['average'];

-=Leb=-
08-02-2009, 11:55 AM
Love it. Installed :)

Alfa1
08-02-2009, 02:53 PM
I have added this to the main statistics block with this code:
<div class="smallfont"><br />
Forums: 375, $vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[as_total]: $+++++++_as_total [$+++++++_as_total_space], $vbphrase[as_total_downloads]: $+++++++_as_total_downloads
</div> (somehow there is a filter on vb.org that disallows '$ v i e t v b b' to be posted and turns it into ++++++

How do I disable the display of attach statistics block, so that I only show it in my main statistics block?

It would be optimal to replace the plugin with one that hooks into forumhome_wgo_stats
How do I do this? I have currently replaced the template forumhome_attact_stats with the above code, but I am pretty sure that this is bad coding practice. Can someone please advise?

mapleleaffans
08-26-2011, 05:39 PM
Nice little mod! Thank you! :up:

Brandon Sheley
08-26-2011, 05:44 PM
nice mod, thanks for sharing :)

SeRoStyLe
07-11-2013, 10:01 AM
Total Attachments: 12.991

Disk Space Used: 9.57 GB (Gigabyte)

Average Attachment Filesize: 497 Byte

why byte ?

i need a fix code.