Slideshow Gallery - Version 1.2.1

Version Description

  • FIX: Thumbnails On/Off setting doesn't work
  • IMPROVE: TimThumb absolute URLs to prevent permission problems
  • FIX: Colorbox script should only load with this featured turned on
Download this release

Release Info

Developer contrid
Plugin Icon 128x128 Slideshow Gallery
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://tribulant.com/
4
  Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
5
  Requires at least: 2.9
6
  Tested up to: 3.3.2
7
- Stable tag: 1.2
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -80,6 +80,11 @@ Yes, you can use the `exclude` parameter to exclude post images by their order i
80
 
81
  == Changelog ==
82
 
 
 
 
 
 
83
  = 1.2 =
84
  * ADD: 'About Us' box in the Configuration section
85
  * IMPROVE: Better, more usable hardcoding procedure
4
  Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
5
  Requires at least: 2.9
6
  Tested up to: 3.3.2
7
+ Stable tag: 1.2.1
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
80
 
81
  == Changelog ==
82
 
83
+ = 1.2.1 =
84
+ * FIX: Thumbnails On/Off setting doesn't work
85
+ * IMPROVE: TimThumb absolute URLs to prevent permission problems
86
+ * FIX: Colorbox script should only load with this featured turned on
87
+
88
  = 1.2 =
89
  * ADD: 'About Us' box in the Configuration section
90
  * IMPROVE: Better, more usable hardcoding procedure
slideshow-gallery-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class GalleryPlugin {
4
 
5
- var $version = '1.2';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
2
 
3
  class GalleryPlugin {
4
 
5
+ var $version = '1.2.1';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
slideshow-gallery.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://wpgallery.tribulant.net
6
  Author: Tribulant Software
7
  Author URI: http://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (class_exists('Gallery')) { $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id = null); } ?&gt;</code> and specify the required <code>$post_id</code> parameter accordingly.
9
- Version: 1.2
10
  */
11
 
12
  define('DS', DIRECTORY_SEPARATOR);
@@ -152,7 +152,7 @@ if (!class_exists('Gallery')) {
152
  'navhoveropacity' => ($this -> get_option('navhover')),
153
  'showinfo' => (($this -> get_option('information') == "Y") ? "true" : "false"),
154
  'infospeed' => ($this -> get_option('infospeed')),
155
- 'showthumbs' => (($this -> get_option('thumbnails')) ? "true" : "false"),
156
  'thumbsposition' => ($this -> get_option('thumbposition')),
157
  'thumbsborder' => ($this -> get_option('thumbactive')),
158
  'thumbsspeed' => ($this -> get_option('thumbscrollspeed')),
6
  Author: Tribulant Software
7
  Author URI: http://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (class_exists('Gallery')) { $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id = null); } ?&gt;</code> and specify the required <code>$post_id</code> parameter accordingly.
9
+ Version: 1.2.1
10
  */
11
 
12
  define('DS', DIRECTORY_SEPARATOR);
152
  'navhoveropacity' => ($this -> get_option('navhover')),
153
  'showinfo' => (($this -> get_option('information') == "Y") ? "true" : "false"),
154
  'infospeed' => ($this -> get_option('infospeed')),
155
+ 'showthumbs' => (($this -> get_option('thumbnails') == "Y") ? "true" : "false"),
156
  'thumbsposition' => ($this -> get_option('thumbposition')),
157
  'thumbsborder' => ($this -> get_option('thumbactive')),
158
  'thumbsspeed' => ($this -> get_option('thumbscrollspeed')),
vendors/timthumb.php CHANGED
@@ -33,8 +33,8 @@ if(! defined('MEMORY_LIMIT') ) define ('MEMORY_LIMIT', '128M'); // Set P
33
  if(! defined('BLOCK_EXTERNAL_LEECHERS') ) define ('BLOCK_EXTERNAL_LEECHERS', false); // If the image or webshot is being loaded on an external site, display a red "No Hotlinking" gif.
34
 
35
  //Image fetching and caching
36
- if(! defined('ALLOW_EXTERNAL') ) define ('ALLOW_EXTERNAL', TRUE); // Allow image fetching from external websites. Will check against ALLOWED_SITES if ALLOW_ALL_EXTERNAL_SITES is false
37
- if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES', false); // Less secure.
38
  if(! defined('FETCH_LOCAL_URLS') ) define ('FETCH_LOCAL_URLS', true); // If true, URL sources will always be fetched over HTTP, even if they have the same hostname as this script
39
  if(! defined('FILE_CACHE_ENABLED') ) define ('FILE_CACHE_ENABLED', TRUE); // Should we store resized/modified images on disk to speed things up?
40
  if(! defined('FILE_CACHE_TIME_BETWEEN_CLEANS')) define ('FILE_CACHE_TIME_BETWEEN_CLEANS', 86400); // How often the cache is cleaned
@@ -138,6 +138,7 @@ if(! isset($ALLOWED_SITES)){
138
  'imgur.com',
139
  'imageshack.us',
140
  'tinypic.com',
 
141
  );
142
  }
143
  // -------------------------------------------------------------
33
  if(! defined('BLOCK_EXTERNAL_LEECHERS') ) define ('BLOCK_EXTERNAL_LEECHERS', false); // If the image or webshot is being loaded on an external site, display a red "No Hotlinking" gif.
34
 
35
  //Image fetching and caching
36
+ if(! defined('ALLOW_EXTERNAL') ) define ('ALLOW_EXTERNAL', true); // Allow image fetching from external websites. Will check against ALLOWED_SITES if ALLOW_ALL_EXTERNAL_SITES is false
37
+ if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES', true); // Less secure.
38
  if(! defined('FETCH_LOCAL_URLS') ) define ('FETCH_LOCAL_URLS', true); // If true, URL sources will always be fetched over HTTP, even if they have the same hostname as this script
39
  if(! defined('FILE_CACHE_ENABLED') ) define ('FILE_CACHE_ENABLED', TRUE); // Should we store resized/modified images on disk to speed things up?
40
  if(! defined('FILE_CACHE_TIME_BETWEEN_CLEANS')) define ('FILE_CACHE_TIME_BETWEEN_CLEANS', 86400); // How often the cache is cleaned
138
  'imgur.com',
139
  'imageshack.us',
140
  'tinypic.com',
141
+
142
  );
143
  }
144
  // -------------------------------------------------------------
views/default/gallery.php CHANGED
@@ -13,8 +13,9 @@ $wrapperid = "slideshow-wrapper-" . $rand;
13
  <h3><?php echo $slide -> post_title; ?></h3>
14
  <?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
15
  <?php $full_image_path = get_attached_file($slide -> ID); ?>
 
16
  <?php if ($options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
17
- <span><?php echo $this -> Html -> timthumb_image_src($full_image_path, $options['width'], $options['height'], 100); ?></span>
18
  <?php else : ?>
19
  <span><?php echo $full_image_href[0]; ?></span>
20
  <?php endif; ?>
13
  <h3><?php echo $slide -> post_title; ?></h3>
14
  <?php $full_image_href = wp_get_attachment_image_src($slide -> ID, 'full', false); ?>
15
  <?php $full_image_path = get_attached_file($slide -> ID); ?>
16
+ <?php $full_image_url = wp_get_attachment_url($slide -> ID); ?>
17
  <?php if ($options['resizeimages'] == "true" && $options['width'] != "auto") : ?>
18
+ <span><?php echo $this -> Html -> timthumb_image_src($full_image_href[0], $options['width'], $options['height'], 100); ?></span>
19
  <?php else : ?>
20
  <span><?php echo $full_image_href[0]; ?></span>
21
  <?php endif; ?>