The folder structure will look something like this: |
+-GALLERY | index.php | admin.php | | | +-LANGUAGES | | da.php | | de.php | | en.php | | nl.php | | | +-CSS | | stylesheet.css | | | +-CONFIG | | config.php | | | +-HELP | | help.htm | | | +-LIBS |
The folder structure will look something like this: |
+-PLUGINS | index.php | admin_common.php | | | +-GALLERY | | index.php | | admin.php | | | | | +-LANGUAGES | | | da.php | | | de.php | | | en.php | | | | | +-CSS | | | stylesheet.css | | | | | +-CONFIG | | | config.php | | | | | +-HELP | | | help.htm | | | | | +-LIBS |
Code like this: |
<h1>Gallery</h1> |
This code will create a page called Gallery in CMSimple and on the webserver it will create a folder called gallery with the subfolder test insinde it.
If you after saving the page go to 'NORMAL MODE' you should see a page like below
Now your gallery have been setup and you are ready to use it.
Putting pictures to the gallery
You can upload pictures to the gallery using 2 methods,
FTP upload via your favorite FTP program, this method is prefered if you have to upload a lot of pictures. You must put your .jpg pictures in the forlder created by the script in step 6. gallery/test/
Upload via the gallery admin part, login to the CMSimple, select the gallery from the avaliable plugins dropdown box and then press the Gallery settings button up load via the upload form at the bottom of the page (see below).
Also the version of GD is read out when in this menu.
Generating the files
If you access your gallery page Gallery, created in step 6 the gallery plugin should generate the thumbnails and the files for comments and other stuff.
Change the settings
In the gallery plugin configuration different settings for the gallery can be changed.
Trouble shooting
If you run into problems during the installation please go to http:// and look for advice.
#CMSimple $output.= gallery('gallery/test/','MyOtherConfig');# |
Setting | Values | Description |
addcomment redir to thumbview: | true/false | Set to "true" to redirect to thumb-page after a comment is added |
check for gd | true/false | If set to "true" the gallery checks for installed GD-Lib and show the version |
main max size | xxx | Max. size of the picture on main(details)-page in px |
memory limit | xxM | The memorylimit for uploads in Mb accepted by the gallery (maybe your server accept another value) |
multilanguage comments | true/false | Set to "true" to enable multilanguage-comments |
nav position details | top/bottom/both | Position of navigation on the main(details)-pages |
nav position thumb | top/bottom/both | Position of navigation on the thumb-pages |
number of thumbs | xx | The number of thumbs per page |
on the fly images | true/false | Set "true" to enable watermarking of your pictures |
show bigpic direct from thumb | true/false | Set to "true" to skip the details-page and get a PopUp or Lightbox direct from thumb-page |
show comments | true/false | Set to "true" to show the comments and the comment-form |
show extrainfo | true/false | Set to "true" to show the extrainfo-fields |
show nbr of pics | true/false | Set to "true" to show the headline "xx Pictures in this folder" |
show search | true/false | Set to "true" to show the search-form |
show title | true/false | Set to "true" to show the picture-title |
thumb crop | true/false | Set to "true" to get quadrate thumbs with height = width |
thumb quality | xx | The quality of the thumbs created by the plugin (75) |
thumb size | xxx | The size (width in px) of the thumbs created by the plugin |
title placement | top/bottom | The placement of the title |
use external lib | xxxxxxxxx | External JS-library to load by the plugin (refers to a subfolder-name of "/libs/" |
use lightbox | true/false | Set to "true" to replace the PopUp by a Lightbox-script |
use rel attrib | xxxxxxxxx | The string of the "rel=..." attribute, according to your Lightbox-script |
watermark color | xxxxxx | The hex-color of the watermark text without the leading '#' |
watermark font size | xx | Font-Size of the watermark in px |
watermark h align | left/center/right | The horizontal alignment of the watermark |
watermark margin | x | The size of a margin around the watermark in px (0) |
watermark text | Your text | Enter the text for your watermark here |
watermark v align | top/center/bottom | The vertical alignment of the watermark |