WordPress.org

Ready to get started?Download WordPress

Forums

Cool Video Gallery
[resolved] Youtube video counts and plays twice [solution] (2 posts)

  1. berthz
    Member
    Posted 1 year ago #

    Ok. First of all: great plugin! Loving it!
    Yesterday we fixed a problem that we have been having for quite some time. When using the showcase mode with youtube video's the count of video's in the fancybox was double the actual amount of video's in the gallery. Also, all video's played twice instead of once. Having a gallery with 5 video's resulted in a count of 10 video's and all video's playing twice instead of once.

    Here is the (very simple) solution to the problem.

    In your cool-video-gallery.php file find:
    $output .= 'alt="' . htmlspecialchars('Click to Watch Video') . '" /><div style="width:' . $thumb_width . 'px;"></div></a>';

    And change it to:

    $output .= 'alt="' . htmlspecialchars('Click to Watch Video') . '" /></a><div style="width:' . $thumb_width . 'px;"></div>';

    On our site the after the </div> resulted in an extra <p> tag with the complete link of the video in it. Because of that extra paragraph with link the fancybox played the video twice. Ending the anchor link before the new div layer solved the problem.

    http://wordpress.org/extend/plugins/cool-video-gallery/

  2. Praveen Rajan
    Member
    Plugin Author

    Posted 1 year ago #

    @ berthz

    Appreciate your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic