vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Statistics Modifications - Displaying attach stats on forumhome (https://vborg.vbsupport.ru/showthread.php?t=201965)

ry215 01-15-2009 10:00 PM

Displaying attach stats on forumhome
 
1 Attachment(s)
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

Quote:

Originally Posted by KURTZ (Post 1714402)
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

Quote:

Originally Posted by sayedsaad (Post 1714761)
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:
Code:

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

add above:
Code:

$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

Quote:

Originally Posted by lasto (Post 1714439)
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

Quote:

Originally Posted by ry215 (Post 1714829)
Plz click Mark As Installed! :D

Open template FORUMHOME,

find:
Code:

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

add above:
Code:

$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

Quote:

Total Attachments: 3,073
Disk Space Used: 797.51 Mb
Average Attachment Filesize: 266 bytes
Total Downloads: 56,686
somebody else?

BigDog56 04-26-2009 12:13 PM

Quote:

Originally Posted by Vangerltd (Post 1799153)
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:
PHP Code:

        <div class="smallfont"><br />
        
Forums375$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.


All times are GMT. The time now is 05:03 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.01261 seconds
  • Memory Usage 1,762KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete