diff --git a/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php b/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php index 3c96fcc4004a713dd8a5bb65af028cd19728bce5..b5d76d8df027e8606c87c717a0c44cc7f3103bf7 100644 --- a/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php +++ b/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php @@ -104,7 +104,9 @@ extract( $args ); break; case 'YouTube': - $rv_value = "http://www.youtube.com/v/$Embed_id&autoplay=$RV_autoplay&loop=0&rel=0"; + //Youtube changed API. + //Now needs to add a ? in embed url before the variables. + $rv_value = "http://www.youtube.com/v/$Embed_id?autoplay=$RV_autoplay&loop=0&rel=0"; $rv_flashvar = ""; $rv_flashvar2 = ""; $rv_cap = $Embed_cap; @@ -240,7 +242,7 @@ extract( $args ); echo "width=\"$RV_width\" height=\"$RV_height\">\n"; echo "</embed>\n"; echo "</object>\n\n"; - echo "<p class=\"VideoCaption\">$rv_cap</p>"; + if(!empty($rv_cap)){echo "<p class=\"VideoCaption\">$rv_cap</p>\n\n";}; echo $after_widget; diff --git a/wp-content/plugins/video-sidebar-widgets/helper-functions.php b/wp-content/plugins/video-sidebar-widgets/helper-functions.php index 1c7c9aa5d63b6ca4b3d8131a18934d18902e315c..df0aa8fbb50ca3f9a6b099370e0c79c83ba6c719 100644 --- a/wp-content/plugins/video-sidebar-widgets/helper-functions.php +++ b/wp-content/plugins/video-sidebar-widgets/helper-functions.php @@ -33,7 +33,10 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag break; case 'YouTube': - $value = "http://www.youtube.com/v/$v_id2&autoplay=$v_autoplay2&loop=0&rel=0"; + //Youtube changed API. + //previous modification in version 5.4 does not work for some user, hope this works for everyone. + //thanks to LoSan for the hint about the need to add ? in embed url. http://wordpress.org/support/topic/cant-turn-off-autoplay + $value = "http://www.youtube.com/v/$v_id2?autoplay=$v_autoplay2&loop=0&rel=0"; $flashvar = ""; $flashvar2 = ""; break; diff --git a/wp-content/plugins/video-sidebar-widgets/readme.txt b/wp-content/plugins/video-sidebar-widgets/readme.txt index 64f8652548c4e7fe735c829f44a588150f416bcf..ee9920bbc2bbd4e45128366c096fa0c746225357 100644 --- a/wp-content/plugins/video-sidebar-widgets/readme.txt +++ b/wp-content/plugins/video-sidebar-widgets/readme.txt @@ -4,19 +4,40 @@ Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/ Author link: http://denzeldesigns.com Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle Requires at least:2.8.1 -Tested up to: 3.3.2 -Stable tag:5.3 +Tested up to: 3.9 +Stable tag:5.7 == Description == A collection of sidebar widgets for displaying Flash Videos from 14 video sharing networks. Video networks includes Youtube, Vimeo, BlipTV, Google, etc. This plugin consist of 2 widgets and 1 TinyMCE editor button. -== Changelog == - -= 5.3 = - -fix loading in widget page in IE 9 +== Changelog == + += 5.7 = + +Added check to random video widget, do not print video caption p tags if user did not enter a video caption. + + += 5.6 = + +Corrected typo error for constant WP_PLUGIN_URL in vsw_tinymce.php + + += 5.5 = + +Previous YouTube autoplay fix does not work for some users. Redo it according to loSan and qcdars's solution http://wordpress.org/support/topic/cant-turn-off-autoplay +Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4) + + += 5.4 = + +Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API. + + += 5.3 = + +Fix loading in widget page in IE 9 = 5.2 = diff --git a/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php b/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php index d6499e92945ef43b97e7f94adaaa1c7fb6ae4bfa..f329fe1091f820ad24fac0e758d1ae585f74f56e 100644 --- a/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php +++ b/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php @@ -2,7 +2,7 @@ /* Plugin Name: Video Sidebar Widgets Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/ -Version: 5.3 +Version: 5.7 Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content. Author: Denzel Chia Author URI: http://denzeldesigns.com/ diff --git a/wp-content/plugins/video-sidebar-widgets/vsw_tinymce/vsw_tinymce.php b/wp-content/plugins/video-sidebar-widgets/vsw_tinymce/vsw_tinymce.php index 2769085d611b5836827b3e84196cdc2b3a51585a..1de806981e1321d95dc92d396bbad4d5387583a9 100644 --- a/wp-content/plugins/video-sidebar-widgets/vsw_tinymce/vsw_tinymce.php +++ b/wp-content/plugins/video-sidebar-widgets/vsw_tinymce/vsw_tinymce.php @@ -29,10 +29,10 @@ function dd_vsw_button($tiny_buttons) { // Load the TinyMCE plugin : editor_plugin.js (wp2.5) function dd_vsw_tinymce_plugin($plugin_array) { - //check if defined WP_PLUGINS_URL - if (defined('WP_PLUGINS_URL')) { + //check if defined WP_PLUGIN_URL + if (defined('WP_PLUGIN_URL')) { - $url_to_plugin = WP_PLUGINS_URL."/video-sidebar-widgets/vsw_tinymce/editor_plugin.js"; + $url_to_plugin = WP_PLUGIN_URL."/video-sidebar-widgets/vsw_tinymce/editor_plugin.js"; }else{ //if not assume it is default location.