Tag: {GALLERYX: galleryRoot_ID[int], subgallery_ID[int], subsubgallery_ID[int]}
Put it into a CP (preferentially HTML or simple text).
{GALLERYX:.......} is a RT for large galleries with sub galleries. This tag uses the informations from the file center only.
Some parameters (~20) you can switch in the file galleryx.php directly. There is an defination area. (Or in list of parameters in your tag).
- Standardise parameter name
- Gallery list.
- Sub gallery with info text [on/off].
- Sub Sub gallery (detail) (where you find the images) with caption and copyright text [on/off].
- Show description from Sub gallery (list) in Sub Sub gallery (detail) [on/off].
- Copyright output [on/off].
- Define an over all copyright text instead of file center copyright.
- New sorting mode [NAME-ASC / NAME_DESC] for the images in Sub Sub gallery (detail).
- Half automatic thumb width/height reduce if image count > X
- Direct output of a Sub Sub gallery by a given ID, a subgallery_ID[int] must be set to use this enhancement.
- Your own "go back" text.
- Your own css file and download template.
- You can build your own special tag very easy.
- Three mode display option:
-- gallery list, sub gallery (list) and sub sub gallery (detail)
-- sub gallery (list) and sub sub gallery (detail)
-- only the sub sub gallery (detail) like foxconncebit
-----------------------------------------------------------------------------------------------
Please disable the original /tempate/inc_script/frontend_render/gallery.php (e.g. rename to gallery.php_)
--------------------------------------
Please use the newest one: {GALLERYX: ......} V1.2.x -> (galleryx_call_v12x.php)
--------------------------------------
[EN] file center:
--------------------------------------
[EN] Frontend output example:
--------------------------------------
[DE] Dateizentrale:
--------------------------------------
[DE] Frontend-Ausgabebeispiel (erweitert):
----------------------------------------------------
The own tag and how can I create one:
-----------------------------------------------------------------------------------------------
Basic tag: {GALLERYX: galleryRoot_ID[int], subgallery_ID[int], subsubgallery_ID[int]}
Code: Select all
===========================================================================================
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 look like.
// $my_detail_title_date = 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_gallery_css = empty($parameter[8]) ? 'galleryx' : trim($parameter[8]);
Code: Select all
+----------+--------+-------+----------+-------+-----+---------+-------------------+-------------------+------------+
| {GALLERYX: 25 | 31 | 32 | 2 | 1 | 1 | 15 | 60x60 | mygallery }
| {GALLERYX: root_ID| sub_ID| subsub_ID| title | zoom| lightbox| thumb_count_to_min| thumb_width_height| gallery_css}
| | | | | | | | | | |
| Index | [0] | [1] | [2] | [3] | [4] | [5] | [6] | [7] | [8] |
+----------+--------+-------+----------+-------+-----+---------+-------------------+-------------------+------------+
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- ... statement/)
Code: Select all
[$variable = (statement) ? "return if true" : "return if false";]
e.g.: $my_gallery_css = empty($parameter[7]) ? 'galleryx' : trim($parameter[7]);
And take care to the running index e.g. [7] [7]
Code: Select all
// [0|1|2|3] [off | title=on | date=on | title and date = on] in sub sub gallery
// $my_detail_title_date = 3;
// $my_detail_zoom = 1; // zoom the image: switch [0|1]
// $my_detail_lightbox = 1; // lightbox: switch [0|1]
// $my_detail_thumb_count_to_min = 30; // [integer]
// $my_detail_thumb_width_height = '120x100'; // thumb width x height
// $my_gallery_css = 'galleryx'; // only the name of the css file without the extend!!!
Code: Select all
// [0|1|2|3] [off | title=on | date=on | title and date = on] in sub gallery (list)
$my_list_title_date = 3;
$my_list_description_date = 1; // [0|1] date on/off in description text
// [0|1|2|3] [off | title=on | date=on | title and date = on] in sub sub gallery
$my_detail_title_date = 3;
After you have uploadet, compare your settings and tags in galleryx.php.
[/UPDATE]
(German language follows).
Knut