Video Sidebar Widgets - Version 5.2

Version Description

Replaced all null value to blank, to tackle an IE 9 bug reported by user. Solution provided by Ryan Willis. (Thanks!) Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-widget-administration-problem

Download this release

Release Info

Developer denzel_chia
Plugin Icon 128x128 Video Sidebar Widgets
Version 5.2
Comparing to
See all releases

Code changes from version 5.1 to 5.2

class-randomvideosidebarwidget.php CHANGED
@@ -37,8 +37,8 @@ extract( $args );
37
  $RV_cap5 = $instance['RV_cap5'];
38
 
39
  //define empty variable to prevent WordPress debug error
40
- $rv_flashvar = null;
41
- $rv_flashvar2 = null;
42
 
43
  echo $before_widget;
44
 
@@ -96,46 +96,46 @@ extract( $args );
96
 
97
  switch ($select_source) {
98
 
99
- case null:
100
- $rv_value = null;
101
- $rv_flashvar = null;
102
- $rv_flashvar2 = null;
103
- $rv_cap = null;
104
  break;
105
 
106
  case 'YouTube':
107
  $rv_value = "http://www.youtube.com/v/$Embed_id&autoplay=$RV_autoplay&loop=0&rel=0";
108
- $rv_flashvar = null;
109
- $rv_flashvar2 = null;
110
  $rv_cap = $Embed_cap;
111
  break;
112
 
113
  case 'Vimeo':
114
  $rv_value = "http://vimeo.com/moogaloop.swf?clip_id=$Embed_id&server=vimeo.com&loop=0&fullscreen=1&autoplay=$RV_autoplay";
115
- $rv_flashvar = null;
116
- $rv_flashvar2 = null;
117
  $rv_cap = $Embed_cap;
118
  break;
119
 
120
  case 'MySpace':
121
  $rv_value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$Embed_id,t=1,mt=video,ap=$RV_autoplay";
122
- $rv_flashvar = null;
123
- $rv_flashvar2 = null;
124
  $rv_cap = $Embed_cap;
125
  break;
126
 
127
  case 'Veoh':
128
  $rv_value = "http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.2.20.1002&permalinkId=$Embed_id";
129
  $rv_value.= "&player=videodetailsembedded&id=anonymous&videoAutoPlay=$RV_autoplay";
130
- $rv_flashvar = null;
131
- $rv_flashvar2 = null;
132
  $rv_cap = $Embed_cap;
133
  break;
134
 
135
  case 'Blip':
136
  $rv_value = "http://blip.tv/play/$Embed_id";
137
- $rv_flashvar = null;
138
- $rv_flashvar2 = null;
139
  $rv_cap = $Embed_cap;
140
  break;
141
 
@@ -157,16 +157,16 @@ extract( $args );
157
 
158
  case 'DailyMotion':
159
  $rv_value = "http://www.dailymotion.com/swf/$Embed_id&autoStart=$RV_autoplay&related=0";
160
- $rv_flashvar = null;
161
- $rv_flashvar2 = null;
162
  $rv_cap = $Embed_cap;
163
  break;
164
 
165
 
166
  case 'Revver':
167
  $rv_value = "http://flash.revver.com/player/1.0/player.swf?mediaId=$Embed_id&autoStart=$RV_autoplay";
168
- $rv_flashvar = null;
169
- $rv_flashvar2 = null;
170
  $rv_cap = $Embed_cap;
171
  break;
172
 
@@ -174,7 +174,7 @@ extract( $args );
174
  $rid = split('/',$Embed_id);
175
  $rv_value = "http://www.metacafe.com/fplayer/$rid[0]/$rid[1].swf";
176
  if($RV_autoplay=='1'){
177
- $rv_flashvar = null;
178
  $rv_flashvar2 = 'flashVars="playerVars=showStats=no|autoPlay=yes|"';
179
  }
180
  $rv_cap = $Embed_cap;
@@ -182,29 +182,29 @@ extract( $args );
182
 
183
  case 'Tudou':
184
  $rv_value = "$Embed_id";
185
- $rv_flashvar = null;
186
- $rv_flashvar2 = null;
187
  $rv_cap = $Embed_cap;
188
  break;
189
 
190
  case 'Youku':
191
  $rv_value = "$Embed_id";
192
- $rv_flashvar = null;
193
- $rv_flashvar2 = null;
194
  $rv_cap = $Embed_cap;
195
  break;
196
 
197
  case 'cn6':
198
  $rv_value = "$Embed_id";
199
- $rv_flashvar = null;
200
- $rv_flashvar2 = null;
201
  $rv_cap = $Embed_cap;
202
  break;
203
 
204
  case 'Google':
205
  $rv_value = "http://video.google.com/googleplayer.swf?docid=$Embed_id&hl=en&fs=true";
206
  if($RV_autoplay=='1'){
207
- $rv_flashvar = null;
208
  $rv_flashvar2 = 'FlashVars="autoPlay=true&playerMode=embedded"';
209
  }
210
  $rv_cap = $Embed_cap;
@@ -213,10 +213,10 @@ extract( $args );
213
  case 'Tangle':
214
  $rv_value = "http://www.tangle.com/flash/swf/flvplayer.swf";
215
  if($RV_autoplay=='1'){
216
- $rv_flashvar = null;
217
  $rv_flashvar2 = "FlashVars=\"viewkey=$Embed_id&autoplay=$RV_autoplay\"";
218
  }else{
219
- $rv_flashvar = null;
220
  $rv_flashvar2 = "FlashVars=\"viewkey=$Embed_id\"";
221
  }
222
  $rv_cap = $Embed_cap;
@@ -336,8 +336,8 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
336
  $autoplaysetting = '0';
337
  $videoid = $instance['RV_id1'];
338
  $videosource = $instance['RV_source1'];
339
- $videowidth = null;
340
- $videoheight = null;
341
  //$admin = true // to show video in admin
342
 
343
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
@@ -381,8 +381,8 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
381
  $autoplaysetting = '0';
382
  $videoid = $instance['RV_id2'];
383
  $videosource = $instance['RV_source2'];
384
- $videowidth = null;
385
- $videoheight = null;
386
  //$admin = true // to show video in admin
387
 
388
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
@@ -428,8 +428,8 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
428
  $autoplaysetting = '0';
429
  $videoid = $instance['RV_id3'];
430
  $videosource = $instance['RV_source3'];
431
- $videowidth = null;
432
- $videoheight = null;
433
  //$admin = true // to show video in admin
434
 
435
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
@@ -474,8 +474,8 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
474
  $autoplaysetting = '0';
475
  $videoid = $instance['RV_id4'];
476
  $videosource = $instance['RV_source4'];
477
- $videowidth = null;
478
- $videoheight = null;
479
  //$admin = true // to show video in admin
480
 
481
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
@@ -519,8 +519,8 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
519
  $autoplaysetting = '0';
520
  $videoid = $instance['RV_id5'];
521
  $videosource = $instance['RV_source5'];
522
- $videowidth = null;
523
- $videoheight = null;
524
  //$admin = true // to show video in admin
525
 
526
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
37
  $RV_cap5 = $instance['RV_cap5'];
38
 
39
  //define empty variable to prevent WordPress debug error
40
+ $rv_flashvar = "";
41
+ $rv_flashvar2 = "";
42
 
43
  echo $before_widget;
44
 
96
 
97
  switch ($select_source) {
98
 
99
+ case "":
100
+ $rv_value = "";
101
+ $rv_flashvar = "";
102
+ $rv_flashvar2 = "";
103
+ $rv_cap = "";
104
  break;
105
 
106
  case 'YouTube':
107
  $rv_value = "http://www.youtube.com/v/$Embed_id&autoplay=$RV_autoplay&loop=0&rel=0";
108
+ $rv_flashvar = "";
109
+ $rv_flashvar2 = "";
110
  $rv_cap = $Embed_cap;
111
  break;
112
 
113
  case 'Vimeo':
114
  $rv_value = "http://vimeo.com/moogaloop.swf?clip_id=$Embed_id&server=vimeo.com&loop=0&fullscreen=1&autoplay=$RV_autoplay";
115
+ $rv_flashvar = "";
116
+ $rv_flashvar2 = "";
117
  $rv_cap = $Embed_cap;
118
  break;
119
 
120
  case 'MySpace':
121
  $rv_value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$Embed_id,t=1,mt=video,ap=$RV_autoplay";
122
+ $rv_flashvar = "";
123
+ $rv_flashvar2 = "";
124
  $rv_cap = $Embed_cap;
125
  break;
126
 
127
  case 'Veoh':
128
  $rv_value = "http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.2.20.1002&permalinkId=$Embed_id";
129
  $rv_value.= "&player=videodetailsembedded&id=anonymous&videoAutoPlay=$RV_autoplay";
130
+ $rv_flashvar = "";
131
+ $rv_flashvar2 = "";
132
  $rv_cap = $Embed_cap;
133
  break;
134
 
135
  case 'Blip':
136
  $rv_value = "http://blip.tv/play/$Embed_id";
137
+ $rv_flashvar = "";
138
+ $rv_flashvar2 = "";
139
  $rv_cap = $Embed_cap;
140
  break;
141
 
157
 
158
  case 'DailyMotion':
159
  $rv_value = "http://www.dailymotion.com/swf/$Embed_id&autoStart=$RV_autoplay&related=0";
160
+ $rv_flashvar = "";
161
+ $rv_flashvar2 = "";
162
  $rv_cap = $Embed_cap;
163
  break;
164
 
165
 
166
  case 'Revver':
167
  $rv_value = "http://flash.revver.com/player/1.0/player.swf?mediaId=$Embed_id&autoStart=$RV_autoplay";
168
+ $rv_flashvar = "";
169
+ $rv_flashvar2 = "";
170
  $rv_cap = $Embed_cap;
171
  break;
172
 
174
  $rid = split('/',$Embed_id);
175
  $rv_value = "http://www.metacafe.com/fplayer/$rid[0]/$rid[1].swf";
176
  if($RV_autoplay=='1'){
177
+ $rv_flashvar = "";
178
  $rv_flashvar2 = 'flashVars="playerVars=showStats=no|autoPlay=yes|"';
179
  }
180
  $rv_cap = $Embed_cap;
182
 
183
  case 'Tudou':
184
  $rv_value = "$Embed_id";
185
+ $rv_flashvar = "";
186
+ $rv_flashvar2 = "";
187
  $rv_cap = $Embed_cap;
188
  break;
189
 
190
  case 'Youku':
191
  $rv_value = "$Embed_id";
192
+ $rv_flashvar = "";
193
+ $rv_flashvar2 = "";
194
  $rv_cap = $Embed_cap;
195
  break;
196
 
197
  case 'cn6':
198
  $rv_value = "$Embed_id";
199
+ $rv_flashvar = "";
200
+ $rv_flashvar2 = "";
201
  $rv_cap = $Embed_cap;
202
  break;
203
 
204
  case 'Google':
205
  $rv_value = "http://video.google.com/googleplayer.swf?docid=$Embed_id&hl=en&fs=true";
206
  if($RV_autoplay=='1'){
207
+ $rv_flashvar = "";
208
  $rv_flashvar2 = 'FlashVars="autoPlay=true&playerMode=embedded"';
209
  }
210
  $rv_cap = $Embed_cap;
213
  case 'Tangle':
214
  $rv_value = "http://www.tangle.com/flash/swf/flvplayer.swf";
215
  if($RV_autoplay=='1'){
216
+ $rv_flashvar = "";
217
  $rv_flashvar2 = "FlashVars=\"viewkey=$Embed_id&autoplay=$RV_autoplay\"";
218
  }else{
219
+ $rv_flashvar = "";
220
  $rv_flashvar2 = "FlashVars=\"viewkey=$Embed_id\"";
221
  }
222
  $rv_cap = $Embed_cap;
336
  $autoplaysetting = '0';
337
  $videoid = $instance['RV_id1'];
338
  $videosource = $instance['RV_source1'];
339
+ $videowidth = "";
340
+ $videoheight = "";
341
  //$admin = true // to show video in admin
342
 
343
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
381
  $autoplaysetting = '0';
382
  $videoid = $instance['RV_id2'];
383
  $videosource = $instance['RV_source2'];
384
+ $videowidth = "";
385
+ $videoheight = "";
386
  //$admin = true // to show video in admin
387
 
388
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
428
  $autoplaysetting = '0';
429
  $videoid = $instance['RV_id3'];
430
  $videosource = $instance['RV_source3'];
431
+ $videowidth = "";
432
+ $videoheight = "";
433
  //$admin = true // to show video in admin
434
 
435
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
474
  $autoplaysetting = '0';
475
  $videoid = $instance['RV_id4'];
476
  $videosource = $instance['RV_source4'];
477
+ $videowidth = "";
478
+ $videoheight = "";
479
  //$admin = true // to show video in admin
480
 
481
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
519
  $autoplaysetting = '0';
520
  $videoid = $instance['RV_id5'];
521
  $videosource = $instance['RV_source5'];
522
+ $videowidth = "";
523
+ $videoheight = "";
524
  //$admin = true // to show video in admin
525
 
526
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
class-videosidebarwidget.php CHANGED
@@ -86,8 +86,8 @@ class VideoSidebarWidget extends WP_Widget {
86
  $autoplaysetting = '0';
87
  $videoid = $instance['v_id2'];
88
  $videosource = $instance['v_source'];
89
- $videowidth = null;
90
- $videoheight = null;
91
  //$admin = true // to show video in admin
92
 
93
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
86
  $autoplaysetting = '0';
87
  $videoid = $instance['v_id2'];
88
  $videosource = $instance['v_source'];
89
+ $videowidth = "";
90
+ $videoheight = "";
91
  //$admin = true // to show video in admin
92
 
93
  VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
helper-functions.php CHANGED
@@ -16,49 +16,49 @@ function VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoh
16
  $v_width2 = $videowidth;
17
  $v_height2 = $videoheight;
18
  //declare empty variable to prevent WordPress debug error
19
- $flashvar = null;
20
- $flashvar2 = null;
21
 
22
  $source = $v_source;
23
 
24
  //test for source and assign codes accordingly
25
  switch ($source) {
26
 
27
- case null:
28
- $value = null;
29
- $flashvar = null;
30
- $flashvar2 = null;
31
  break;
32
 
33
  case 'YouTube':
34
  $value = "http://www.youtube.com/v/$v_id2&autoplay=$v_autoplay2&loop=0&rel=0";
35
- $flashvar = null;
36
- $flashvar2 = null;
37
  break;
38
 
39
  case 'Vimeo':
40
  $value = "http://vimeo.com/moogaloop.swf?clip_id=$v_id2&server=vimeo.com&loop=0&fullscreen=1&autoplay=$v_autoplay2";
41
- $flashvar = null;
42
- $flashvar2 = null;
43
  break;
44
 
45
  case 'MySpace':
46
  $value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$v_id2,t=1,mt=video,ap=$v_autoplay2";
47
- $flashvar = null;
48
- $flashvar2 = null;
49
  break;
50
 
51
  case 'Veoh':
52
  $value = "http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.2.20.1002&";
53
  $value.= "permalinkId=$v_id2&player=videodetailsembedded&id=anonymous&videoAutoPlay=$v_autoplay2";
54
- $flashvar = null;
55
- $flashvar2 = null;
56
  break;
57
 
58
  case 'Blip':
59
  $value = "http://blip.tv/play/$v_id2";
60
- $flashvar = null;
61
- $flashvar2 = null;
62
  break;
63
 
64
  case 'WordPress':
@@ -77,48 +77,48 @@ function VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoh
77
 
78
  case 'DailyMotion':
79
  $value = "http://www.dailymotion.com/swf/$v_id2&autoStart=$v_autoplay2&related=0";
80
- $flashvar = null;
81
- $flashvar2 = null;
82
  break;
83
 
84
 
85
  case 'Revver':
86
  $value = "http://flash.revver.com/player/1.0/player.swf?mediaId=$v_id2&autoStart=$v_autoplay2";
87
- $flashvar = null;
88
- $flashvar2 = null;
89
  break;
90
 
91
  case 'Metacafe':
92
  $id = split('/',$v_id2);
93
  $value = "http://www.metacafe.com/fplayer/$id[0]/$id[1].swf";
94
  if($v_autoplay2=='1'){
95
- $flashvar = null;
96
  $flashvar2 = 'flashVars="playerVars=showStats=no|autoPlay=yes|"';
97
  }
98
  break;
99
 
100
  case 'Tudou':
101
  $value = "$v_id2";
102
- $flashvar = null;
103
- $flashvar2 = null;
104
  break;
105
 
106
  case 'Youku':
107
  $value = "$v_id2";
108
- $flashvar = null;
109
- $flashvar2 = null;
110
  break;
111
 
112
  case 'cn6':
113
  $value = "$v_id2";
114
- $flashvar = null;
115
- $flashvar2 = null;
116
  break;
117
 
118
  case 'Google':
119
  $value = "http://video.google.com/googleplayer.swf?docid=$v_id2&hl=en&fs=true";
120
  if($v_autoplay2=='1'){
121
- $flashvar = null;
122
  $flashvar2 = 'FlashVars="autoPlay=true&playerMode=embedded"';
123
  }
124
  break;
@@ -126,10 +126,10 @@ function VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoh
126
  case 'Tangle':
127
  $value = "http://www.tangle.com/flash/swf/flvplayer.swf";
128
  if($v_autoplay2=='1'){
129
- $flashvar = null;
130
  $flashvar2 = "FlashVars=\"viewkey=$v_id2&autoplay=$v_autoplay2\"";
131
  }else{
132
- $flashvar = null;
133
  $flashvar2 = "FlashVars=\"viewkey=$v_id2\"";
134
  }
135
  break;
@@ -223,8 +223,8 @@ function vsw_show_video_class($id,$source,$width,$height,$autoplay){
223
  //now have to switch it.
224
  switch ($source) {
225
 
226
- case null:
227
- $vsw_source = null;
228
  break;
229
 
230
  case 'youtube':
@@ -296,7 +296,7 @@ function vsw_show_video_class($id,$source,$width,$height,$autoplay){
296
  //switch autoplay yes or no to 1 or 0
297
  switch ($autoplay) {
298
 
299
- case null:
300
  $vsw_autoplay = 0;
301
  break;
302
 
16
  $v_width2 = $videowidth;
17
  $v_height2 = $videoheight;
18
  //declare empty variable to prevent WordPress debug error
19
+ $flashvar = "";
20
+ $flashvar2 = "";
21
 
22
  $source = $v_source;
23
 
24
  //test for source and assign codes accordingly
25
  switch ($source) {
26
 
27
+ case "":
28
+ $value = "";
29
+ $flashvar = "";
30
+ $flashvar2 = "";
31
  break;
32
 
33
  case 'YouTube':
34
  $value = "http://www.youtube.com/v/$v_id2&autoplay=$v_autoplay2&loop=0&rel=0";
35
+ $flashvar = "";
36
+ $flashvar2 = "";
37
  break;
38
 
39
  case 'Vimeo':
40
  $value = "http://vimeo.com/moogaloop.swf?clip_id=$v_id2&server=vimeo.com&loop=0&fullscreen=1&autoplay=$v_autoplay2";
41
+ $flashvar = "";
42
+ $flashvar2 = "";
43
  break;
44
 
45
  case 'MySpace':
46
  $value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$v_id2,t=1,mt=video,ap=$v_autoplay2";
47
+ $flashvar = "";
48
+ $flashvar2 = "";
49
  break;
50
 
51
  case 'Veoh':
52
  $value = "http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.2.20.1002&";
53
  $value.= "permalinkId=$v_id2&player=videodetailsembedded&id=anonymous&videoAutoPlay=$v_autoplay2";
54
+ $flashvar = "";
55
+ $flashvar2 = "";
56
  break;
57
 
58
  case 'Blip':
59
  $value = "http://blip.tv/play/$v_id2";
60
+ $flashvar = "";
61
+ $flashvar2 = "";
62
  break;
63
 
64
  case 'WordPress':
77
 
78
  case 'DailyMotion':
79
  $value = "http://www.dailymotion.com/swf/$v_id2&autoStart=$v_autoplay2&related=0";
80
+ $flashvar = "";
81
+ $flashvar2 = "";
82
  break;
83
 
84
 
85
  case 'Revver':
86
  $value = "http://flash.revver.com/player/1.0/player.swf?mediaId=$v_id2&autoStart=$v_autoplay2";
87
+ $flashvar = "";
88
+ $flashvar2 = "";
89
  break;
90
 
91
  case 'Metacafe':
92
  $id = split('/',$v_id2);
93
  $value = "http://www.metacafe.com/fplayer/$id[0]/$id[1].swf";
94
  if($v_autoplay2=='1'){
95
+ $flashvar = "";
96
  $flashvar2 = 'flashVars="playerVars=showStats=no|autoPlay=yes|"';
97
  }
98
  break;
99
 
100
  case 'Tudou':
101
  $value = "$v_id2";
102
+ $flashvar = "";
103
+ $flashvar2 = "";
104
  break;
105
 
106
  case 'Youku':
107
  $value = "$v_id2";
108
+ $flashvar = "";
109
+ $flashvar2 = "";
110
  break;
111
 
112
  case 'cn6':
113
  $value = "$v_id2";
114
+ $flashvar = "";
115
+ $flashvar2 = "";
116
  break;
117
 
118
  case 'Google':
119
  $value = "http://video.google.com/googleplayer.swf?docid=$v_id2&hl=en&fs=true";
120
  if($v_autoplay2=='1'){
121
+ $flashvar = "";
122
  $flashvar2 = 'FlashVars="autoPlay=true&playerMode=embedded"';
123
  }
124
  break;
126
  case 'Tangle':
127
  $value = "http://www.tangle.com/flash/swf/flvplayer.swf";
128
  if($v_autoplay2=='1'){
129
+ $flashvar = "";
130
  $flashvar2 = "FlashVars=\"viewkey=$v_id2&autoplay=$v_autoplay2\"";
131
  }else{
132
+ $flashvar = "";
133
  $flashvar2 = "FlashVars=\"viewkey=$v_id2\"";
134
  }
135
  break;
223
  //now have to switch it.
224
  switch ($source) {
225
 
226
+ case "":
227
+ $vsw_source = "";
228
  break;
229
 
230
  case 'youtube':
296
  //switch autoplay yes or no to 1 or 0
297
  switch ($autoplay) {
298
 
299
+ case "":
300
  $vsw_autoplay = 0;
301
  break;
302
 
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
4
  Author link: http://denzeldesigns.com
5
  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
6
  Requires at least:2.8.1
7
- Tested up to: 3.2
8
- Stable tag:5.1
9
 
10
  == Description ==
11
 
@@ -14,6 +14,12 @@ Stable tag:5.1
14
 
15
  == Changelog ==
16
 
 
 
 
 
 
 
17
  = 5.1 =
18
 
19
  * Fixed PHP errors in WordPress debug mode.
@@ -84,14 +90,9 @@ Stable tag:5.1
84
  As of version 3.0, shortcode is added to enable user to post video in content.
85
  User can use the video Quicktag at Tinymce editor to insert video shortcode.
86
 
87
- == How to use Video Sidebar Widget ? ==
88
-
89
- Please visit plugin site for details. http://denzeldesigns.com
90
-
91
-
92
- == How to use Random Video Sidebar Widget ? ==
93
 
94
- Please visit plugin site for details. http://denzeldesigns.com
95
 
96
 
97
  == Frequently Asked Questions ==
4
  Author link: http://denzeldesigns.com
5
  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
6
  Requires at least:2.8.1
7
+ Tested up to: 3.3
8
+ Stable tag:5.2
9
 
10
  == Description ==
11
 
14
 
15
  == Changelog ==
16
 
17
+ = 5.2 =
18
+
19
+ Replaced all null value to blank, to tackle an IE 9 bug reported by user.
20
+ Solution provided by Ryan Willis. (Thanks!)
21
+ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-widget-administration-problem
22
+
23
  = 5.1 =
24
 
25
  * Fixed PHP errors in WordPress debug mode.
90
  As of version 3.0, shortcode is added to enable user to post video in content.
91
  User can use the video Quicktag at Tinymce editor to insert video shortcode.
92
 
93
+ == How to use this plugin ? ==
 
 
 
 
 
94
 
95
+ Please visit plugin site for details. http://denzelchia.com
96
 
97
 
98
  == Frequently Asked Questions ==
video-sidebar-widgets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
- Version: 5.1
6
  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.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
+ Version: 5.2
6
  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.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/