Commit 6255fbb4 authored by lucha's avatar lucha
Browse files

[auto] Plugin: video-sidebar-widgets 5.7

parent 4a78f97b
......@@ -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;
......
......@@ -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;
......
......@@ -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 =
......
......@@ -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/
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment