$Id: README.TXT,v 1.3.2.3 2006/04/29 09:41:41 elmuerte Exp $

Description
-----------

Disknode adds the ability to add files to selected node types. The files can be
selected from the files already available on the system or new files can be 
downloaded\uploaded through the file management interface. File downloads are 
counted. Disknode can be configured to allow one or more files to be attached to 
nodes.


Requirements
------------

This module only works for Drupal 4.6
There is also a module available for Drupal 4.7

Installation
------------

Before installing make sure the 'downloads' table exists. The SQL table 
structure for MySQL can be found in the disknode.mysql file.
After that you can enable the module in the usual way.


Configuration
-------------

DiskNode can be configured at administer -> settings -> disknode.


Theme-ing
---------

Disknode nodes are identified by the type 'disknode'
A disknode node has an array of files associated with it:

	$node->disknodefiles = array();

It contains objects with the following properties:

	$file->fid		the file ID
	$file->filename		the name of the file
	$file->filepath		the path to the file, based from the configured
				file directory
	$file->filesize		file size in bytes
	$file->filemime		the mime-type of the file
	$file->downloads	number of downloads.

Download links are generated by the theme function `disknode_links`:

	mytheme_disknode_links($file)

Where 'mytheme' is the name of the theme. $file contains an file object as
described above. The function should return an array with strings. Just like
the node's `hook_link` function does.


Authors
-------

  * Michiel Hendriks <elmuerte@drunksnipers.com>

