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

WP Digi Clock Plugin - Folder and file permissions

Date: 11th January 2008 at 2:27 am | Filed under: development, plugins, wordpress | Author: Sam Burdge

I have recently received emails from a couple of users of my WP Digi Clock Plugin who have been unable to update the clock's settings via the Digi Clock options page in WordPress. Unfortunately I do not have time to give individual support for my free plugins as I am too busy building sites, earning a living etc. However, I think the reason some of you have been having trouble is due to file/folder permissions on your server. When you update the clock's options the wp-clock-params.php file for the clock is updated (this file stores your clock settings), if the permissions for the file, and the digi-clock folder itself are not set correctly it will not be able to update.

The permissions should be set as follows:

wp-digi-clock (folder) – 755
wp-clock-params.php (file) – 644

Here is a brief explanation of file and folder permissions on a unix server:

The three user types are:

  1. user - the user (the owner of the file or directory), who you are on the system is determined by username and password at login time
  2. group - a group of users, e.g.: administrators, plain users, etc.
  3. world - anyone else, e.g: anonymous users or anyone who is not the owner, or of the same group as the owner, of the file or directory

The three access types are:

  1. read - the file or directory can be read
  2. write - the file or directory can be written to, or deleted
  3. execute - the file (scripts or executables) can be run, or the directory can be entered

To set permissions, in the simplest form, you use a three digit code: the first digit represents the access given to the user, the second digit represents the access given to the group, the third digit represents the access given to the world. The values that make up each access type are:

4 = read
2 = write
1 = execute

To apply more than one type of access to a user type, simply add the values together to get access permissions of the desired types:

7 = read, write & execute (4 + 2 + 1)
6 = read & write (4 + 2)
5 = read & execute (4 + 1)
4 = read
3 = write & execute (2 + 1)
2 = write
1 = execute

Putting together these digits determines the 3-digit permission code that makes up the file's permissions.
E.g. User: read, write & execute (7) + Group: read & execute (5) + World: read & execute (5) = 755.

Leave a Comment

WP Digi Clock Plugin (1.0) - New Version!

Date: 4th December 2007 at 10:18 pm | Filed under: development, flash, plugins, wordpress | Author: Sam Burdge

This easy to use plugin will embed a flash digital clock into your wordpress blog, either in a post or page, or within your blog's template (in the sidebar / header / footer etc.). The background and font colours are managed via the options menu. The clock can display the time as set on the user's local machine or as set by your web server with an optional offset. It also has options for 12hr and 24hr clock.

Installation:

  1. Download the plugin file here: WP Digi Clock Plugin (1.0)
  2. Upload the wp-digi-clock folder to your wp-content/plugins folder
  3. Activate the plugin from the plugins page
  4. Go to Options -> WP Digi Clock to choose your colour scheme and time format options

Usage:

To embed in a post or page:

type in [ wp_digi_clock ] (removing the spaces) anywhere in a post or page.

to embed in your page template (header, footer, sidebar):

use the function wp_digital_clock($x), with $x being a number or identifier for example:

<h2>TIME</h2>
<li><?php wp_digital_clock('1'); ?></li>

1 Response to “WP Digi Clock Plugin (1.0) - New Version!”

  • Comment by Mat
    Date: June 2nd, 2008 at 7:28 pm

    thanks for making a great clock.

    is there a way to change the font size?
    thanks again!

Leave a Comment

Plugin Release Dates

Date: 23rd November 2007 at 2:33 pm | Filed under: blog, plugins, wordpress | Author: Sam Burdge

Due to the popularity of my first 2 plugin releases, WP Custom Title Colour and WP Digi Clock Plugin (0.1BETA), I have taken on board comments that users have left on the site to add many new features and can now announce the release dates for the first upgrades of both plugins:

WP Digi Clock (1.0) — 1.12.2007
WP Custom Colour Title (1.0) — 10.12.2007

I also have two other plugins under development to be released in January, so watch this space!!

Leave a Comment

WP Digi Clock Plugin (0.1BETA)

Date: 19th October 2007 at 10:48 pm | Filed under: development, flash, plugins, wordpress | Author: Sam Burdge

A NEW VERSION OF THE PLUGIN HAS BEEN RELEASED!! Please follow this link: WP Digi Clock Version 1.0

[wp_digi_clock]This easy to use plugin will embed a flash digital clock into your wordpress blog, either in a post or page, or within your blog's template (in the sidebar / header / footer etc.). The background and font colours are managed via the options menu. The clock displays the time as set on the user's local machine. Server time and timezone offsets will be a feature of version 1 when it is released. For now please try it out and let me know of any issues etc. by commenting on this page.

Installation:

  1. Download the plugin file here: Follow the link at the top of this page to get the new version!!
  2. Upload the wp-digi-clock folder to your wp-content/plugins folder
  3. Activate the plugin from the plugins page
  4. Go to Options -> WP Digi Clock to choose your colour scheme

Usage:

To embed in a post or page:

type in [ wp_digi_clock ] (removing the spaces) anywhere in a post or page.

to embed in your page template (header, footer, sidebar):

use the function wp_digital_clock() for example:

 
<li>
<h2>TIME</h2>
</li>
<li><?php wp_digital_clock(); ?></li>
 

7 Responses to “WP Digi Clock Plugin (0.1BETA)”

  • Comment by chris
    Date: November 2nd, 2007 at 11:16 pm

    when trying to change the color, what numbers correspond with what color? is there any info on this?

  • Comment by Sam Burdge
    Date: November 2nd, 2007 at 11:23 pm

    Hi, as this is the very first release I haven’t had a chance to integrate the colour picker. Basically it works by hex codes e.g: #ffffff = white, #000000 = black. For a full list of colour codes you can visit: webmonkey

  • Comment by Hien
    Date: November 3rd, 2007 at 5:14 am

    Hi Sam:

    Just tried out you Digi Clock plugin (0.1BETA). Its a snap to use. I know that you probably have plans for other features so I won’t make any unreasonably unbearable requests. There is only one thing I’d like to bring to light… non-military time. The plugin, works great with my site color scheme right out of the box. I didn’t even have to change a thing. Thanks!

  • Comment by Shawn
    Date: November 5th, 2007 at 8:30 pm

    Hi Sam.. looks good.
    I would love, however, a “countdown” feature…
    allowing us to put a clock widget on the sidebar with a configurable title to provide countdown clocks .. ie.. “Time until election day”, “Time until vacation”, etc

  • Comment by Sam Burdge
    Date: November 5th, 2007 at 9:01 pm

    Hi Shawn, the closest thing I could find is this plugin: Countdown

  • Comment by Afzal Javed
    Date: November 6th, 2007 at 7:32 pm

    I still don’t know how to change the back ground color. Please let me know in which line of plugin-code should I change the code.

  • Comment by Sam Burdge
    Date: November 6th, 2007 at 9:42 pm

    Hi Afzal,
    In the options menu in wordpress you should see the tab for WP Digi Clock. Go to the WP Digi Clock options page and enter hex color codes for the background and text colours. If you dont see the colours change at first, try emptying your browser’s cache. Hope this helps…

Leave a Comment