Gallery layout settings should be set in
tfile_gallery.php file.
All settings of the given file can be edited through the convenient
/admin part but if the user won’t want to use it, the
description of the given settings is quoted below.
- all the galleries should be defined in variables
&cat[gallery number] beginning from
0 and in the increasing order;
- all the photos in the current gallery should be defined in variables
&cat_[gallery number]_pic_[picture number], picture
number from
0 and in the increasing order;
- all the comments to pictures are saved in variables
&cat_[gallery number]_comment_[number of picture with
comment].
Example: There are
two galleries,
10 pictures in each; this should be described in text file
as follows:
&cat_0=NATURE&
&cat_0_pic_0=pic00.jpg&
&cat_0_comment_0=Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent
vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.&
&cat_0_pic_1=pic01.jpg&
&cat_0_pic_2=pic02.jpg&
&cat_0_pic_3=pic03.jpg&
&cat_0_pic_4=pic04.jpg&
&cat_0_pic_5=pic05.jpg&
&cat_0_pic_6=pic06.jpg&
&cat_0_pic_7=pic07.jpg&
&cat_0_pic_8=pic08.jpg&
&cat_0_pic_9=pic09.jpg&
&cat_1=BALOONS&
&cat_1_pic_0=pic00.jpg&
&cat_1_pic_1=pic01.jpg&
&cat_1_pic_2=pic02.jpg&
&cat_1_pic_3=pic03.jpg&
&cat_1_pic_4=pic04.jpg&
&cat_1_pic_5=pic05.jpg&
&cat_1_pic_6=pic06.jpg&
&cat_1_pic_7=pic07.jpg&
&cat_1_pic_8=pic08.jpg&
&cat_1_pic_9=pic09.jpg&
&cat_1_pic_10=pic10.jpg&
&cat_1_pic_11=pic11.jpg&
&cat_1_pic_12=pic12.jpg&
&cat_1_pic_13=pic13.jpg&
&cat_1_pic_14=pic14.jpg&
The other layout settings:
&image_height - small pictures height
&image_width - small pictures width
&h_space - horizontal space between small pictures
&v_space - vertical space between small pictures
&preview_width - big photo width
&preview_height - big photo height
&open_in_browser - (true/ false) - if true, then
at click on zoom button, photo opens in browser, if false – in flash
&comment_position - (stretched, left, right)
positioning of comments to photos (stretched – will occupy all big photo throughout width)
&preview_position (top, bottom, right, left) - gallery
appearance setting, shows how big photo will be settled relatively to the small one
&preview_offset - indent between big and small pictures