Problem 1:
On windows web servers the folder path used by minigallery is wrong because the paths in windows have forward slashes \.
(My development server is windows)
This results in thumbnails with a message "error messages disabled" eg when choosing and image to add to the gallery.
Fix:
Replace line 69 of file /plugins/flexicontent_fields/minigallery.php
Code:
file = '".JPATH_ROOT."/components/com_flexicontent/medias/'+file;
with:
Code:
file = '".str_replace('\\','/', JPATH_ROOT)."/components/com_flexicontent/medias/'+file;
Also in the same file change 'media' to 'medias' at lines 39 and 207
Problem 2:
Minigallery will add javascript and css to the header multiple times,
1. if more multiple minigallery fields are created and assigned to an item type
2. or flexicontent module is published and displays a minigallery field
Fix:
Check not to load javascript and css multiple times, and do some changes to allow mutiple minigallery fields.
For this we place Replace line 235 of file /plugins/flexicontent_fields/minigallery.php
Code:
if ($values)
{
$document->addStyleSheet('plugins/flexicontent_fields/minigallery/minigallery.css');
// this allows you to override the default css files
$document->addStyleSheet(JURI::base().'/templates/'.$mainframe->getTemplate().'/css/minigallery.css');
JHTML::_('behavior.mootools');
$document->addScript('plugins/flexicontent_fields/minigallery/backgroundslider.js');
$document->addScript('plugins/flexicontent_fields/minigallery/slideshow.js');
{
with:
Code:
static $js_and_css_added = false;
if ($values)
{
if (!$js_and_css_added) {
$document->addStyleSheet('plugins/flexicontent_fields/minigallery/minigallery.css');
// this allows you to override the default css files
$document->addStyleSheet(JURI::base().'/templates/'.$mainframe->getTemplate().'/css/minigallery.css');
JHTML::_('behavior.mootools');
$document->addScript('plugins/flexicontent_fields/minigallery/backgroundslider.js');
$document->addScript('plugins/flexicontent_fields/minigallery/slideshow.js');
}
$js_and_css_added = true;
Problem 3:
Minigallery multiple instances (multiple fields) do not work because they use the same html tag id
Fix:
Just after the line
Code:
$js_and_css_added = true;
Add the code
Code:
$htmltag_id = "slideshowContainer_".$field->name."_".$item->id;
$slidethumb = "slideshowThumbnail_".$field->name."_".$item->id;
and replace all occurences of
'slideshowContainer".$item->id."' with '$htmltag_id'
'slideshowThumbnail".$item->id."' with '$slidethumb'
Because there quite a few changes, i post a patched version of minigallery (for version 1.5.5r607), backup the original and post back feedback after testing it. And then i will add it to bug tracker.