Enjoy Instagram feed on website with WordPress Widget and Shortcode - Version 1.5.2

Version Description

* Bug for utf8 4-byte (mobile emoticon) Fixed

Download this release

Release Info

Developer mediabeta
Plugin Icon 128x128 Enjoy Instagram feed on website with WordPress Widget and Shortcode
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

Files changed (2) hide show
  1. enjoyinstagram.php +11 -4
  2. readme.txt +29 -18
enjoyinstagram.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enjoy Instagram
4
  Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
- Version: 1.5.1
7
  Author: F. Prestipino, F. Di Pane - Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
@@ -170,11 +170,11 @@ class Settings_enjoyinstagram_Plugin {
170
  $user = json_decode($jsonData,true);
171
 
172
  $enjoyinstagram_user_id = $user['user']['id'];
173
- $enjoyinstagram_user_username = $user['user']['username'];
174
  $enjoyinstagram_user_profile_picture = $user['user']['profile_picture'];
175
- $enjoyinstagram_user_fullname = $user['user']['full_name'];
176
  $enjoyinstagram_user_website = $user['user']['website'];
177
- $enjoyinstagram_user_bio = $user['user']['bio'];
178
  $enjoyinstagram_access_token = $user['access_token'];
179
 
180
  update_option( 'enjoyinstagram_user_id', $enjoyinstagram_user_id );
@@ -218,6 +218,13 @@ class Settings_enjoyinstagram_Plugin {
218
  }
219
  };
220
 
 
 
 
 
 
 
 
221
  // Initialize the plugin
222
  add_action( 'plugins_loaded', create_function( '', '$Settings_enjoyinstagram_Plugin = new Settings_enjoyinstagram_Plugin;' ) );
223
 
3
  Plugin Name: Enjoy Instagram
4
  Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
+ Version: 1.5.2
7
  Author: F. Prestipino, F. Di Pane - Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
170
  $user = json_decode($jsonData,true);
171
 
172
  $enjoyinstagram_user_id = $user['user']['id'];
173
+ $enjoyinstagram_user_username = replace4byte($user['user']['username']);
174
  $enjoyinstagram_user_profile_picture = $user['user']['profile_picture'];
175
+ $enjoyinstagram_user_fullname = replace4byte($user['user']['full_name']);
176
  $enjoyinstagram_user_website = $user['user']['website'];
177
+ $enjoyinstagram_user_bio = replace4byte($user['user']['bio']);
178
  $enjoyinstagram_access_token = $user['access_token'];
179
 
180
  update_option( 'enjoyinstagram_user_id', $enjoyinstagram_user_id );
218
  }
219
  };
220
 
221
+ function replace4byte($string) {
222
+ return preg_replace('%(?:
223
+ \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
224
+ | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
225
+ | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
226
+ )%xs', '', $string);
227
+ }
228
  // Initialize the plugin
229
  add_action( 'plugins_loaded', create_function( '', '$Settings_enjoyinstagram_Plugin = new Settings_enjoyinstagram_Plugin;' ) );
230
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Enjoy Instagram ===
2
  Contributors: (mediabeta, frafra85, fabiodipa)
3
  Donate link: http://www.mediabeta.com/enjoy-instagram/
4
- Tags: instagram, instagram images, instagram gallery, photos, widgets, gallery, instagram responsive, instagram touch
5
  Requires at least: 3.0.1
6
  Tested up to: 4.0
7
- Version: 1.5.1
8
- Stable tag: 1.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -13,21 +13,26 @@ Display in your site awesome carousels or images sliders of Instagram photos by
13
 
14
  == Description ==
15
 
16
- Display in your site awesome carousels or images sliders of Instagram photos by user or hashtag. You can easily use Enjoy Instagram in your pages, posts, sidebars with shortcodes or widgets.
17
-
18
- Each photo can be shown in “Lightbox” mode. Everything is responsive and optimized for mobile devices.
 
 
 
 
 
19
 
20
  Here is Live Demo: http://www.mediabeta.com/enjoy-instagram/
21
 
22
  = Features =
23
-
24
  * Connected with your instagram account
25
- * Use instagram hashtags
 
26
  * Shortcodes
27
- * Widgets
28
- * Responsive
29
  * Touch
30
- * Optimized Mobile Devices
31
  * Grid View Customizable
32
  * Carousel View Customizable
33
  * FadeIn Effect in Grid View
@@ -35,12 +40,14 @@ Here is Live Demo: http://www.mediabeta.com/enjoy-instagram/
35
  * Very Simple Installation and Configuration
36
 
37
  = PREMIUM VERSION =
38
-
39
- * NEW Polaroid View
40
- * NEW Album View
41
- * NEW Badge View
 
 
42
  * Autoreload Stream of Photos
43
- * Moderation Control: you can choose which photos show.
44
  * Autoplay
45
  * Loop
46
  * Possibility to choose what link on the photo: Lightbox, Instagram, Custom URL or nothing.
@@ -50,7 +57,7 @@ Here is Live Demo: http://www.mediabeta.com/enjoy-instagram/
50
  * Possibility to choose if show photo’s author, caption and likes number.
51
  * and many others features..
52
 
53
- LIVE PREMIUM VERSION DEMO: http://www.mediabeta.com/enjoy-instagram-premium/
54
 
55
  == Installation ==
56
 
@@ -98,6 +105,8 @@ Repeat Step 01 and Step 02 again.
98
  * Fix shortcode use and setting saving
99
  = 1.5.1 =
100
  * Bugs Fix
 
 
101
  == Upgrade Notice ==
102
 
103
  = 1.0 =
@@ -115,4 +124,6 @@ Repeat Step 01 and Step 02 again.
115
  = 1.5 =
116
  * Fix shortcode use and setting saving
117
  = 1.5.1 =
118
- * Bugs Fix
 
 
1
  === Enjoy Instagram ===
2
  Contributors: (mediabeta, frafra85, fabiodipa)
3
  Donate link: http://www.mediabeta.com/enjoy-instagram/
4
+ Tags: Instagram plugin, Instagram, Instagram gallery, Instagram images, Lightbox Instagram,Grid Instagram view, Instagram responsive, Instagram touch, Instagram photos,Instagram posts, Instagram page, Instagram widgets
5
  Requires at least: 3.0.1
6
  Tested up to: 4.0
7
+ Version: 1.5.2
8
+ Stable tag: 1.5.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
13
 
14
  == Description ==
15
 
16
+ = Visualize Instagram Photos in your website! =
17
+
18
+ You can display awesome carousels or images sliders of Instagram photos by user or
19
+ hashtag. You can easily use Enjoy Instagram in your pages, posts, sidebars with
20
+ shortcodes or widgets.
21
+
22
+ Each photo can be shown in “Lightbox”or Grid mode. Everything is responsive and
23
+ optimized for mobile devices.
24
 
25
  Here is Live Demo: http://www.mediabeta.com/enjoy-instagram/
26
 
27
  = Features =
28
+
29
  * Connected with your instagram account
30
+ * Display photos using instagram hashtags
31
+ * Display photos by your Instagram account
32
  * Shortcodes
33
+ * Use like a Widgets
 
34
  * Touch
35
+ * Completely responsive and Optimized Mobile Devices
36
  * Grid View Customizable
37
  * Carousel View Customizable
38
  * FadeIn Effect in Grid View
40
  * Very Simple Installation and Configuration
41
 
42
  = PREMIUM VERSION =
43
+
44
+ See demo http://www.mediabetaprojects.com/enjoy-instagram-premium/
45
+
46
+ * NEW Polaroid View to overlay images as polaroid pictures
47
+ * NEW Album View to show your pictures organized for username and or hashtags
48
+ * NEW Badge View that will help you link to and promote your Instagram web profile
49
  * Autoreload Stream of Photos
50
+ * Moderation Panel: In real time you can moderate new photos and decide to approve and to publish or to rejected (Watch how it works: https://www.youtube.com/watch?v=W6gNqlghbLE ).
51
  * Autoplay
52
  * Loop
53
  * Possibility to choose what link on the photo: Lightbox, Instagram, Custom URL or nothing.
57
  * Possibility to choose if show photo’s author, caption and likes number.
58
  * and many others features..
59
 
60
+ LIVE PREMIUM VERSION DEMO: http://www.mediabetaprojects.com/enjoy-instagram-premium/
61
 
62
  == Installation ==
63
 
105
  * Fix shortcode use and setting saving
106
  = 1.5.1 =
107
  * Bugs Fix
108
+ = 1.5.2 =
109
+ * Bug for utf8 4-byte (mobile emoticon) Fixed
110
  == Upgrade Notice ==
111
 
112
  = 1.0 =
124
  = 1.5 =
125
  * Fix shortcode use and setting saving
126
  = 1.5.1 =
127
+ * Bugs Fix
128
+ = 1.5.2 =
129
+ * Bug for utf8 4-byte (mobile emoticon) Fixed