Commonly Used Settings
Site Link and Copyright Text
The site link is a link that will appear at the bottom of gallery pages, typically in the lower-left corner. A common example is a link back to your home page.
-
$site_link['url'] = ''; - Using '' (an empty string) disabls the Site Link.
-
$site_link['title'] = 'Home Page'; - Link text
If you specify copyright text, it will appear at the bottom of your gallery.
See http://www.whatiscopyright.org/ for information about copyrights.
-
$copyright['txt'] = 'Images copyright © 2005, 2006, 2007 original creators or assignees. All rights reserved.'; - This text will appear at the bottom of any page with a gallery image or thumbnail images, usually in the center.
Gallery Size
These don't specify the size of the gallery table, but they affect it.
-
$default_nav_width = 560; - Default width for gallery/directory navigation
rows and thumbnail link rows.
-
$extra_size['pct'] = 2.5; - Add some extra-size percentage (0 to 10)
-
$extra_size['width'] = 0; - Add some extra width, in pixels.
-
$extra_size['height'] = 20; - Add some extra height (room for EXIF, captions).
Navigation Elements
-
$dir_nav['enable'] = TRUE; - Enable Directory Navigation. If disabled,
subdirectories will be isolated galleries.
-
$ctrl_bar['enable'] = TRUE; - Enable the control bar (visitor preferences).
-
$upr_nav['enable'] = TRUE; - Enable the upper gallery navigation row.
-
$lwr_nav['enable'] = TRUE; - Enable the lower gallery navigation row.
Sizes to convert / display
Enable or disable any of the alternate sizes.
Default settings: FALSE,TRUE,FALSE,FALSE,FALSE,TRUE,'1'
| Setting | Size |
| 0 | XS |
| 1 | S |
| 2 | M |
| 3 | L |
| 4 | XL |
| 5 | FS |
These cause resizing links in the Control Bar and Navigation Bar
to disappear if set to FALSE and appear if set to TRUE.
-
$disp_size[0] = FALSE; -
-
$disp_size[1] = TRUE; -
-
$disp_size[2] = FALSE; -
-
$disp_size[3] = FALSE; -
-
$disp_size[4] = FALSE; -
-
$disp_size[5] = TRUE; -
You can specify a size to displeay if no size is specified. This must be an enabled size.
-
$default_img_size = '1'; -
Caption Editing
Caption editing exposes some security risk.
See http://qdig.sourceforge.net/Support/EditCaptions
The link to request editing a caption appears in the copyright area.
-
$admin['link_ena'] = TRUE; - // Enable the caption-editing (Admin) link.
Set a username and password or disable authentication to edit captions.
-
$auth['enable'] = TRUE; - // If this is FALSE, anyone can edit captions.
-
$auth['locked'] = FALSE; - // If this is TRUE, nobody can edit captions.
-
$auth['auto_lock'] = TRUE; - // Automatically lock caption editing...
-
$auth['time_limit'] = 2 * 60 * 60; - // ...this many seconds after last activity.
RESET AUTO-LOCK BY DELETING THE LOCK FILE FROM THE CAPTIONS ROOT DIRECTORY.
-
$auth['0']['username'] = ''; - Set the username.
-
$auth['0']['password'] = crypt(''); - Set the crypted password.
The password needs to be at least six characters and not pure alphabetic.
Use either crypt('some password') or else a pre-crypted password.
To pre-crypt a password, add ?Qtmp=crypt to any Qdig URL and use the form.
-
$auth['pw_crypt_form'] = TRUE; - Enable the password crypting form.
-
$auth['realm'] = 'Qdig Captions'; - HTTP-Authentication Realm. #
-
$auth['session'] = FALSE; - Use session-based authentication, not HTTP-Auth.