My problem i have the plugin is set to "Read Content of Caption file"
and i don't want to put labels for each gallery. For example in K2 Galleries i don't want to have labels. So i need to get title and descriptions only when the file is present.
When the file is missing an empty SPAN is created anyway which is disturbing because it has a background which for example make an empty black line on the bottom using the default template.
I need a modification to display captions from file only if found. if not it should react like for setting "no caption".
This is something i think which should be officially coded in the next update coz it make sense ;)
SOLVED! -> BELOW WHAT TO DO
In File plugins/content/jw_sigpro.php (Version 2.0.5)
After line 154 "//Process tag"
add this:
$captionFile = "labels.txt";
$no_caption = "";
After line 175 "galleryID = substr(md5($key.$srcimgfolder),1,10); // create a unique 8-digit identifier for each gallery"
Add this:
if ($nocaption == ""){
$no_caption = '1';
if(file_exists($site_absolutepath.$srcimgfolder.$captionFile)){
$no_caption = '0';
}
}
And finally replace line 184 "if($gal_captions!=0){"
with:
if($gal_captions!=0 && $no_caption!=1){