Youtube Channel Gallery - Version 1.7.4.1

Version Description

  • Corrected bug in pages with multiple galleries.
Download this release

Release Info

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

Code changes from version 1.7.4 to 1.7.4.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. youtube-channel-gallery.php +11 -13
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://poselab.com/
4
  Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
5
  Requires at least: 2.8
6
  Tested up to: 3.4.1
7
- Stable tag: 1.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -118,6 +118,9 @@ If you go to a playlist you will get the following url format: https://www.youtu
118
 
119
  == Changelog ==
120
 
 
 
 
121
  = 1.7.4 =
122
  * Corrected thumbnail size selection in playlists.
123
 
4
  Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
5
  Requires at least: 2.8
6
  Tested up to: 3.4.1
7
+ Stable tag: 1.7.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.7.4.1 =
122
+ * Corrected bug in pages with multiple galleries.
123
+
124
  = 1.7.4 =
125
  * Corrected thumbnail size selection in playlists.
126
 
youtube-channel-gallery.php CHANGED
@@ -5,7 +5,7 @@
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.7.4
9
  License: GPL2
10
 
11
  Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -596,20 +596,18 @@
596
  $media_content = $media_group[0]['child']['http://search.yahoo.com/mrss/']['thumbnail'];
597
 
598
  //Check the thumbnail width
599
- if($plugincount == 0){
600
- $thumbW = array();
601
- foreach ($media_content as $index => $media_contentw) {
602
- $thumbW[$index] = $media_content[$index]['attribs']['']['width'];
603
- }
604
- //appropriate thumbnail width
605
- $thumbcorrectW = $this->closest($thumbW, $ytchag_thumb_width);
606
 
607
- //index in array of thumbnail width
608
- $thumbcorrectWIndex = array_search($thumbcorrectW, $thumbW);
609
- }
610
 
611
- //appropriate url thumbnail
612
- $thumb = $media_content[$thumbcorrectWIndex]['attribs']['']['url'];
613
 
614
 
615
  //title and description content
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.7.4.1
9
  License: GPL2
10
 
11
  Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
596
  $media_content = $media_group[0]['child']['http://search.yahoo.com/mrss/']['thumbnail'];
597
 
598
  //Check the thumbnail width
599
+ $thumbW = array();
600
+ foreach ($media_content as $index => $media_contentw) {
601
+ $thumbW[$index] = $media_content[$index]['attribs']['']['width'];
602
+ }
603
+ //appropriate thumbnail width
604
+ $thumbcorrectW = $this->closest($thumbW, $ytchag_thumb_width);
 
605
 
606
+ //index in array of thumbnail width
607
+ $thumbcorrectWIndex = array_search($thumbcorrectW, $thumbW);
 
608
 
609
+ //appropriate url thumbnail
610
+ $thumb = $media_content[$thumbcorrectWIndex]['attribs']['']['url'];
611
 
612
 
613
  //title and description content