This project is not covered by Drupal’s security advisory policy.
This is a slide of the integration module, view the demo here: Demo
Dfgallery-2: http://www.dezinerfolio.com/dfgallery-2/free-flash-gallery
Module provides two functions for the call: dfgallery_json, dfgallery_html.
photos module using the slide function dfgallery.
Error: lack of language packs:
The error will disappear in seconds. It is caused by a lack of language pack, cvs does not support the language pack(.eden) format.
Based on the wrong path, please create an empty file. eg: ..../modules/dfgallery/dfgallery/resources/locale/dfgallery_en.eden
How to use?
A first step, the use of function dfgallery_json generate json data:
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:
$v = array('url' => 'myimage.json', 'width' => 600, 'height' => 500);
return dfgallery_html($v);//view flash
or
echo dfgallery_html(array('url' => 'http://album.cmsns.com/photos/data/album/1?type=json.json'));
or
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="680" height="520">
<param name="allowFullScreen" value="true" />
<param name="movie" value="http://album.cmsns.com/sites/all/modules/dfgallery/dfgallery/DfGallery.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="xmlUrl=http://album.cmsns.com/zh-hans/photos/data/album/1?type=json.json" />
<embed src="http://album.cmsns.com/sites/all/modules/dfgallery/dfgallery/DfGallery.swf" quality="high"width="680" height="520" FlashVars="xmlUrl=http://album.cmsns.com/zh-hans/photos/data/album/1?type=json.json" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
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.
Project information
- Project categories: Media
15 sites report using this module
- Created by eastcn on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
