Admin - General Settings

The main admin screen allows a user with suitable privileges to alter the following settings:

Option

Function

Root directory (dbfm_root_dir)this sets the name of the top level (root) directory for the file system. The directory name should not contain spaces and must not be entered with a slash.
Icon Directory (dbfm_icon_dir)the name of the directory (relative to the base drupal directory) where the graphic files associated with the application are stored. e.g. sites/all/modules/dbfm/images.
Node group type (dbfm_node_grp)if you are controlling access to your documents using organic groups then this field should be completed with the node type given to group nodes. This information is used to compile a list of current groups, and when checking whether a user has permission to access a document.
Reset File Counts (dbfm_dbreset)

the database stores details of how many entries are in a directory. If you feel that the file counts may have somehow been calculated wrongly then check this box. It will cause a process to run, when the admin form is submitted, which recalculates ALL the file counts.

Support home directories for users (dbfm_home_enabled)

Whenever a new user is added a HOME directory will be created for them. The user will see a 'home' icon in their browser. The directory is visible only by that user (and by an admin user). The directory is created 'locked', that is to say that it may not be moved, renamed or deleted

Home root directory (dbfm_home_dir)

The home root directory is created imediately beneath the top level directory. The default name for the directory is 'HOME' - should you want to change this you should do so before you start adding user home directories. The directory is owned by the admin user who is the only user with write permission on the directory. All users have read permissions and the directory is locked.

Generate home directories for users

If the database is already populated with users when you enable home directories then you should check this which will call a function to generate home directories for all existing users with the appropriate role permissions.

Don't Compress (dbfm_nozip)when a file is uploaded into dbFM it would normally be compressed before being saved in the database. Certain files have already been compressed, e.g .zip and tar.gz and compressing them a second time is not productive. The extensions of files that we don't want to compress are stored in this field - space seperated and without the dot e.g zip pak cab.
Activate dbFM on specific page types (dbfm_pages)In order for dbFM to appear on a node page or any other page some javascript has to be loaded onto the page.  This obviously makes loading a page slower and there is always the possibility of interactions with other javascript on the page. So we allow the user to specify which pages load the dbfm code - the code isn't added to pages that don't need it. To specify which pages to load dbFM on you enter one page type per line in the text box with a comma at the end of the line for neatness. e.g "node" would load dbFM on all node pages. "node add" would load dbFM only when adding a new node.
Excluded file extensions (dbfm_extensions)This is the default list of file extensions which the user is NOT allowed to load. This list can be overridden based on the users role. See Admin Roles. The list should be entered space seperated with no leading dot. e.g 'bat exe'.
Maximum upload size (dbfm_uploadsize)This is the maximum size of file a user can upload (in megabytes). Note that this setting may be overridden for individual roles. See Admin Roles.
Maximum filename size (dbfm_fnamesize)The maximum length for a filename. It should be noted that the maximum length for a directory name is hard-coded to be 40 characters. Normally you wouldn't change this after the initial setup. However, if you do, it is important that the maximum number is never reduced below the longest current filename on the system.
Point at which context menu flips (dbfm_context)Right clicking against an entry in the file browser brings up a context menu. Normally the context menu appears below the current mouse pointer position. However this is not satisfactory for files near the bottom of a page - the context menu would disappear off the bottom of the page and be illegible. This setting allows the admin user to specify at what position in the page the menu flips from hanging down from the cursor position to hanging up from the cursor position. e.g 0.75 will cause the cursor to flip about three quarters of the way down the screen.
Expand Tree (dbfm_exptree)Enables or disables the 'Expand All' icon on the client's dbFM directory tree. This makes little difference to anything just now! - the entire directory tree is built on the client. However, the plan is to rewrite the tree code (since it slows page load, makes the DOM huge thus slowing all page actions and doesn't scale to very large file systems). When the tree is rewritten pressing 'Expand All' will come at a much higher processing price and should generally be discouraged (or forbidden) as the file system gets larger.
Attachments (dbfm_attach)

This is a set of radio buttons giving the following choices:
Attachments off, All Roles Allowed to use attachments, Restrict attachments to specific roles. If the last option is chosen then you will need to use the Admin Roles screen to set whether attachments are allowed.

Note that merely switching on attachments here will NOT enable attachments on the different node types. You must also navigate to Administer - Content Management - Content Types (admin/content/types) and select the content type you with to use attachments with. See the content administration form

Re-Query delay (dbfm_refreshdelay)if you leave dbfm open on your desktop then, because it is a multi-user application, your browser view may become out of date as other users add and remove files and directories. This field allows the admin user to set the period (in minutes) between browser refreshes. You can stop browser refreshes by either leaving the field blank or setting the value to zero.
Reset Extension and File Limits (dbfm_resetextn)this checkbox allows the admin user to reset any role settings that may have been made. The default list of file extensions and the default file limits will apply.