===========================================================================================
Input parameter (handing over)
===========================================================================================
$parameter = explode(',', trimhtml($parameter));
$my_gallery_rootid = empty($parameter[0]) ? 0 : intval($parameter[0]);
$my_gallery_subid = empty($parameter[1]) ? 0 : intval($parameter[1]);
$my_gallery_sub_subid = empty($parameter[2]) ? 0 : intval($parameter[2]);
// Some examples how a new parameter in your tag could be look like.
// $my_detail_title_date_on = empty($parameter[3]) ? 3 : intval($parameter[3]);
// $my_detail_zoom = empty($parameter[4]) ? 0 : intval($parameter[4]);
// $my_detail_lightbox = empty($parameter[5]) ? 0 : intval($parameter[5]);
// $my_detail_thumb_count_to_min = empty($parameter[6]) ? 0 : intval($parameter[6]);
// $my_detail_thumb_width_height = empty($parameter[7]) ? '80x80' : trim($parameter[7]);
// $my_detail_copyr_text = empty($parameter[8]) ? '(c) Max Muster' : trim($parameter[8]);
// $my_gallery_css = empty($parameter[9]) ? 'galleryx' : trim($parameter[9]);
\\
**1.** Have a look to this tag e.g.: ##{GALLERYX: 25, 31, 32, 2, 1, 1, 15, 60x60, (c) My text, mygalleryx}##
+----------+--------+-------+----------+-------+-----+---------+-------------+-------------+------------+---------------+
| {GALLERYX: 25 | 31 | 32 | 2 | 1 | 1 | 15 | 60x60 | (c) My text| mygalleryx } |
| | | | | | | | | | | |
| {GALLERYX: root_ID| sub_ID| subsub_ID| title | zoom| lightbox| thumb_ | thumb_ | copyr text | mygallery css}|
| | | | | /date | | | count_to_min| width_height| | |
| | | | | | | | | | | |
| Index | [0] | [1] | [2] | [3] | [4] | [5] | [6] | [7] | [8] | [9] |
+----------+--------+-------+----------+-------+-----+---------+-------------+-------------+------------+---------------+
\\
**2.** Second we must create a new tag: For this individual configuration you can see the parameter set above in "Input parameter //(handing over)//" \\
//(the commented one - uncomment them and it ought to run.)// \\
We have only two types of variables, **[int]** and **[string]**.
For **[int]** please use the intval function ([[http://us.php.net/manual/en/function.intval.php]]) \\
For **[string]** please use the "trim function" ([[http://de3.php.net/trim]])
Figure out the **"short if syntax"** ([[http://www.scottklarr.com/topic/76/tip-of-the-day-php-short-hand-if-statement/]])
[$variable = (statement) ? "return if true" : "return if false";]
e.g.: $my_gallery_css = empty($parameter[9]) ? 'galleryx' : trim($parameter[9]);
And take care to the running index e.g. [9] [9]
**3.**
// [0|1|2|3] [0=off | 1=info |2=off | 3=info and date ] in sub gallery
$my_list_descr_info_date_on = 3; // [0|1|2|3] Show description in list -> no separate date available
$my_list_descr_prefix = ''; // '';
$my_list_descr_suffix = '';
$my_list_descr_date_prefix = '';
$my_list_descr_date_suffix = ' – ';
// caption set in sub sub gallery -> caption and/or lightbox
// [0|1|2|3] [0=off | 1=capt |2=light | 3=capt&light ] in sub sub gallery
$my_detail_caption_on = 3;
// [0|1|2|3] [off | title=on | date=on | title and date = on] in sub sub gallery
$my_detail_title_date = 3;
Before installing the new file struct, disable the file \\
##/template/inc_script/frontend_render/galleryx.php##
After you have uploaded, compare your settings and tags in **galleryx.php ->** ##/template/inc_script/galeryx/galleryx_main_v121.inc.php##.
**[/UPDATE]**
\\
**[UPDATE v1.2.1]**
// special linebreak in caption/copyright for lightbox solves the \n\t problem
$my_detail_cc_light_linebreak = 1; // [0|1] [0=off (old behavior) | 1=on (no [BR] needed for linebreak)]
// fallback text if there is no one in db
$my_detail_caption_text = ''; // the caption text for sub sub and lightbox
// thumb text: title for hover and alt for thumb image
// only for lightbox: important for a right caption carry to lightbox
// blank: filename.ext is generated for title text
// At filecenter info field you can use the tag[TT]......[/TT] for setting up too
$my_detail_caption_title = ''; // the thumb title text (blank: filename.ext is autom. inserted)
// blank: filename.ext is generated for alt text
// At filecenter info field you can use the tag[AT]......[/AT] for setting up too (blank: filename.ext is autom. inserted)
$my_detail_caption_alt = ''; // the thumb alt text
Add if you want, this css snippet to the bottom into ##/template/slimbox/css/slimbox.css##
#lbCaption { /* kh changed */
font-weight: normal; /* bold; */
}
#lbCaption p { /* +kh */
font-weight: normal; /* bold; */
padding: 0 0 6px 0;
}
**[/UPDATE v1.2.1]**
\\
**[UPDATE v1.2.2]**
sort mode:
// LIST THUMB ------------------------------------------
// string defines the sorting mode of the list Sub Gallery thumbs:
// RAND = get images by random)
// SORT-ASC, SORT-DESC, SORT-NAME-ASC, SORT-NAME-DESC, SORT-CREATE-ASC, SORT-CREATE-DESC (since r304)
// NAME-ASC, NAME-DESC, CREATE-ASC, CREATE-DESC,
// LIST-SPECIAL-IMG -> A special thumb for gallery listing with sort number = -1, -2, -3, ....
$my_list_thumbnail_sort = 'LIST-SPECIAL-IMG';
// =====================================================
// sub sub gallery definition
// =====================================================
// string defines the sorting mode
// ASC / DESC = get images sorted by date
// NAME-ASC / NAME_DESC = get images sorted by name (+kh)
// RAND = get images by random)
// SORT-ASC, SORT-DESC, SORT-NAME-ASC, SORT-NAME-DESC, SORT-CREATE-ASC, SORT-CREATE-DESC (since r304)
// NAME-ASC, NAME-DESC, CREATE-ASC, CREATE-DESC
$my_gallery_image_sort = 'SORT-NAME-ASC'; // sorting gallery images
// GALLERY THUMBS ======================================
// sub sub gallery thumbs
$my_detail_thumb_fast_output = 1; // processing of all thumbs/images during first call of the galleryx [0|1]
**[/UPDATE v1.2.2]**