Smooth Slider - Version 2.3.2

Version Description

Download this release

Release Info

Developer internet techies
Plugin Icon 128x128 Smooth Slider
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

Files changed (2) hide show
  1. readme.txt +10 -16
  2. smooth-slider.php +8 -9
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: slideshow,featured,posts,jquery,slider,content,widget,shortcode,carousel,c
4
  Donate link: http://www.clickonf5.org/go/smooth-slider/
5
  Requires at least: 2.9
6
  Tested up to: 3.0.1
7
- Stable tag: 2.3.1
8
 
9
  == Description ==
10
 
@@ -16,6 +16,8 @@ Highlighted Feature (from version 2.3) : Smooth Slider Widget and Smooth Slider
16
 
17
  Highlighted Feature (from version 2.2) : Ability to create 'Multiple' sliders and an option to decide which post/page should show which slider
18
 
 
 
19
  1. Search Engine Optimized Slideshow
20
  2. Fully Customizable CSS
21
  3. Choose Posts, Pages and now images from Media Library (from ver 2.3) as Featured Posts/Pages/Media on Single Click
@@ -98,43 +100,35 @@ Visit the plugin page (http://www.clickonf5.org/smooth-slider) to see more scree
98
 
99
  == Changelog ==
100
 
 
 
 
 
 
 
101
  Version 2.3.1 (10/13/2010)
102
 
103
  Minor upgrade to fix small issues with 2.3
104
 
105
  1. Plugin compltibility will be now from WordPress 2.9 i.e. you should upgrade to Version 2.3 only if you hav WordPress 2.9 and above.
106
-
107
  2. Fixed: For those using Smooth Slider previous versions, some were facing issue with the loading of stylesheets and script specific to slider. Fixed it.
108
-
109
  3. Fixed: For some servers content was not pulled from the posts.
110
 
111
  Version 2.3 (10/12/2010)
112
 
113
  1. New - Smooth Slider Widget
114
-
115
  2. New - Smooth Slider Shortcode
116
-
117
  3. New - Slides can now be re-ordered thru the 'Slider Admin Panel'
118
-
119
  4. New - Images existing and new images added to WordPress Media Gallery can be added to Smooth Slider along with posts and pages.
120
-
121
  5. New - Now images in the slider can be extracted in very intelligent manner. Added support for 'Post Thumbnails (WP 2.9+)'.
122
-
123
  6. New - Videos can be embedded in the slider. Ad can be added to the slider.
124
-
125
  7. New - Some slides can be linked to a webpage and others can be without a link as well.
126
-
127
  8. New - Multiple settings to the sliders on different pages thru CSS files.
128
-
129
  9. Fixed - Scheduled Posts issue
130
-
131
  10. Fixed - Image Caption Issue
132
-
133
  11. Fixed - Retain HTML tags issue
134
-
135
  12. Fixed - Permissions issue (Who can add post/page and slides to the slider and who cannot)
136
 
137
-
138
  Version 2.2 (12/24/2009)
139
 
140
  1. New - Multiple Sliders can now be created from the settings page. Post/Pages can be selectively put in the slider of your choice. Also, you could decide which post/page should display which slider (from the Edit Post/Page), though the page/single post template file contains regular Smooth Slider tag only.
@@ -193,6 +187,6 @@ Version 1.1 (09/14/2009)
193
 
194
  1. New - Active Slide in the slideshow will now be highlighted with bolder and bigger navigation number
195
  2. Fixed - Added No Script tag brosers not supporting JavaScript for showing the slideshow
196
- 3. Fixed - Issues with Wordpress MU Smooth Slider Options update from setting page
197
 
198
  Visit the plugin page (http://www.clickonf5.org/smooth-slider) to see the changelog and release notes.
4
  Donate link: http://www.clickonf5.org/go/smooth-slider/
5
  Requires at least: 2.9
6
  Tested up to: 3.0.1
7
+ Stable tag: 2.3.2
8
 
9
  == Description ==
10
 
16
 
17
  Highlighted Feature (from version 2.2) : Ability to create 'Multiple' sliders and an option to decide which post/page should show which slider
18
 
19
+ Along with posts, pages and media images, Smooth Slider now supports Custom Post Types
20
+
21
  1. Search Engine Optimized Slideshow
22
  2. Fully Customizable CSS
23
  3. Choose Posts, Pages and now images from Media Library (from ver 2.3) as Featured Posts/Pages/Media on Single Click
100
 
101
  == Changelog ==
102
 
103
+ Version 2.3.2 (10/13/2010)
104
+
105
+ Minor fix to release of version 2.3
106
+ 1. Fix: Pages added to Smooth Slider were not displayed. Smooth Slider was turning empty. Fixed this issue
107
+ 2. Along with posts, pages and media images, Smooth Slider now supports Custom Post Types
108
+
109
  Version 2.3.1 (10/13/2010)
110
 
111
  Minor upgrade to fix small issues with 2.3
112
 
113
  1. Plugin compltibility will be now from WordPress 2.9 i.e. you should upgrade to Version 2.3 only if you hav WordPress 2.9 and above.
 
114
  2. Fixed: For those using Smooth Slider previous versions, some were facing issue with the loading of stylesheets and script specific to slider. Fixed it.
 
115
  3. Fixed: For some servers content was not pulled from the posts.
116
 
117
  Version 2.3 (10/12/2010)
118
 
119
  1. New - Smooth Slider Widget
 
120
  2. New - Smooth Slider Shortcode
 
121
  3. New - Slides can now be re-ordered thru the 'Slider Admin Panel'
 
122
  4. New - Images existing and new images added to WordPress Media Gallery can be added to Smooth Slider along with posts and pages.
 
123
  5. New - Now images in the slider can be extracted in very intelligent manner. Added support for 'Post Thumbnails (WP 2.9+)'.
 
124
  6. New - Videos can be embedded in the slider. Ad can be added to the slider.
 
125
  7. New - Some slides can be linked to a webpage and others can be without a link as well.
 
126
  8. New - Multiple settings to the sliders on different pages thru CSS files.
 
127
  9. Fixed - Scheduled Posts issue
 
128
  10. Fixed - Image Caption Issue
 
129
  11. Fixed - Retain HTML tags issue
 
130
  12. Fixed - Permissions issue (Who can add post/page and slides to the slider and who cannot)
131
 
 
132
  Version 2.2 (12/24/2009)
133
 
134
  1. New - Multiple Sliders can now be created from the settings page. Post/Pages can be selectively put in the slider of your choice. Also, you could decide which post/page should display which slider (from the Edit Post/Page), though the page/single post template file contains regular Smooth Slider tag only.
187
 
188
  1. New - Active Slide in the slideshow will now be highlighted with bolder and bigger navigation number
189
  2. Fixed - Added No Script tag brosers not supporting JavaScript for showing the slideshow
190
+ 3. Fixed - Issues with WordPress MU Smooth Slider Options update from setting page
191
 
192
  Visit the plugin page (http://www.clickonf5.org/smooth-slider) to see the changelog and release notes.
smooth-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Smooth Slider
4
  Plugin URI: http://www.clickonf5.org/smooth-slider
5
  Description: Smooth Slider adds a smooth content and image slideshow with customizable background and slide intervals to any location of your blog
6
- Version: 2.3.1
7
  Author: Internet Techies
8
  Author URI: http://www.clickonf5.org/
9
  Wordpress version supported: 2.9 and above
@@ -31,7 +31,7 @@ define('SLIDER_TABLE','smooth_slider'); //Slider TABLE NAME
31
  define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME
32
  define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME
33
  define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME
34
- define("SMOOTH_SLIDER_VER","2.3.1",false);//Current Version of Smooth Slider
35
  if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
36
  define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
37
  if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) )
@@ -64,7 +64,7 @@ function install_smooth_slider() {
64
  }
65
  }
66
  }
67
- add_column_if_not_exist($table_name, 'slide_order', "alter table $table_name add slide_order int(5) DEFAULT '0';");
68
 
69
  $meta_table_name = $table_prefix.SLIDER_META;
70
  if($wpdb->get_var("show tables like '$meta_table_name'") != $meta_table_name) {
@@ -97,7 +97,7 @@ function install_smooth_slider() {
97
  'width'=>'450',
98
  'border'=>'1',
99
  'brcolor'=>'#999999',
100
- 'prev_next'=>'1',
101
  'goto_slide'=>'1',
102
  'title_text'=>'Featured Posts',
103
  'title_font'=>'Georgia',
@@ -135,7 +135,7 @@ function install_smooth_slider() {
135
  'navimg_ht'=>'32',
136
  'content_limit'=>'50',
137
  'stylesheet'=>'default.css',
138
- 'shortcode'=>'0'
139
  );
140
 
141
  $smooth_slider = get_option('smooth_slider_options');
@@ -542,8 +542,7 @@ function carousel_posts_on_slider($max_posts, $offset=0, $slider_id = '1',$out_e
542
  $posts = $wpdb->get_results("SELECT a.post_id, a.date FROM
543
  $table_name a LEFT OUTER JOIN $post_table b
544
  ON a.post_id = b.ID
545
- WHERE ((b.post_type='post' and b.post_status = 'publish') or (b.post_type='attachment' and b.post_status = 'inherit'))
546
- AND a.slider_id = '$slider_id'
547
  ORDER BY a.slide_order ASC, a.date DESC LIMIT $offset, $max_posts", OBJECT);
548
 
549
  $html = '';
@@ -706,7 +705,7 @@ function carousel_posts_on_slider_cat($max_posts, $catg_slug, $offset=0) {
706
  $myposts = $wpdb->get_results("SELECT a.post_id, a.date FROM
707
  $table_name a LEFT OUTER JOIN $post_table b
708
  ON a.post_id = b.ID
709
- WHERE ((b.post_type='post' and b.post_status = 'publish') or (b.post_type='attachment' and b.post_status = 'inherit'))
710
  ORDER BY a.slide_order ASC, a.date DESC LIMIT $offset, $max_posts", OBJECT);
711
 
712
  $html = '';
@@ -896,7 +895,7 @@ function smooth_slider_wpmu_carousel_posts($max_posts, $offset=0) {
896
  $myposts = $wpdb->get_results("SELECT a.post_id, a.date FROM
897
  $table_name a LEFT OUTER JOIN $post_table b
898
  ON a.post_id = b.ID
899
- WHERE ((b.post_type='post' and b.post_status = 'publish') or (b.post_type='attachment' and b.post_status = 'inherit'))
900
  ORDER BY a.slide_order ASC, a.date DESC LIMIT $offset, $max_posts", OBJECT);
901
 
902
  foreach($myposts as $mypost) {
3
  Plugin Name: Smooth Slider
4
  Plugin URI: http://www.clickonf5.org/smooth-slider
5
  Description: Smooth Slider adds a smooth content and image slideshow with customizable background and slide intervals to any location of your blog
6
+ Version: 2.3.2
7
  Author: Internet Techies
8
  Author URI: http://www.clickonf5.org/
9
  Wordpress version supported: 2.9 and above
31
  define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME
32
  define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME
33
  define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME
34
+ define("SMOOTH_SLIDER_VER","2.3.2",false);//Current Version of Smooth Slider
35
  if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
36
  define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
37
  if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) )
64
  }
65
  }
66
  }
67
+ add_column_if_not_exist($table_name, 'slide_order', "ALTER TABLE ".$table_name." ADD slide_order int(5) NOT NULL DEFAULT '0';");
68
 
69
  $meta_table_name = $table_prefix.SLIDER_META;
70
  if($wpdb->get_var("show tables like '$meta_table_name'") != $meta_table_name) {
97
  'width'=>'450',
98
  'border'=>'1',
99
  'brcolor'=>'#999999',
100
+ 'prev_next'=>'0',
101
  'goto_slide'=>'1',
102
  'title_text'=>'Featured Posts',
103
  'title_font'=>'Georgia',
135
  'navimg_ht'=>'32',
136
  'content_limit'=>'50',
137
  'stylesheet'=>'default.css',
138
+ 'shortcode'=>'1'
139
  );
140
 
141
  $smooth_slider = get_option('smooth_slider_options');
542
  $posts = $wpdb->get_results("SELECT a.post_id, a.date FROM
543
  $table_name a LEFT OUTER JOIN $post_table b
544
  ON a.post_id = b.ID
545
+ WHERE (b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')) AND a.slider_id = '$slider_id'
 
546
  ORDER BY a.slide_order ASC, a.date DESC LIMIT $offset, $max_posts", OBJECT);
547
 
548
  $html = '';
705
  $myposts = $wpdb->get_results("SELECT a.post_id, a.date FROM
706
  $table_name a LEFT OUTER JOIN $post_table b
707
  ON a.post_id = b.ID
708
+ WHERE b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')
709
  ORDER BY a.slide_order ASC, a.date DESC LIMIT $offset, $max_posts", OBJECT);
710
 
711
  $html = '';
895
  $myposts = $wpdb->get_results("SELECT a.post_id, a.date FROM
896
  $table_name a LEFT OUTER JOIN $post_table b
897
  ON a.post_id = b.ID
898
+ WHERE b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')
899
  ORDER BY a.slide_order ASC, a.date DESC LIMIT $offset, $max_posts", OBJECT);
900
 
901
  foreach($myposts as $mypost) {