• Thanks for bringing out this amazing plugin ?? Love how easy it is to config using the shortcode settings.

    I have two questions that I hope you might be able to help with:

    1. Conditional Loading – I have dequeue’d and re-enqueue’d the script and CSS files so that they don’t load on all pages. Is it possible for this to be native to the plugin so it only triggers in the presence of a shortcode?

    2. Thumbnail navigation (controlNavThumbs) – Am trying to get my head around how this works; for some reason, even though I set it to ‘true’ or ‘nextgen_thumbs’, it doesn’t seem to make a difference – the thumbnails aren’t showing up. Is this meant to work out of the box or should I also be editing some CSS?

    Thanks in advance!

    https://www.ads-software.com/extend/plugins/nextgen-nivoslider/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aldert Vaandering

    (@paperfeed)

    Hey flick, I’m looking into adding the conditional loading right now.

    I’ve never tried using the nextgen_thumbs option yet, since it’s a leftover option from the previous plugin. I’ll see if I can get it to work and update as necessary!

    I’ll get back to you once I’ve figured it out! I’m still getting used to WordPress development, so my code is very likely to be full of inefficiencies. Thanks for pointing these two out!

    Thread Starter flick

    (@mosey)

    Hi Aldert

    Thanks for your quick reply ?? Am just really glad that you decided to continue the plugin development as it is a very useful complement to NextGen. I only wish I were really good at that side of things.

    Conditional loading would be so helpful as Nivoslider is already responsive so that’s already a tick in my box.

    I would be happy to test out any beta versions if you think it might be helpful.

    Thread Starter flick

    (@mosey)

    p/s: I was just reading the documentation on the Nivo slider website and realised that v3 upwards changes the way it detects and loads thumbnails:

    https://support.dev7studios.com/articles/nivo-slider-jquery-plugin/using-thumbnails-with-the-nivo-slider

    It now uses the data-thumb attribute instead of rel or searchandreplace:

    <div id="slider"><img src="images/up.jpg" alt="" data-thumb="images/up_thumb.jpg" /> <img src="images/monstersinc.jpg" alt="" data-thumb="images/monstersinc_thumb.jpg" /> <img src="images/nemo.jpg" alt="" data-thumb="images/nemo_thumb.jpg" /> <img src="images/walle.jpg" alt="" data-thumb="images/walle_thumb.jpg" /> </div>

    I was able to fix the thumbnail issue by changing line 601 of ngg_nivoslider.php to this:

    $output .= "\" " . $image_description . " border=\"0\" class=\"nivo_image\" data-thumb=\"" . $image->thumbURL . "\" alt=\"nivo slider image\" />";

    and in css,
    .nivo_slider_controlNavImages .nivo-controlNav{visibility: visible;}

    Thread Starter flick

    (@mosey)

    Thanks for the share faridjame ?? I haven’t had a chance to try it out yet but hope Aldert will find it helpful.

    Plugin Author Aldert Vaandering

    (@paperfeed)

    Haha wow, what a coincidence. Just as I’m working on the plugin! I’ll have the update out this evening/tomorrow morning (depending on whether I don’t run upon any bugs). I cleaned up the code a bit and added conditional loading as well, so hopefully everything will work correctly!

    Plugin Author Aldert Vaandering

    (@paperfeed)

    Okay I uploaded the release candidate. Feel free to test it out! From preliminary tests it seems to be working.

    Next I want to add built-in theme support, but that’s for the next version.

    Changelog for this version:
    = 3.2.2 =
    * Added: More options to the widget configuration panel (resizing, background color selection, width and height)
    * Added: randomStart, prevText and nextText options to NivoSlider settings
    * Added: caption [“alttext”|”description”|”both”]
    * Changed: The script is now only loaded when necessary (eg. when the shortcode/widget has been used on the page)
    * Changed: Cleaned up code
    * Fixed: Thumbnail navigation now works correctly

    You can get it from https://www.ads-software.com/extend/plugins/nextgen-nivoslider/developers/ by downloading the “developer version”

    If it doesn’t break anything I’ll upload it officially later.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conditional Loading and Thumbnail navigation?’ is closed to new replies.