File Download Snippet

I needed an easy way to display files from a folder for downloading. So I created this snippet for Modx. By passing in a folder it outputs the filename, date, size, link, filetype image, description, and the download count.

07-17-06 Fixed code that determines which file type image to use with each file.

04-30-06 The files have been updated to allow for directory browsing. This allows the user to go into subfolders of the folder specified in the snippet call. I have also cleaned up some of the code.

03-22-06 I have added the ability for single file listing. The updated files can be downloaded here. There is a new parameter for this - &getFile=``

03-18-06 There was an error in the file download.php, it was causing the downloads to fail. It should work correctly now and can be downloaded on the right.

Comments
If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code:
 
Required fields are marked with *.
Showing comments 1 to 10 of 20 | Next | Last
Comment

20

generic tadalafil generic tadalafil Tue September 08, 2009, 04:02:36

Silent gratitude isn't much use to anyone.

Comment

19

generic viagra generic viagra Tue September 08, 2009, 04:01:45

Keep on going and the chances are you will stumble on something, perhaps when you are least expecting it. I have never heard of anyone stumbling on something sitting down.

Comment

18

generic levitra generic levitra Tue September 08, 2009, 03:59:13

There is still a difference between something and nothing, but it is purely geometrical and there is nothing behind the geometry.

Comment

17

purchase vicodin nonuse suffuse purchase vicodin nonuse suffuse Mon September 07, 2009, 23:58:59

I hope that when I die, people say about me, 'Boy, that guy sure owed me a lot of money.'

Comment

16

cheap valium cheap valium Mon September 07, 2009, 20:29:20

It is impossible to walk rapidly and be unhappy.

Comment

15

ciprofloxacin ciprofloxacin Mon September 07, 2009, 17:11:51

What can you say about a society that says that God is dead and Elvis is alive?

Comment

14

order diazepam order diazepam Mon September 07, 2009, 13:13:01

We owe something to extravagance, for thrift and adventure seldom go hand in hand.

Comment

13

zyloprim zyloprim Mon September 07, 2009, 09:44:52

He will always be a slave who does not know how to live upon a little.

Comment

12

retin retin Mon September 07, 2009, 06:02:10

Eat a third and drink a third and leave the remaining third of your stomach empty. Then, when you get angry, there will be sufficient room for your rage.

Comment

11

allopurinol allopurinol Mon September 07, 2009, 05:58:31

Assuming either the Left Wing or the Right Wing gained control of the country, it would probably fly around in circles.

Showing comments 1 to 10 of 20 | Next | Last
logoLeaving tracks across the web.