Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-23 11:00:05

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

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

#2 2011-09-03 13:18:43

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

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

#3 2011-09-03 13:41:56

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#4 2011-09-03 13:51:23

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

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

#5 2011-09-05 21:54:26

pompilos
Member
From: Spain
Registered: 2005-06-07
Posts: 114
Website

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

#6 2011-09-05 21:57:53

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

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

#7 2011-09-06 05:42:54

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,643
GitHub Twitter

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

#8 2011-09-06 07:02:58

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#9 2011-09-06 07:22:12

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

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

#10 2011-09-06 20:49:12

pompilos
Member
From: Spain
Registered: 2005-06-07
Posts: 114
Website

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

#11 2011-10-02 16:20:28

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

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

#12 2011-10-26 21:49:38

pompilos
Member
From: Spain
Registered: 2005-06-07
Posts: 114
Website

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

Board footer

Powered by FluxBB