Youtube Channel Gallery - Version 1.4.7

Version Description

  • Removed parameter 'origin' from Youtube Player iframe to solve the issue that some users have to click the thumbnails.
Download this release

Release Info

Developer javitxu123
Plugin Icon 128x128 Youtube Channel Gallery
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.6 to 1.4.7

Files changed (2) hide show
  1. readme.txt +4 -1
  2. youtube-channel-gallery.php +3 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://poselab.com/
4
  Tags: widget, gallery, youtube, channel, user
5
  Requires at least: 2.8
6
  Tested up to: 3.4.1
7
- Stable tag: 1.4.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,9 @@ The username who uploaded a video to Youtube is located below each video, where
81
 
82
  == Changelog ==
83
 
 
 
 
84
  = 1.4.6 =
85
  * Tweak on CSS.
86
  * Trying to to correct issue that some users have with the player origin parameter.
4
  Tags: widget, gallery, youtube, channel, user
5
  Requires at least: 2.8
6
  Tested up to: 3.4.1
7
+ Stable tag: 1.4.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 1.4.7 =
85
+ * Removed parameter 'origin' from Youtube Player iframe to solve the issue that some users have to click the thumbnails.
86
+
87
  = 1.4.6 =
88
  * Tweak on CSS.
89
  * Trying to to correct issue that some users have with the player origin parameter.
youtube-channel-gallery.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.poselab.com/
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  Author: Javier Gómez Pose
7
  Author URI: http://www.poselab.com/
8
- Version: 1.4.6
9
  License: GPL2
10
 
11
  Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -172,7 +172,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
172
  if( $ytchag_user ) { // only if user name inserted
173
 
174
  // links
175
- $ytchag_rss_url = "http://gdata.youtube.com/feeds/api/users/" . $ytchag_user . "/uploads";
176
  $ytchag_link_url = "http://www.youtube.com/user/" . $ytchag_user;
177
 
178
 
@@ -221,7 +221,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
221
  STATIC $plugincount = 0;
222
  $plugincount++;
223
  ?>
224
- <iframe id="ytcplayer<?php echo $plugincount; ?>" class="ytcplayer" type="text/html" width="<?php echo $ytchag_video_width; ?>" height="<?php echo $ytchag_video_heigh; ?>" src="http://www.youtube.com/embed/<?php echo $youtubeid; ?>?&autoplay=0&theme=<?php echo $ytchag_theme; ?>&enablejsapi=1&origin=<?php echo home_url(); ?>" frameborder="0"></iframe>
225
  <ul class="ytchagallery">
226
 
227
  <?php
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  Author: Javier Gómez Pose
7
  Author URI: http://www.poselab.com/
8
+ Version: 1.4.7
9
  License: GPL2
10
 
11
  Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
172
  if( $ytchag_user ) { // only if user name inserted
173
 
174
  // links
175
+ $ytchag_rss_url = "http://gdata.youtube.com/feeds/api/users/" . $ytchag_user . "/uploads";
176
  $ytchag_link_url = "http://www.youtube.com/user/" . $ytchag_user;
177
 
178
 
221
  STATIC $plugincount = 0;
222
  $plugincount++;
223
  ?>
224
+ <iframe id="ytcplayer<?php echo $plugincount; ?>" class="ytcplayer" type="text/html" width="<?php echo $ytchag_video_width; ?>" height="<?php echo $ytchag_video_heigh; ?>" src="http://www.youtube.com/embed/<?php echo $youtubeid; ?>?&autoplay=0&theme=<?php echo $ytchag_theme; ?>&enablejsapi=1" frameborder="0"></iframe>
225
  <ul class="ytchagallery">
226
 
227
  <?php