• Resolved czandstra

    (@czandstra)


    Hi, just installed the latest version of NGG Video Extend, and unfortunately it’s not working for me. I went through all the support pages, changed everything that was suggested, but now I’m fresh out of ideas.

    I feel I am very close as I can see that Shadowbox ‘took over’ the photos display of standard NGG, and it all looks right. But with videos…

    Whenever I click the video thumbnail, the shadowbox appears with a text “loading”, and that’s it! Nothing else happens.

    The shortcodes are correctly set in the description field, as explained in the FAQ, and I reset everything to default in Shadowbox, switched JQuery on (also tried the ‘off’ setting, to no avail). I tested with the following URL’s:

    https://www.youtube.com/v/d7JRmGp9DgQ
    https://player.vimeo.com/video/20759609

    Here’s the gallery on my test site:
    https://moc.directactief.nl/fotos/?album=1&gallery=3
    (It’s the 9th thumbnail)

    I must admit that I haven’t tried switching back to WP theme default and deactivating plugins. That’s because others are working on the site currently and I don’t want to confuse them. But I’m more than happy to if that helps you supporting me. Thanks in advance!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter czandstra

    (@czandstra)

    Update: In the meantime I tried and deactivated all plugins and ran WP in the default theme. Still, the NGGVE reacts the same.

    The only custom code left active was in the header.php, for the Supersizer background. COuld that be it?

    Thread Starter czandstra

    (@czandstra)

    Update 2 (Won’t surprise me if I solve it myself in the end. Haha):

    The plot thickens: I went to the Shadowbox support pages and one of the developers placed some sample code for Youtube embedding. I copied that same exact code into a text widget, linking to above mentioned Youtube video. And it works perfectly! So this excludes incompatibility with any of the plugins or script.

    Here is the code:
    <a title="Part 1" rel="shadowbox;width=640;height=385" href="https://www.youtube.com/v/FkbqYHZxzn0?fs=1"><img src="https://img.youtube.com/vi/FkbqYHZxzn0/1.jpg" alt="Part 1" width="75" height="75" />

    Could the problem be with the shortcode, maybe?

    Thread Starter czandstra

    (@czandstra)

    Allright, the problem is with the js file. It tries to do some jQuery replacements on the href, title and rel attributes.

    I placed alerts all through the code, and I can confirm it finds what it is supposed to find, it picks up the attributesa nd shows them in the alerts, but when they should be replaced by the new values, Ican again see in the alerts that it went successful, but in the HTML output nothing happened…

    To be more exact: href and title don’t get replaced in the HTML, and I end up with two rel attributes. Below the HTML output (stylized for readability):

    <a
    	title="<strong>Vimeo movie</strong> - [nggvid]https://player.vimeo.com/video/20759609[/nggvid]Some text"
    	href="https://moc.directactief.nl/wp-content/gallery/duikfotos-2011/funnydiver.jpg"
    	rel="shadowbox[post-112];player=img;"
    	rel="shadowbox[set_3]"
    >
    	<img
    		title="Vimeo movie"
    		alt="Vimeo movie"
    		src="https://moc.directactief.nl/wp-content/gallery/duikfotos-2011/thumbs/thumbs_funnydiver.jpg"
    		width="110"
    		height="110" /
    	>
    </a>
    Thread Starter czandstra

    (@czandstra)

    BTW, that rel parameter, ‘player=img’, is set by the Shadowbox plugin, and so I’m left with two rel parameters, as you can see. Could it be a version conflict between the latest versions of Shadowbox and NGG Video Extend? I’m at wits end. I try hard to understand what exactly is going on, but have too little knowledge of jQuery and JS.

    Thread Starter czandstra

    (@czandstra)

    I cracked it. At last!

    It was my own bloody fault, but I’d like to share it with you, as this is probably a very common mistake-a-to-make-a.

    I love NextGen Gallery, but wasn’t happy with the fact that the Lightbox Gallery didn’t show any captions with the pictures. So I introduced them myself, by altering the …/view/gallery.php code. By that I influenced the behavior on the “title” parameter. The very thing that triggers the NGGVE plugin to work properly.

    By defaulting back to the original file, your wonderful plugin worked rightaway.

    This issue taught me to document everything, and I mean EVERYTHING (because it’s always the little things you forget), and to leave the core files alone, whenever possible.

    Well, this has been a very interesting exercise in self-support. Thanks for giving me a stage ??

    Chris

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: NGG Video Extend] Videos not loading’ is closed to new replies.