WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Youtube video counts and plays twice [solution]

[Resolved] Youtube video counts and plays twice [solution]

  • 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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Youtube video counts and plays twice [solution]’ is closed to new replies.