• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
[MWS] Attachment Statistics

[MWS] Attachment Statistics 1.5.6c

No permission to download

MattW

Well-known member
#1

MattW

Well-known member
#3
Thanks for sharing this add-on. Just one question, will this include "Resource Manager" attachments as well? Thanks,
Yes it does, it's taking all the information from the xf_attachment_data table. The content_type is stored in xf_attachment, so it doesn't currently differentiate
 

MattW

Well-known member
#9
Most downloaded attachment(s)
Largest attachment size with a link to that attachment

Those would be good for starters.
I'll see what I can come up with

"Largest attachment size with a link to that attachment"
The default attachment browser in the ACP already allows you to sort the attachments by file size, so I don't really see any point in adding that into this.
 

MattW

Well-known member
#12
MattW updated Attachment Statistics Admin Home with a new update entry:

Extra Features and Display Options Added

This update now puts the Stats Block in the ACP in a better position, keeping the traditional look intact.

View attachment 43731

There is a new Option menu, allowing you to choose to display in MB or GB, and adds the option to show the stats on the forum home

View attachment 43732

If you are using the Widget Framework, this add-on automatically includes a TMS edit to add the stats to the widget, but you'll need to control the display of the stats on the home page via...
Read the rest of this update entry...
 

MattW

Well-known member
#13
MattW updated Attachment Statistics Admin Home with a new update entry:

Caching of Statistics and Cron Entry

I've added a cron entry to cache the results, as busy boards could get bogged down with pulling the results from the DB on each page load, especially when there are lots of attachments.

View attachment 43739

Cron runs at 55 minutes past the hour.

On initial install, the dataset will be empty, so either wait until XX:55, or run the cron manually to initially populate the data.
Read the rest of this update entry...
 

duderuud

Active member
#14
Our forum has tens of thousands of attachments, how does this widget count them? A simple du -h takes ages on our (fast) servers...
 

MattW

Well-known member
#15
Our forum has tens of thousands of attachments, how does this widget count them? A simple du -h takes ages on our (fast) servers...
It's taking the results from the database. The table has the size of each attachment stored already, so it's totalling the column value.