WP File Download Plugin

Date: 18th January 2008 at 5:14 pm | Filed under: development, plugins, wordpress | Author: Sam Burdge

This WordPress plugin allows you to attach a download file to any post or page via the write/edit page in WordPress. It also forces files that would usually open in the user's web browser, such as jpg, mp3 or pdf to download to the their desktop instead. At the moment it only allows one attachment per post/page, but it's beauty is in it's simplicity.

Installation:

  1. Download the plugin file here: WP File Download Plugin (1.0)
  2. Upload the wp-digi-clock folder to your wp-content/plugins folder
  3. Activate the plugin from the plugins page

Usage:

  1. Upload a file via the WordPress upload form or FTP
  2. Enter the full URL to the file (including http://www.) into the box in the 'File for download' tab in the right sidebar in the Write/Edit page in WordPress

Adding your own Download Image:

  1. Replace the file plugins/wp_file_download/download-button.png with any image file of the same name.

Example:




8 Responses to “WP File Download Plugin”

  • Comment by giovanna papetti
    Date: February 21st, 2008 at 12:41 am

    Your plugin is very beautiful!!! it's possible attach other link for every post? and the name of link download? many many thanks

  • Comment by Senise
    Date: April 7th, 2008 at 11:42 pm

    this plugin is a great idea, but it would be much more useful if it could upload the file and then display it for download.

  • Comment by Sam Burdge
    Date: April 8th, 2008 at 12:11 am

    Hi Senise
    You can use the wordpress upload form already provided to upload the file. The point in this is that only files uploaded by that form will show up in your wordpress uploads page, and under the 'browse all' tab in the write page. Files uploaded by ftp or other means will not show up in your list of uploads.
    Sam

  • Comment by c|neva
    Date: May 17th, 2008 at 2:59 am

    Why dosent work in a theme like this: http://www.psparea.com/wallpapers ?

  • Comment by tsoft
    Date: July 5th, 2008 at 4:14 pm

    a very helpful plugin! thanks..

  • Comment by exinco
    Date: November 17th, 2008 at 4:50 pm

    is this workable for video downloading. i have naruto anime and i want user to download the video

  • Comment by Sam Burdge
    Date: November 17th, 2008 at 5:12 pm

    Hi Exinco
    It should work for any file type, but it will always prompt the user to download the file (It forces files that would usually open in the user’s web browser, such as jpg, mp3 or pdf to download to the their computer instead).
    Try it out and let me know if you have any problems.
    Sam

  • Comment by Sam Burdge
    Date: November 17th, 2008 at 5:15 pm

    Hi c|neva
    It may be clashing with another plugin you are using?

Leave a Comment

wordpress monthly navigation

Date: 25th October 2007 at 4:11 pm | Filed under: development, scripts, wordpress | Author: Sam Burdge

This article explains how to create a monthly navigation system for one or more categories in wordpress, or on the home page itself. By this I mean that on the first page it would display only posts from the current month. The next and previous page links would be replaced by next and previous month links.

To display the monthly content it is first necessary to create a custom query. This should be done before the loop begins. Here is an example of the custom query php:
Read on…

4 Responses to “wordpress monthly navigation”

  • Comment by hanslukas
    Date: May 12th, 2008 at 11:09 pm

    hi…
    it’s just what i was searching…

    I tried to use your solution pasting it on mi index.php, but don’t work…
    where my error please?

    Sorry for my english,I thank you
    regards

  • Comment by Minmin
    Date: November 27th, 2008 at 7:38 pm

    Thanks so much! You’re the best! :) It helped me so much.

  • Comment by Jack
    Date: March 24th, 2010 at 8:49 am

    Could you make this into a plugin? I’m looking for this for ages, using an old next/previous month plugin which works, but not with permalinks enabled. This is a link to that old plugin.

  • Comment by Weekly Links #13. | claudio schwarz – c.schwarz – claudioschwarz.com
    Date: March 25th, 2010 at 9:02 am

    [...] WordPress Montly Navigation Anstelle von Seite 1, 2 oder 3 (etc.) stünde bei dieser Programmierung ein Link zum vorherigen Monat. [...]

Leave a Comment

wp plugin - remove www. from url

Date: 18th October 2007 at 6:11 pm | Filed under: development, plugins, wordpress | Author: Sam Burdge

A slight variation from my previous wordpress plugin 'Force www. in URL'.

This plugin removes the www. from the url regardless of what the user has typed or the link they have followed.This type of redirection is usualy done by altering the .htaccess file, which some Wordpress users may not have access to. Using a plugin to do this is an easy solution for WordPress users as the setup process is simple, and will be familiar to most of you.

Instructions:

  1. Download the plugin file here: Remove www. Plugin (rar) | Remove www. Plugin (zip)
  2. Upload the php file into your plugins folder (/wp-content/plugins/)
  3. Go to your plugins page in WordPress and activate the plugin

Read on…

3 Responses to “wp plugin - remove www. from url”

  • Comment by Wouter
    Date: September 22nd, 2008 at 11:12 am

    Do you know how to undo this plugin? After activating this plugin I can’t login to my wp-admin anymore. I have Wordpress 2.6.2. When I try to go to wp-admin or wp-login.php it redirects me to http://nl../wp-admin instead of http://mydomain/wp-admin

  • Comment by Wouter
    Date: September 22nd, 2008 at 11:20 am

    By deleting the remove-www.php file my wp-admin works again so problem solved ;)

  • Comment by sandrar
    Date: September 10th, 2009 at 9:45 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

Leave a Comment

wp plugin - force www. in url

Date: 12th October 2007 at 6:21 pm | Filed under: development, plugins, wordpress | Author: Sam Burdge

This nifty little WordPress plugin will force the url to include the 'www.' part of the url string. Useful if you want your address to be displayed in a particular way regardless of how the user types it in. To see how it works delete the www. from your address bar (i.e. http://samburdge.co.uk) and press return. This type of redirection is usualy done by altering the .htaccess file, which some Wordpress users may not have access to. Using a plugin to do this is an easy solution for WordPress users as the setup process is simple, and will be familiar to most of you.

Instructions:

  1. Download the plugin file here: URL to Full URL Plugin (rar) | URL to Full URL Plugin (zip)
  2. Upload the php file into your plugins folder (/wp-content/plugins/)
  3. Go to your plugins page in WordPress and activate the plugin

Read on…

7 Responses to “wp plugin - force www. in url”

Leave a Comment