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:




5 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..

Leave a Comment

New WYSIWYG Comments

Date: 17th January 2008 at 10:32 pm | Filed under: blog | Author: Sam Burdge

I've installed the TinyMCEComments plugin on my site, so now you can preview what your comment will look like as you type it. Nice!

Leave a Comment

Simple Javascript for image mouseovers

Date: 17th January 2008 at 12:54 am | Filed under: development, scripts | Author: Sam Burdge

This is a simple javascript for creating a mouseover effect on image links, also known as an image replacement script. It works in two stages. In this example "image 1" is the link image and "image 2" is the mouseover image.

Stage 1

Add this javascript to the head of your page:

function SwapImage1() {
document.image1.src="/images/image2.jpg"
}
 
function SwapImage1Back() {
document.image1.src="/img/image1.jpg"
}

Stage 2

Add the following onmouseover and onmouseout properties to your image:

<img src="/images/image1.jpg"
onmouseout="SwapImage1Back()" onmouseover="SwapImage1()" name="image1" />

Leave a Comment

Neil Stewart Website

Date: 16th January 2008 at 7:07 pm | Filed under: portfolio | Author: Sam Burdge

Neil Stewart - HomeNeil Stewart - GalleryNeil Stewart - BiogNeil Stewart - Moving Image

This site, built for photographer Neil Stewart, is the first site 76 Creative have launched this year. Built with PHP, it features categorized thumbnail galleries, the usual biog, links and contact information, and also a moving image section with an embedded Flash Video (flv). All of the navigation for the site is done using images to create the hand written look that we were going for, it uses a javascript to give the mouseover effect for the images. For me, this is one of the best designed sites I have worked on so far, as it has a distinctive style, yet it's simple and functional.

Check it out: www.photoneil.com

Leave a Comment

Removing defualt borders from links in Firefox (CSS)

Date: 14th January 2008 at 6:13 pm | Filed under: development, scripts | Author: Sam Burdge

One of Firefox's default styles is to put a dotted line border around active links. For many sites this is not an issue, and can even be helpful to the user, making it clear when they have clicked on a link. However, with some sites, especially when using images as links in the nav, it can look really ugly. To get rid of the dotted borders use the following CSS:

a:active, a:focus {outline: 0;}

1 Response to “Removing defualt borders from links in Firefox (CSS)”

  • Comment by Matt Algren
    Date: February 22nd, 2008 at 3:40 pm

    Thanks for the tip. That's been a peeve of mine for some time!

Leave a Comment