Since I wanted to use a custom XML file with Monoslideshow but I didn't like to write [monoslideshow id=[ID] preset='PRESET_FILE_NAME'] for each slideshow, I have made a very small customization to the plugin; starting from line 216 I have replaced all the HTML code with the statements <OPTION>...</OPTION> with this very short and simple PHP code:
<select size="1" name="monoslideshow[preset]">
<option value="none" <?php selected('none', $this->options['preset']); ?> ><?php _e('None', 'monoss'); ?></option>
<?php
$cPresetsFolder = WP_PLUGIN_DIR . '/'
. str_replace(basename( __FILE__), "", plugin_basename(__FILE__)) . "presets";
$fHandler = opendir($cPresetsFolder);
$cFile = readdir($fHandler);
while (($cFile = readdir($fHandler)) !== false) {
if (($cFile != ".") && ($cFile != "..") && (strrpos($cFile, ".xml") !== false)) {
$cFile = str_ireplace(".xml", "", $cFile);
echo("<option value=\"" . $cFile . "\" "
. selected($cFile, $this->options['preset']) . ">"
. __($cFile, 'monoss') . "</option>\n");
}
}
closedir($fHandler);
?>
</select>
I've tested it and it's working. Now when I add a custom preset to the folder wp-content/plugins/nextgen-monoslideshow/presets I can choose it from the options panel and set it as the default style.
I think that it's very handy not to have to change each tag for each customized slideshow, so I'd like to propose to the developer of this plugin to use this code or develop a similar thing because IMHO this is a handy feature.