Video Sidebar Widgets - Version 6.1

Version Description

  • Does not load tinyMCE editor button, unless using WordPress version older than 5.0
  • vsw shortcode will continue to work even without tinyMCE editor button.
Download this release

Release Info

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

Code changes from version 6.0 to 6.1

Files changed (3) hide show
  1. readme.txt +10 -21
  2. video-sidebar-widgets.php +7 -3
  3. vsw_admin_settings.php +15 -8
readme.txt CHANGED
@@ -4,16 +4,21 @@ Donate link: https://www.paypal.me/denzelchia/10usd
4
  Author link: https://github.com/denzelchia/
5
  Tags:video sidebar widget, video widgets, widgets, sidebar, videos, 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: 4.9
8
- Stable tag:6.0
9
 
10
  == Description ==
11
 
12
  A collection of sidebar widgets for displaying Flash Videos from 14 video sharing networks.
13
- Video networks includes Youtube, Vimeo, BlipTV, Google, etc. This plugin consist of 3 widgets and 1 TinyMCE editor button.
14
 
15
  == Changelog ==
16
 
 
 
 
 
 
17
  = 6.0 =
18
 
19
  * Updated Metacafe code
@@ -129,17 +134,13 @@ Stable tag:6.0
129
  3. Once uploaded, click Activate Plugin link
130
 
131
 
132
- == Can I post video in post or page content other than the sidebar? ==
133
-
134
- As of version 3.0, shortcode is added to enable user to post video in content.
135
- User can use the video Quicktag at Tinymce editor to insert video shortcode.
136
-
137
  == Where to find Video ID ? ==
138
 
139
  Please visit the following documentation
140
 
141
  https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#youtube-video-id
142
 
 
143
  == How to use Video Sidebar Widget ? ==
144
 
145
  Please visit the following documentation
@@ -161,21 +162,9 @@ Please visit the following documentation
161
  https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-post-meta-video-widget
162
 
163
 
164
- == How to Embed Video in Post / Page Content? ==
165
-
166
- Please visit the following documentation
167
-
168
- https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#embed-video-in-post--page-content
169
-
170
-
171
  == Frequently Asked Questions ==
172
 
173
- 1. Why is Video Sidebar Widget not compatible with WordPress 2.8 ?
174
-
175
- It is not compatible because a bug was found to cause settings of multiple instance of a widget to disappear or mixed up.
176
- The bug was fixed in WordPress 2.8.1
177
-
178
- 2. Why is my Random Video sidebar Widget not working?
179
 
180
  Reload the webpage where you use the widget, each time you reload, the widget will randomly pick 1 of the 5 video you set for display. there are chances that it displays the same video after you reload. Just try reloading again.
181
 
4
  Author link: https://github.com/denzelchia/
5
  Tags:video sidebar widget, video widgets, widgets, sidebar, videos, 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: 5.0.3
8
+ Stable tag:6.1
9
 
10
  == Description ==
11
 
12
  A collection of sidebar widgets for displaying Flash Videos from 14 video sharing networks.
13
+ Video networks includes Youtube, Vimeo, BlipTV, Google, etc. This plugin consist of 3 widgets.
14
 
15
  == Changelog ==
16
 
17
+ = 6.1 =
18
+
19
+ * Does not load tinyMCE editor button, unless using WordPress version older than 5.0
20
+ * vsw shortcode will continue to work even without tinyMCE editor button.
21
+
22
  = 6.0 =
23
 
24
  * Updated Metacafe code
134
  3. Once uploaded, click Activate Plugin link
135
 
136
 
 
 
 
 
 
137
  == Where to find Video ID ? ==
138
 
139
  Please visit the following documentation
140
 
141
  https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#youtube-video-id
142
 
143
+
144
  == How to use Video Sidebar Widget ? ==
145
 
146
  Please visit the following documentation
162
  https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-post-meta-video-widget
163
 
164
 
 
 
 
 
 
 
 
165
  == Frequently Asked Questions ==
166
 
167
+ 1. Why is my Random Video sidebar Widget not working?
 
 
 
 
 
168
 
169
  Reload the webpage where you use the widget, each time you reload, the widget will randomly pick 1 of the 5 video you set for display. there are chances that it displays the same video after you reload. Just try reloading again.
170
 
video-sidebar-widgets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: https://github.com/denzelchia/Video-Sidebar-Widgets/
5
- Version: 6.0
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: https://github.com/denzelchia/Video-Sidebar-Widgets/
@@ -14,8 +14,12 @@ require_once(dirname(__FILE__) . "/helper-functions.php");
14
  //Admin Settings
15
  require_once(dirname(__FILE__) . "/vsw_admin_settings.php");
16
 
17
- //Tinymce Editor Button
18
- require_once(dirname(__FILE__) . "/vsw_tinymce/vsw_tinymce.php");
 
 
 
 
19
 
20
  //You can comment out the widget class that you do not want to load, remember to comment out the register_widget() in load_video_sidebar_widgets() below!
21
 
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: https://github.com/denzelchia/Video-Sidebar-Widgets/
5
+ Version: 6.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: https://github.com/denzelchia/Video-Sidebar-Widgets/
14
  //Admin Settings
15
  require_once(dirname(__FILE__) . "/vsw_admin_settings.php");
16
 
17
+ global $wp_version;
18
+ if ( version_compare( $wp_version, '5.0', '<' ) ) {
19
+ //load tinyMCE button only for WordPress less than 5.0, which uses the old tinyMCE editor instead of Gutenberg
20
+ //Tinymce Editor Button
21
+ require_once(dirname(__FILE__) . "/vsw_tinymce/vsw_tinymce.php");
22
+ }
23
 
24
  //You can comment out the widget class that you do not want to load, remember to comment out the register_widget() in load_video_sidebar_widgets() below!
25
 
vsw_admin_settings.php CHANGED
@@ -48,15 +48,22 @@ $checked1 = $checked2 = $checked3 = $checked4 = '';
48
  ?>
49
  </div>
50
 
51
- <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center">
52
- <img style='border:1px solid #eee;padding:5px;' src="<?php echo WP_PLUGIN_URL.'/video-sidebar-widgets/source_image/tinybutton.png'?>"/>
53
- <br/>
54
- <label>TinyMCE Editor Button</label>
55
- <?php
56
- if(isset($options['hide_tmb'])) { $checked3 = ' checked="checked" '; }
57
- echo "<input ".$checked3." id='tmb' name='vsw_plugin_options[hide_tmb]' type='checkbox' value='hide'/>";
58
  ?>
59
- </div>
 
 
 
 
 
 
 
 
 
 
60
 
61
 
62
  <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center">
48
  ?>
49
  </div>
50
 
51
+ <?php
52
+ global $wp_version;
53
+ if ( version_compare( $wp_version, '5.0', '<' ) ) :
54
+ //load tinyMCE button only for WordPress less than 5.0, which uses the old tinyMCE editor instead of Gutenberg
 
 
 
55
  ?>
56
+ <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center">
57
+ <img style='border:1px solid #eee;padding:5px;' src="<?php echo WP_PLUGIN_URL.'/video-sidebar-widgets/source_image/tinybutton.png'?>"/>
58
+ <br/>
59
+ <label>TinyMCE Editor Button</label>
60
+ <?php
61
+ if(isset($options['hide_tmb'])) { $checked3 = ' checked="checked" '; }
62
+ echo "<input ".$checked3." id='tmb' name='vsw_plugin_options[hide_tmb]' type='checkbox' value='hide'/>";
63
+ ?>
64
+ </div>
65
+
66
+ <?php endif; ?>
67
 
68
 
69
  <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center">