Support » Plugins » [Plugin: YouTube SimpleGallery] Some YT Links not working

  • Resolved gasjeerbij

    (@gasjeerbij)



    Hi, first of all thanks for this easy to use plugin!

    I found a problem…
    some videos don’t work, like this one: L_–B3y_PpY
    I think it is because it has _– right after eachother.

    If i look into the source it returns this line of code:
    src=”http://www.youtube.com/v/L_&hl=en_US&fs=1&”
    So it breaks after the L just before _–

    I hope u can fix this!

    Best Regards

    http://wordpress.org/extend/plugins/youtube-simplegallery/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found the problem. WP automatically adds a content filter on — turning it into –

    A temporary fix:
    Edit youtube_simplegallery.php and find line 173:

    else $thumb[1] = $thumbnails;

    After it, add :

    $thumb[1] = str_replace('& #8211;', '--', $thumb[1]);

    Find line 204:

    else $video[1] = $videolink;

    After it, add:

    $video[1] = str_replace('& #8211;', '--', $video[1]);

    NOTE: Remove space between & # in both addes lines.

    Thanks alot it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: YouTube SimpleGallery] Some YT Links not working’ is closed to new replies.