Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

[Solved] don't need a span for titles on thumbnails when no labels file!

  • krakaos
  • krakaos's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago - 13 years 6 months ago #38944 by krakaos
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){

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #38945 by Goauls
Sorry for replying on such old post, but after i applied your code:
first picture thumbnail caption isnt showing and for rest pics the black span on popup windows still there.

irisi.danger.lv/

File Attachment:

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #38946 by Katia
Just go to plugins/content/jw_sigpro/popup_engines/jquery_fancybox/jquery.fancybox.css at line 49 and change this:
td#fancy_title_main div {
    color: #FFFFFF;
    padding: 16px;
}
to this:
td#fancy_title_main div {
    color: #FFFFFF;
    padding: 16px;
    display: none;
}

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum