Zendesk Chat - Version 1.2.9

Version Description

  • Revert back to iframe Customize and Dashboard instead of opening new window
  • In PHP 5.3, ereg is deprecated, updated to use preg_match
Download this release

Release Info

Developer bencxr
Plugin Icon 128x128 Zendesk Chat
Version 1.2.9
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.9

Files changed (4) hide show
  1. readme.txt +6 -2
  2. screenshot-3.png +0 -0
  3. screenshot-4.png +0 -0
  4. zopim.php +4 -28
readme.txt CHANGED
@@ -7,7 +7,7 @@ snapengage, support software, website chat, wordpress chat, wordpress live chat,
7
  Zopim, Zopim live chat, banckle, clickdesk, click desk
8
  Requires at least: 3.1
9
  Tested up to: 3.8.1
10
- Stable tag: 1.2.8
11
 
12
  Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans! Try it Free!
13
 
@@ -55,6 +55,10 @@ What are you waiting for? Download Zopim Live Chat plugin now and <a href="https
55
  * Arabic | Bulgarian | Chinese | Croatian | Czech | Danish | Dutch; Flemish | Estonian | Faroese | Finnish | French | Georgian | German | Greek | Hebrew | Hungarian | Icelandic | Indonesian | Italian | Japanese | Korean | Kurdish | Latvian | Lithuanian | Macedonian | Malay | Norwegian Bokmal | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish; Castilian | Swedish | Thai | Turkish | Ukranian | Urdu | Vietnamese
56
 
57
  == Changelog ==
 
 
 
 
58
  = 1.2.8 =
59
  * Due to breaking changes in many consumer IM clients, we will no longer be supporting IM Chat Bots (AIM, Google Talk, Skype, Yahoo Messenger or MSN)
60
  * Customize and Dashboard will now open in a new window instead of iframe
@@ -62,7 +66,7 @@ What are you waiting for? Download Zopim Live Chat plugin now and <a href="https
62
  = 1.2.7 =
63
  * Plugin will now embed v2 Widget
64
  * Improved Login Response
65
- * Classic Theme Editor remove to use Dashboard Widget Customization
66
  Click on Appearance to make changes to your widget
67
  * Old Javascript API from v1 Widget may not work with v2 Widget
68
  Visit http://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html for more details
7
  Zopim, Zopim live chat, banckle, clickdesk, click desk
8
  Requires at least: 3.1
9
  Tested up to: 3.8.1
10
+ Stable tag: 1.2.9
11
 
12
  Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans! Try it Free!
13
 
55
  * Arabic | Bulgarian | Chinese | Croatian | Czech | Danish | Dutch; Flemish | Estonian | Faroese | Finnish | French | Georgian | German | Greek | Hebrew | Hungarian | Icelandic | Indonesian | Italian | Japanese | Korean | Kurdish | Latvian | Lithuanian | Macedonian | Malay | Norwegian Bokmal | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish; Castilian | Swedish | Thai | Turkish | Ukranian | Urdu | Vietnamese
56
 
57
  == Changelog ==
58
+ = 1.2.9 =
59
+ * Revert back to iframe Customize and Dashboard instead of opening new window
60
+ * In PHP 5.3, ereg is deprecated, updated to use preg_match
61
+
62
  = 1.2.8 =
63
  * Due to breaking changes in many consumer IM clients, we will no longer be supporting IM Chat Bots (AIM, Google Talk, Skype, Yahoo Messenger or MSN)
64
  * Customize and Dashboard will now open in a new window instead of iframe
66
  = 1.2.7 =
67
  * Plugin will now embed v2 Widget
68
  * Improved Login Response
69
+ * Classic Theme Editor removed to use Dashboard Widget Customization
70
  Click on Appearance to make changes to your widget
71
  * Old Javascript API from v1 Widget may not work with v2 Widget
72
  Visit http://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html for more details
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
zopim.php CHANGED
@@ -5,7 +5,7 @@ Plugin Name: Zopim Widget
5
  Plugin URI: http://www.zopim.com/?iref=wp_plugin
6
  Description: Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
7
  Author: Zopim
8
- Version: 1.2.8
9
  Author URI: http://www.zopim.com/?iref=wp_plugin
10
  */
11
 
@@ -40,7 +40,7 @@ function zopimme() {
40
 
41
  $code = get_option('zopimCode');
42
 
43
- if (($code == "" || $code=="zopim") && (!ereg("zopim", $_GET["page"]))&& (!ereg("zopim", $_SERVER["SERVER_NAME"]))) { return; }
44
 
45
  // dont show this more than once
46
  if (isset($zopimshown) && $zopimshown == 1) { return; }
@@ -158,8 +158,8 @@ function zopim_create_menu() {
158
 
159
  // add_submenu_page('zopim_about', "About", "About", "access_zopim", 'zopim_about', 'zopim_about');
160
  add_submenu_page('zopim_account_config', 'Account Configuration', 'Account Setup', 'access_zopim', 'zopim_account_config', 'zopim_account_config');
161
- add_submenu_page('zopim_account_config', 'Customize Widget', 'Customize', 'access_zopim', 'open_zopim_customize', 'open_zopim_customize');
162
- add_submenu_page('zopim_account_config', 'Dashboard', 'Dashboard', 'access_zopim', 'open_zopim_dashboard', 'open_zopim_dashboard');
163
 
164
  //call register settings function
165
  add_action( 'admin_init', 'register_zopim_plugin_settings' );
@@ -213,30 +213,6 @@ function zopim_dashboard() {
213
  zopim_resize_iframe('dashboardiframe');
214
  }
215
 
216
- function open_zopim_dashboard() {
217
- echo "<script type='text/javascript'>
218
- var window = window.open('".ZOPIM_DASHBOARD_LINK."', '_blank', 'width=1000,height=800');
219
- if (window){
220
- window.focus();
221
- } else{
222
- alert('Zopim Plugin: Please allow popups for this site');
223
- }
224
- window.location = '".home_url()."/wp-admin'
225
- </script>";
226
- }
227
-
228
- function open_zopim_customize() {
229
- echo "<script type='text/javascript'>
230
- var window = window.open('".ZOPIM_THEMEEDITOR_LINK."', '_blank', 'width=1000,height=800');
231
- if (window){
232
- window.focus();
233
- } else{
234
- alert('Zopim Plugin: Please allow popups for this site');
235
- }
236
- window.location = '".home_url()."/wp-admin'
237
- </script>";
238
- }
239
-
240
  // Register the option settings we will be using
241
  function register_zopim_plugin_settings() {
242
 
5
  Plugin URI: http://www.zopim.com/?iref=wp_plugin
6
  Description: Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
7
  Author: Zopim
8
+ Version: 1.2.9
9
  Author URI: http://www.zopim.com/?iref=wp_plugin
10
  */
11
 
40
 
41
  $code = get_option('zopimCode');
42
 
43
+ if (($code == "" || $code=="zopim") && (!preg_match("/zopim/", $_GET["page"]))&& (!preg_match("/zopim/", $_SERVER["SERVER_NAME"]))) { return; }
44
 
45
  // dont show this more than once
46
  if (isset($zopimshown) && $zopimshown == 1) { return; }
158
 
159
  // add_submenu_page('zopim_about', "About", "About", "access_zopim", 'zopim_about', 'zopim_about');
160
  add_submenu_page('zopim_account_config', 'Account Configuration', 'Account Setup', 'access_zopim', 'zopim_account_config', 'zopim_account_config');
161
+ add_submenu_page('zopim_account_config', 'Customize Widget', 'Customize', 'access_zopim', 'zopim_customize_widget', 'zopim_customize_widget');
162
+ add_submenu_page('zopim_account_config', 'Dashboard', 'Dashboard', 'access_zopim', 'zopim_dashboard', 'zopim_dashboard');
163
 
164
  //call register settings function
165
  add_action( 'admin_init', 'register_zopim_plugin_settings' );
213
  zopim_resize_iframe('dashboardiframe');
214
  }
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  // Register the option settings we will be using
217
  function register_zopim_plugin_settings() {
218