Version Description
- Add support for playlist full URL
- Fixed no random video for playlist
Download this release
Release Info
Developer | urkekg |
Plugin | YouTube Channel |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.3.1
- readme.txt +22 -5
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-4.png +0 -0
- youtube-channel.php +11 -2
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, flash player, rss, feed, video, thumbnail, embed, sidebar, chromeless, iframe, html5
|
5 |
Requires at least: 3.2.1
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 1.3
|
8 |
|
9 |
Sidebar widget to show latest video thumbnail, playable flash object or chromeless video from YouTube Channel or Playlist.
|
10 |
|
@@ -62,7 +62,25 @@ If you have to upgrade manually simply repeat the installation steps and re-enab
|
|
62 |
|
63 |
I could not to find widget with link to channel and thumbnail instead of video object, so I made this one.
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
== Changelog ==
|
|
|
|
|
|
|
|
|
66 |
= 1.3 =
|
67 |
* Fixed z-index problem with flash and iframe object
|
68 |
* Add option to try to fix 'No items' error
|
@@ -120,7 +138,6 @@ Just try it and rate it. Only initial release is available right now.
|
|
120 |
|
121 |
== Screenshots ==
|
122 |
|
123 |
-
1. Widget configuration panel
|
124 |
-
2. Widget
|
125 |
-
3. Widget `YouTube Channel` in action with
|
126 |
-
4. Widget `YouTube Channel` in action with iframe video w/ controls and fixed height
|
4 |
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, flash player, rss, feed, video, thumbnail, embed, sidebar, chromeless, iframe, html5
|
5 |
Requires at least: 3.2.1
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 1.3.1
|
8 |
|
9 |
Sidebar widget to show latest video thumbnail, playable flash object or chromeless video from YouTube Channel or Playlist.
|
10 |
|
62 |
|
63 |
I could not to find widget with link to channel and thumbnail instead of video object, so I made this one.
|
64 |
|
65 |
+
= I set more thano one items to fetch, but only one video is displayed. How to fix this? =
|
66 |
+
|
67 |
+
Currently YTC can display only one video per time. Option `Items to fetch` us used for calculating what random video from channel or playlist to get as limit of videos of which random is calculated.
|
68 |
+
|
69 |
+
= How to get playlist ID? =
|
70 |
+
|
71 |
+
Playlist ID can be manualy extracted from YouTube playlist URL. Part of strings after `&list=` that begins with uppercase letters `PL` represent playlist ID.
|
72 |
+
|
73 |
+
Since version 1.3.1 you can paste full YouTube playlist URL and ID will be automaticaly extracted.
|
74 |
+
|
75 |
+
= How to force embeding 320p video with better audio quality? =
|
76 |
+
|
77 |
+
YouTube provide 320p videos if height of embeded video is set to 320 or more. If you use small YTC video size, 240p will be loaded instead.
|
78 |
+
|
79 |
== Changelog ==
|
80 |
+
= 1.3.1 =
|
81 |
+
* Add support for playlist full URL
|
82 |
+
* Fixed no random video for playlist
|
83 |
+
|
84 |
= 1.3 =
|
85 |
* Fixed z-index problem with flash and iframe object
|
86 |
* Add option to try to fix 'No items' error
|
138 |
|
139 |
== Screenshots ==
|
140 |
|
141 |
+
1. Widget `YouTube Channel` configuration panel
|
142 |
+
2. Widget `YouTube Channel` in action with iframe (HTML5) video object with controls and fixed height
|
143 |
+
3. Widget `YouTube Channel` in action with Chromeless video object w/o controls
|
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-4.png
DELETED
Binary file
|
youtube-channel.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: YouTube Channel
|
|
4 |
Plugin URI: http://blog.urosevic.net/wordpress/youtube-channel/
|
5 |
Description: <a href="widgets.php">Widget</a> that display latest video thumbnail, iframe (HTML5 video), object (Flash video) or chromeless video from YouTube Channel or Playlist.
|
6 |
Author: Aleksandar Urošević
|
7 |
-
Version: 1.3
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
|
@@ -176,6 +176,11 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
176 |
}
|
177 |
$rss_settings .= '&rel=0&max-results='.$maxrnd;
|
178 |
if ( $usepl ) {
|
|
|
|
|
|
|
|
|
|
|
179 |
$rss_url = 'http://gdata.youtube.com/feeds/api/playlists/'.$playlist.$rss_settings;
|
180 |
} else {
|
181 |
$rss_url = 'http://gdata.youtube.com/feeds/base/users/'.$channel.'/uploads'.$rss_settings;
|
@@ -204,7 +209,11 @@ class YouTube_Channel_Widget extends WP_Widget {
|
|
204 |
if ( $usepl ) {
|
205 |
$yt_id = $item->get_link();
|
206 |
$yt_id = preg_replace('/^.*=(.*)&.*$/', '${1}', $yt_id);
|
207 |
-
$
|
|
|
|
|
|
|
|
|
208 |
} else {
|
209 |
$yt_id = split(":", $item->get_id());
|
210 |
$yt_id = $yt_id[3];
|
4 |
Plugin URI: http://blog.urosevic.net/wordpress/youtube-channel/
|
5 |
Description: <a href="widgets.php">Widget</a> that display latest video thumbnail, iframe (HTML5 video), object (Flash video) or chromeless video from YouTube Channel or Playlist.
|
6 |
Author: Aleksandar Urošević
|
7 |
+
Version: 1.3.1
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
|
176 |
}
|
177 |
$rss_settings .= '&rel=0&max-results='.$maxrnd;
|
178 |
if ( $usepl ) {
|
179 |
+
// check what is set: full URL or playlist ID
|
180 |
+
if ( substr($playlist,0,4) == "http" ) {
|
181 |
+
// if URL provided, extract playlist ID
|
182 |
+
$playlist = preg_replace('/.*list=PL([A-Z0-9]*).*/','$1', $playlist);
|
183 |
+
}
|
184 |
$rss_url = 'http://gdata.youtube.com/feeds/api/playlists/'.$playlist.$rss_settings;
|
185 |
} else {
|
186 |
$rss_url = 'http://gdata.youtube.com/feeds/base/users/'.$channel.'/uploads'.$rss_settings;
|
209 |
if ( $usepl ) {
|
210 |
$yt_id = $item->get_link();
|
211 |
$yt_id = preg_replace('/^.*=(.*)&.*$/', '${1}', $yt_id);
|
212 |
+
if ( $getrnd ) {
|
213 |
+
$yt_url = "v/$yt_id";
|
214 |
+
} else {
|
215 |
+
$yt_url = "p/$playlist";
|
216 |
+
}
|
217 |
} else {
|
218 |
$yt_id = split(":", $item->get_id());
|
219 |
$yt_id = $yt_id[3];
|