KFile, a simple download-link generator for WordPress

After finally finding a nice CMS to use for my homepage, I was searching for a simple plugin that lets me

  • upload files manually using scp or other means from the command line
  • display a nice link to the file, stating name, size etc. after adding a text like [file=foo.tar.bz2]

All I found were quite large plugins using databases, using quite elaborate administration front ends. So I started writing one myself.

Usage

  • Install and activate the plugin.
  • Create a directory wordpressurl/download (alternatively, change the constant in kfile.php)
  • Upload files there
  • Add tags like [file=foo.tar.bz2] to your posts whereever you want the links placed. you might also specify multiple files, as in [file=foo.tar.bz2,bar.gif]

filetype kfile.zip (105.98 kiB, 2008-06-02)

This entry was posted in Internet and tagged , . Bookmark the permalink.

One Response to KFile, a simple download-link generator for WordPress

  1. Albi says:

    Hi There!

    I just found your plugin and it does pretty much what I was looking for. I have a question, though:

    Instead of inserting the file link straight into the post, I would like to put it in a metabox and have it display at a predefined location in my theme file. Would you know how I go about doing this? I’ve tried it through a shortcode, but it doesn’t spit out any link so I’m guessing I’m not doing it right, or am I missing something?

    Thanks for the plugin!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">