Как установить этот модуль

Главные вкладки

Аватар пользователя lArkiNSom lArkiNSom 6 июня 2009 в 19:16

Здраствуйте, вот установил модуль dfgallery в админке-модули активировал его, а теперь как зделать так чтобы он показывался на главной странице и как в него добавлять альбомы и фотки?

Комментарии

Аватар пользователя Fanny@drupal.org Fanny@drupal.org 7 июня 2009 в 0:20

Достаточно сложный для установки модуль.

«How to use?
A first step, the use of function dfgallery_json generate json data:
<?php
while ($images = db_fetch_array($result)){
$array[] = array(
'title' => $image['filename'],
'timestamp' => $image['timestamp'],
'thumbnail' => _photos_l($image['thumb'][$thumb]),
'image' => _photos_l($image['thumb'][$view])
);
}
$albums = array(
array(
'properties' => array(
'title' => 'my album1',
'description' => 'description',
//'icon' => 'http://www.cmsns.com/misc/CMSNS.png',
),
'images' => $array,
),
// array(
// 'properties' => array(
// 'title' => 'my album2',
// 'description' => 'description',
// //'icon' => 'http://www.cmsns.com/misc/CMSNS.png',
// ),
// 'images' => $array,
// ),
);
return dfgallery_json($albums);//url: myimage.json
?>

The second step, the use of function dfgallery_html call flash:

<?php
$v = array('url' => 'myimage.json', 'width' => 600, 'height' => 500);
return dfgallery_html($v);//view flash
?>

or

<?php
echo dfgallery_html(array('url' => 'http://album.cmsns.com/photos/data/album/1?type=json.json'));
?>

or

If your php does not support the expansion json, please go here to download.

Please json.php renamed to json-php4.php, uploaded to the modules directory, such as: ../sites/all/modules/dfgallery/json-php4.php.»

Можно начать с того, что в PHP должно быть включено расширение json.

Аватар пользователя lArkiNSom lArkiNSom 7 июня 2009 в 4:34

да уж! а нельзя поподробнее, я вот скачал модуль установил, а как теперь зделать так чтобы показывало на главной странице эту галерею, и как туда фотки добавлять? а нужно ставить саму dfgallery?