2011-07-18, 20:19:28
Hi, (sorry for my english)i will always have problem, when i need to choose all images in the folders. I have a snippet, what helps you to select all images in the folder.Go to: plugins/i18n_gallery/browser/imagebrowser.phpAdd this snippet after the 106th. line
Code:
<? /*Select all*/
if (count($filesSorted) != 0) {
foreach ($filesSorted as $upload) {
$onclick = 'submitLink(\''.$subPath.$upload['name'].'\','.$upload['bytes'].','.$upload['width'].','.$upload['height'].')';
$allimg[]=$onclick;}}
if (isset ($onclick)){ ?>
<input type="button" value="Összes kép hozzáadása" onclick="<? foreach ($allimg as $val) print $val." ; ";?>"/> <? }
/*End of extra part*/ ?>