Adam Bissonnette
Forum Replies Created
-
Forum: Plugins
In reply to: [Mmm Simple File List] Pretty File NamesOk – I’ve pushed out a version 1.8 which you should be able to update to and try this out. I’ll do another update to ~1.9 in a week or so with documentation once we finalize the defaults etc…. and any new formats that need to be added.
With 1.8 you can add prettyname=”true” to the shortcode and it will strip out the -‘s and _’s and file extension etc… I also added a regexstrip parameter in case you want to get rid of extra stuff like 150×150 or other parts of filenames that wordpress auto generates.
The Date Modified and Extension are also available to use – you can see them by adding/changing format=”li2″ in the shortcode. If you use custom content templates you can also pipe in the new date / extension with {date} / {ext} respectively.
My idea behind extension was that you could add your own styles to add icons for the filenames (e.g. adding a bit to the custom template <span class=”extension mm-{ext}”></span>). Then adding something to your css to style that with your icon of choice or font awesome icon or whatever – if you’d like help with this I can provide you a snippet of css to drop into your style.css file for a bunch of extensions.
Let me know how this works out for you and please give the plugin a 5/5 review so my ego is sated ??
Forum: Plugins
In reply to: [Mmm Simple File List] Output of Download Counts & Date AddedI’m pretty slammed with work lately and an upcoming product launch so I’m not sure if I can devote a lot of time to create a new “Advanced File List” plugin for file download counts right now. I’ll definitely try to have the Simple File List update for the “file creation / last modified date” done sometime over the next week though!
If we can create a clearly defined set of rules for the “Pretty” file name suggestion you had then I could add that in too (maybe with some added css classes too so you could drop css into your stylesheet to add the icons).
Forum: Plugins
In reply to: [Mmm Simple File List] Pretty File NamesThat’s definitely do-able. What would be the complete rules though? If you can find a GPL library online somewhere that does this in a single function that would be super handy ??
Rules your example has:
- Stripe file extension
- Replace -‘s and _’s with spaces (would there be more)
- First letter in each word is capitalized (would this rule only be applied to all words or just a set few?)
Forum: Plugins
In reply to: [Mmm Simple File List] Output of Download Counts & Date AddedFor now I’ll add the display date as an optional field and then look into creating a new plugin called “Mmm Advanced File List” with those extra features etc. This way the Simple File List could be easily replaced (same shortcodes / basic functionality + those extras that require css and some javascript) if someone wants a more advanced version of the plugin.
Forum: Plugins
In reply to: [Mmm Simple File List] Output of Download Counts & Date AddedHey Schalk,
In order to display the number of times a file was downloaded we’d have to store that information somewhere adding to the bulk of the plugin. There isn’t really a nice clean way to do this without breaking the “Just a shortcode* rule for this plugin.
The date request is something we could do. I’ll look into it and try it get an update for you within the next week.
Forum: Plugins
In reply to: [Mmm Simple File List] Wish: subdirectoriesHey bobo8,
That’s a feature that a lot of other file list services offer. The goal of “Mmm Simple File List” is just to do the basics. To handle folders we’d either have to do postbacks on the page (which are clunky and annoying), or something with javascript which would mean requiring jQuery or another framework to handle ajax / json and then maybe styles and all sorts of settings which would make this no longer “simple” :0
If you really want subdirectories I highly recommend checking out the File Away plugin or just include multiple Mmm Simple File List shortcodes on the page for each subdirectory. Many themes have an expand / collapse toggle container you could use to avoid these subdirectories taking up too much screen space.
Forum: Plugins
In reply to: [Mmm Simple File List] Way to list directory outside uploads?Ah crap – sorry for the late replies. My notifications haven’t been working!
You can totally load files from outside the uploads directory just preface the path with enough “../../” and you should be good to go.
Say for example you want to list files in a directory like this:
yoursite.com/files/
Since your uploads directory is going to be something like this:
yoursite.com/wp-content/uploads/
You can setup your shortcode to look like this and you should be good to go:
[MMFileList folder=”/../../files/” format=”table” types=”png” /]
Keep in mind that if the files you’re listing are below your root directory (e.g. not accessible via yourdomain.com) then they’ll list but no one will be able to actually view them by clicking the link. It might break everything in fact…
Forum: Plugins
In reply to: [Mmm Simple File List] descending sort order based on filename…not dateThat makes a lot of sense. I’ve got the change made so you should be able to update to version 1.7 with “ascending” set at the default.
Feel free to let me know if there is anything else I can help with or if you need a simple plugin made when all the other alternatives are a bit too clunky.
Cheers,
Adam ([email protected])
Forum: Plugins
In reply to: [Mmm Simple File List] descending sort order based on filename…not dateHey Richard –
I get what you’re saying. I was pretty conflicted about it but I wanted something that made sense for both filenames and dates without changing their defaults (and potentially causing a flurry of upset reviewers).
By default the filenames are ordered a-z (desc doesn’t make sense since we don’t descend through the alphabet) and dates are ordered newest to oldest (desc makes sense since we don’t ascend back in time).
I really wish I just added a parameter like reverse_list=”true|false”.
If you prefer “asc” over “desc” I’ll update quickly now to version 1.7 with that change and hopefully won’t have thrown many people off since (hopefully) they won’t be using the “order” parameter yet.
Forum: Plugins
In reply to: [Mmm Simple File List] descending sort order based on filename…not dateHey Richard,
It looks like I must not have hit send on my earlier response. I had updated the plugin to version 1.6 which includes the “order” parameter which should allow you to arrange your files ascending (z-a) by name which will effectively give you the effect you’re looking for.
If this change works for you then please consider filling out a review of the plugin ??
Cheers,
MManifesto
Forum: Plugins
In reply to: [Mmm Simple File List] descending sort order based on filename…not dateHey Richard,
Have you tried using the orderby=”date” parameter? This should display the files in a descending order (newest to oldest).
Forum: Plugins
In reply to: [Mmm Simple File List] Change sort order asc/descI found the problem and just created an updated version of the plugin. Please try using the orderby parameter now.
Cheers,
Adam
Forum: Plugins
In reply to: [Mmm Simple File List] Change sort order asc/descHey there,
You should be able to use the “orderby” parameter to do this. Your shortcode should look something like this:
[MMFileList folder=”/YourPath/” ..otherparams.. orderby=”date” /]
This will arrange the files by date descending (newest to oldest / younger files on the top of the list).
Let me know if this works for you.
Forum: Plugins
In reply to: [Mmm Simple File List] How to suppress warning message with format="table"?Hey Martin,
Sorry about that. Apparently naming a version “1.3a” doesn’t equate to more recent than “1.3”. I updated changed it to “1.3.1” but didn’t notice any difference so I’ve bumped it again to “1.4” which seems to be working as expected for updates.
Try it out and let me know if it works for you.
Also – if you like the plugin please give it a review – with so many downloads we should be better than 3 stars :)!!
Forum: Plugins
In reply to: [Mmm Simple File List] How to suppress warning message with format="table"?Hey Martin,
I’ve just updated the plugin to fix those warning messages.
On a side note regarding the warning messages it sounds like you’re running you’re WordPress site in debug mode which can be turned off by manually changing the “WP_DEBUG” setting in your wp-config.php file to false.