Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Advanced Editor: download stats and downloading under original name
Are there existing solutions for
- downloading files, uploaded in Advanced Editor, under their original name
- keeping download count for the above uploaded files
As far as I could see, there are no existing code snippets/plug-ins for that.
For the first one, override the attachments view with a more recent one (will be in 2.3):
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
There has been a pull request and this would be in Vanilla 2.3
You might want to take a look at that: https://github.com/vanilla/vanilla/issues/3099
It was only a draft...
If I had to do this, I would add a column to the Media table "DownloadCount", route every request through a custom function which would increase the value of that column and that's it. It shouldn't be too hard.
@R_J, @Bleistivt, Thanks for the references, that will reduce the amount of work. Yes, to register download count I planned to redirect the downloading through a function and add a column to that table.