Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
fox_files_stats
description
This plugin is able to print out a few statistics about the files, like the number of files, the number of downloads, the size of downloaded files and so on.
Here is the link to the project page
Last edited by Gr3yFox (2009-06-30 17:11:04)
Gr3yFox
Offline
Re: fox_files_stats
Hi everyone. I’m still supporting this plugin, even if I really don’t have anything new to announce.
Are there any known bugs or compatibility issues to be fixed? Any feature requests?
Gr3yFox
Offline
Re: fox_files_stats
Riccardo, this plugin seems helpful (although I’ve never used it – so far!). Just wanted to post to say thanks for this plugin – incredible no one else has posted!
Offline
Re: fox_files_stats
Thank you very much Jonathan.
It’s not a problem however, people have already too many things to do without having to say “thanks” to everyone puts something useful on the internet :)
Last edited by Gr3yFox (2011-09-03 13:51:45)
Gr3yFox
Offline
Re: fox_files_stats
Hi, Riccardo.
I am using this plugin in my site for a couple of years, and I find it very useful. However, one thing that I miss is a point or a comma to separate the thousands from the hundreds. That is, I would prefer to see “1.096” rather than “1096” (in Spanish the correct is to use a point, not a comma as in English). As I don’t know PHP I can’t hack your plugin in order to do it, so that I would grateful very much if you ad this feature to your plugin.
Thanks anyway.
Last edited by pompilos (2011-09-05 21:55:31)
Offline
Re: fox_files_stats
You’re right. I’m working on a presentation for a conference right now so I’m really busy, but I’ll try to have a look at it as soon as I can. It’s a very useful improvement the one you’re suggesting. Thanks.
Gr3yFox
Offline
Re: fox_files_stats
@Jose
If you can’t wait the new version, try to change the last line into the plugin code:
return number_format($stats, 0, ',', '.');
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: fox_files_stats
Gr3yFox wrote:
You’re right. I’m working on a presentation for a conference right now so I’m really busy, but I’ll try to have a look at it as soon as I can. It’s a very useful improvement the one you’re suggesting. Thanks.
Textpattern’s file_download_size() can give pointers how to implement localization support. It shows how Textpattern does it, and what language strings are available. I.e. PHP’s localeconv() and number_format() could prove useful.
Offline
Re: fox_files_stats
Thanks again Gocom, I’ll look at it.
[ot]Sorry for being late for the other topic, but I’m quite busy right now :)[/ot]
Gr3yFox
Offline
Re: fox_files_stats
Hi, Patrick.
Your proposal (return number_format($stats, 0, ',', '.');
instead of return $stats;
at the end of the code) works beautifully. Thanks you all for your interest and your help.
Offline
Re: fox_files_stats
As I anticipated in the fox_code thread, I released the code of fox_files_stats on GitHub to improve its maintainability.
Best,
Riccardo
Last edited by Gr3yFox (2011-10-02 16:21:01)
Gr3yFox
Offline
Re: fox_files_stats
Hi, Riccardo.
I thought about an improvement of your plugin. In our site we use categories and subcategories of files. I would like to use the optional argument “category” in order to count all the files included in that category AND all the files of its children categories. Something, like this:
<txp:fox_files_stats category=“category-name” children=“1” />
Nowadays this isn’t possible to do that. Do you have some ideas (and some time) to achieve it?
Offline