Zendesk Chat - Version 1.3.0

Version Description

  • Removed iframe Capability from plugin
  • Removed Account Configuration, Customize and Dashboard sub-menu pages
  • Added Launch Dashboard link to open new browser tab to access Dashboard
  • Minor Code Fixes
Download this release

Release Info

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

Code changes from version 1.2.9 to 1.3.0

Files changed (6) hide show
  1. accountconfig.php +26 -6
  2. readme.txt +32 -31
  3. screenshot-2.png +0 -0
  4. screenshot-3.png +0 -0
  5. screenshot-4.png +0 -0
  6. zopim.php +5 -58
accountconfig.php CHANGED
@@ -1,5 +1,23 @@
1
<?php
2
-
3
// Settings page in the admin panel
4
function zopim_account_config() {
5
global $usernameToCodeURL, $languagesURL, $current_user;
@@ -118,7 +136,9 @@ function zopim_account_config() {
118
<div style="background:#FFFEEB;padding:25px;border:1px solid #eee;">
119
<span style="float:right;"><a href="admin.php?page=zopim_account_config&action=deactivate">Deactivate</a></span>
120
Currently Activated Account &rarr; <b><?php echo get_option('zopimUsername'); ?></b> <div style="display:inline-block;background:#444;color:#fff;font-size:10px;text-transform:uppercase;padding:3px 8px;-moz-border-radius:5px;-webkit-border-radius:5px;"><?php echo ucwords($accountDetails->package_id); ?></div>
121
- <br><p><br>You can <a href="admin.php?page=zopim_customize_widget">customize</a> the chat widget, or <a href="admin.php?page=zopim_dashboard">launch the dashboard</a> for advanced features.
122
123
124
<form method="post" action="admin.php?page=zopim_account_config">
@@ -145,13 +165,13 @@ Currently Activated Account &rarr; <b><?php echo get_option('zopimUsername'); ?>
145
<?php if ($error && $error["auth"]) {
146
echo $error["auth"];
147
} else if ($message == "") { ?>
148
- Congratulations on successfully installing the Zopim WordPress plugin! Activate an account to start using Zopim Live Chat.<br>
149
<br>
150
<?php } else { echo $message;} ?>
151
<div id="existingform">
152
<div class="metabox-holder">
153
<div class="postbox">
154
- <h3 class="hndle"><span>Link up to your Zopim account</span></h3>
155
<div style="padding:10px;">
156
<?php if (isset($error) && isset($error["login"])) { echo $error["login"]; } ?>
157
<form method="post" action="admin.php?page=zopim_account_config">
@@ -174,11 +194,11 @@ Congratulations on successfully installing the Zopim WordPress plugin! Activate
174
</tr>
175
</table>
176
<br/>
177
- The Zopim chat bar will displayed on your blog once your account is linked up.
178
<br/>
179
<p class="submit">
180
<input type="submit" class="button-primary" value="<?php _e('Link Up') ?>" />
181
- Don't have a zopim account? <a href="<?php echo ZOPIM_SIGNUP_REDIRECT_URL; ?>" target="_blank" data-popup="true">Sign up now</a>.
182
</p>
183
184
</form>
1
+ <style type="text/css">
2
+ .btn_orange {
3
+ display: inline-block;
4
+ width: 150px;
5
+ padding: 10px 0px;
6
+ background: #F38313;
7
+ color: #fff !important;
8
+ border-radius: 5px;
9
+ font-weight: 700;
10
+ font-style: normal;
11
+ font-size: 14px;
12
+ border: none;
13
+ text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.2);
14
+ text-decoration: none;
15
+ text-align: center;
16
+ border: 1px solid #E37A13;
17
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
18
+ }
19
+ </style>
20
<?php
21
// Settings page in the admin panel
22
function zopim_account_config() {
23
global $usernameToCodeURL, $languagesURL, $current_user;
136
<div style="background:#FFFEEB;padding:25px;border:1px solid #eee;">
137
<span style="float:right;"><a href="admin.php?page=zopim_account_config&action=deactivate">Deactivate</a></span>
138
Currently Activated Account &rarr; <b><?php echo get_option('zopimUsername'); ?></b> <div style="display:inline-block;background:#444;color:#fff;font-size:10px;text-transform:uppercase;padding:3px 8px;-moz-border-radius:5px;-webkit-border-radius:5px;"><?php echo ucwords($accountDetails->package_id); ?></div>
139
+ <!--<br><p><br>You can <a href="admin.php?page=zopim_customize_widget">customize</a> the chat widget, or <a href="admin.php?page=zopim_dashboard">launch the dashboard</a> for advanced features.-->
140
+ <br><br>To start using Zopim chat, launch our dashboard for access to all features, including widget customization!
141
+ <br><br><a href="<?php echo ZOPIM_DASHBOARD_LINK."&username=".get_option('zopimUsername'); ?>" style="text-decoration:none;" target="_blank" data-popup="true"><div class="btn_orange">Launch Dashboard</div></a>&nbsp;&nbsp;(This will open up a new browser tab)
142
143
144
<form method="post" action="admin.php?page=zopim_account_config">
165
<?php if ($error && $error["auth"]) {
166
echo $error["auth"];
167
} else if ($message == "") { ?>
168
+ Congratulations on successfully installing the Zopim WordPress plugin!<br>
169
<br>
170
<?php } else { echo $message;} ?>
171
<div id="existingform">
172
<div class="metabox-holder">
173
<div class="postbox">
174
+ <h3 class="hndle"><span>Link up with your Zopim account</span></h3>
175
<div style="padding:10px;">
176
<?php if (isset($error) && isset($error["login"])) { echo $error["login"]; } ?>
177
<form method="post" action="admin.php?page=zopim_account_config">
194
</tr>
195
</table>
196
<br/>
197
+ The Zopim chat widget will display on your blog after your account is linked up.
198
<br/>
199
<p class="submit">
200
<input type="submit" class="button-primary" value="<?php _e('Link Up') ?>" />
201
+ &nbsp;Don't have a zopim account? <a href="<?php echo ZOPIM_SIGNUP_REDIRECT_URL; ?>" target="_blank" data-popup="true">Sign up now</a>.
202
</p>
203
204
</form>
readme.txt CHANGED
@@ -1,52 +1,45 @@
1
=== Zopim Live Chat ===
2
Contributors: bencxr
3
- Tags: chat, chat online, contact plugin, contact us, customer support, free chat, chat software, IM chat,
4
- live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support,
5
- live web chat, livechat, live help, live support, olark, online chat, online support, php live chat,
6
- snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin,
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
14
== Description ==
15
16
- Ever wondered how to chat with visitors to your website? With <a href="http://www.zopim.com/?utm_source=wpdirectory&utm_medium=link&utm_campaign=wp%2Bplugin">Zopim</a> Live Chat, they are just a click away!
17
18
- Using our <a href="http://blog.zopim.com/2010/10/28/awards-are-rolling-in/">award-winning</a> tool to respond instantly to visitors and engage them proactively. Live chat cant be simpler with Zopim.
19
20
[youtube https://www.youtube.com/watch?v=tSRSn9hJU1c]
21
22
- Zopim Live Chat shows up as a chatbar docked at the bottom of your website. Visitors chat with you simply by clicking on the Zopim Chat Widget.
23
24
- **What you can do with Zopim Live Chat:**
25
26
- * Know what your visitors are looking at. See which product page they are currently viewing.
27
- * Let customers reach you directly. You can also proactively click on them to start a chat.
28
- * Chat with many visitors at the same time
29
30
- **Why Zopim Live Chat but not anyone else?**
31
32
- * A real customer-centric live chat tool that is loved by 140,000 businesses around the world.
33
- * Free version available.
34
- * Simple to setup and use.
35
- * Fully customizable chat widget to match your website design.
36
- * User-friendly dashboard/ control panel to manage chats.
37
- * Chat widget available in more than 40 languages*.
38
-
39
- Just to name a few!
40
41
**Some Geeky Facts**
42
43
* Work across major browsers (Internet Explorer 6+, Firefox, Google Chrome, Opera, Safari).
44
- * Uptime averaged 99.8%.
45
- * New HTML5 dashboard.
46
- * iPhone application available.
47
- * Integration seamlessly with Uservoice, Salesforce, Highrise, Batchbook, Zendesk and more.
48
49
- Love to know more about the product? Please visit our <a href="https://www.zopim.com/product">website</a>.
50
51
What are you waiting for? Download Zopim Live Chat plugin now and <a href="https://www.zopim.com/?aref=MjUxMjY4:1TeORR:9SP1e-iPTuAVXROJA6UU5seC8x4&visit_id=6ffe00ec3cfc11e2b5ab22000a1db8fa&utm_source=wpdirectory&utm_medium=link&utm_campaign=wp%2Bsignup#signup">sign up here</a> for a free account!
52
@@ -55,6 +48,13 @@ 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.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
@@ -183,9 +183,10 @@ to give roles the 'access_zopim' capability.
183
== Screenshots ==
184
185
1. Chat window on your website - active chat
186
- 2. Account Configuration
187
- 3. Styling and customiation
188
- 4. Dashboard View
189
190
== Frequently Asked Questions ==
191
1
=== Zopim Live Chat ===
2
Contributors: bencxr
3
+ Tags: chat, chat online, contact plugin, contact us, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, Zopim, zendesk, Zopim live chat, banckle, clickdesk, click desk
4
Requires at least: 3.1
5
Tested up to: 3.8.1
6
+ Stable tag: 1.3.0
7
8
+ Zopim lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
9
10
== Description ==
11
12
+ Did you know that 83% of consumers need some kind of customer support when making an online purchase? And 45% of customers abandon an online transaction if their questions or concerns are not addressed quickly.
13
14
+ Businesses that interact with potential customers online are better placed to build a connection and increase their revenues. The Zopim live chat app will let you answer your customers questions in real time and ease them into a purchase.
15
16
[youtube https://www.youtube.com/watch?v=tSRSn9hJU1c]
17
18
+ With Zopim Live Chat, visitors to your website will be able to chat directly with you through the widget and you can manage multiple conversations through the online Dashboard.
19
20
+ **Key Features**
21
22
+ * **Mobile Optimized:** Your customers can chat with you from any device using our mobile optimized chat widget
23
+ * **Proactive Chat:** Rather than chatting with every single person yourself, you can increase the chances of high value engagement (and more sales) by using Triggers to automatically reach every visitor
24
+ * **Advanced Analytics:** Our analytics dashboard lets you monitor visitor flow, usage patterns, and lets you jump in whenever a customer might need help
25
26
+ **What makes Zopim the best choice for live chat?**
27
28
+ * We’re the most popular live chat provider in the world - loved by over 150,000 businesses
29
+ * A simple and highly customizable chat widget to complement your website and taste
30
+ * User friendly dashboard lets you monitor visitor activity and manage chats
31
+ * 24 hour live chat support from our trained experts on any weekday (visit Zopim.com)
32
+ * Available in over 40 languages
33
34
**Some Geeky Facts**
35
36
* Work across major browsers (Internet Explorer 6+, Firefox, Google Chrome, Opera, Safari).
37
+ * Average uptime is 99.8%.
38
+ * HTML5 dashboard
39
+ * iPhone, Android, and BlackBerry apps
40
+ * Integrates seamlessly with UserVoice, Salesforce, Highrise, Batchbook, Zendesk, vTiger and many more.
41
42
+ Should you need any assistance, feel free to chat with our customer advocates on www.zopim.com or email us at support@zopim.com
43
44
What are you waiting for? Download Zopim Live Chat plugin now and <a href="https://www.zopim.com/?aref=MjUxMjY4:1TeORR:9SP1e-iPTuAVXROJA6UU5seC8x4&visit_id=6ffe00ec3cfc11e2b5ab22000a1db8fa&utm_source=wpdirectory&utm_medium=link&utm_campaign=wp%2Bsignup#signup">sign up here</a> for a free account!
45
48
* 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
49
50
== Changelog ==
51
+ = 1.3.0 =
52
+ * Removed iframe Capability from plugin
53
+ * Removed Account Configuration, Customize and Dashboard sub-menu pages
54
+ * Added Launch Dashboard link to open new browser tab to access Dashboard
55
+ * Minor Code Fixes
56
+
57
+
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
183
== Screenshots ==
184
185
1. Chat window on your website - active chat
186
+ 2. Account Configuration - Link Up
187
+ 3. Account Configuration - Linked Up with Launch Dashboard
188
+ 4. Dashboard View - Open new browser tab
189
+ 5. Widget Customization from Dashboard
190
191
== Frequently Asked Questions ==
192
screenshot-2.png CHANGED
Binary file
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.9
9
Author URI: http://www.zopim.com/?iref=wp_plugin
10
*/
11
@@ -17,10 +17,7 @@ define('ZOPIM_SETDISPLAYNAME_URL', ZOPIM_BASE_URL."plugins/setDisplayName");
17
define('ZOPIM_SETEDITOR_URL', ZOPIM_BASE_URL."plugins/setEditor");
18
define('ZOPIM_LOGIN_URL', ZOPIM_BASE_URL."plugins/login");
19
define('ZOPIM_SIGNUP_URL', ZOPIM_BASE_URL."plugins/createTrialAccount");
20
- define('ZOPIM_DASHBOARD_URL', "http://dashboard.zopim.com/?utm_source=wp&utm_medium=iframe&utm_campaign=wp%2Bdashboard");
21
- define('ZOPIM_DASHBOARD_LINK', "http://dashboard.zopim.com/?utm_source=wp&utm_medium=link&utm_campaign=wp%2Bdashboard");
22
- define('ZOPIM_THEMEEDITOR_URL', "http://dashboard.zopim.com/#Widget/appearance");
23
- define('ZOPIM_THEMEEDITOR_LINK', "http://dashboard.zopim.com/#Widget/appearance");
24
define('ZOPIM_SMALL_LOGO', "http://zopim.com/assets/branding/zopim.com/chatman/online.png");
25
26
require_once dirname( __FILE__ ) . '/accountconfig.php';
@@ -39,8 +36,8 @@ function zopimme() {
39
get_currentuserinfo();
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; }
@@ -74,7 +71,7 @@ function zopim_get_widget_options() {
74
if ($opts) return stripslashes($opts);
75
76
//$opts = zopim_old_plugin_settings();
77
- $zopim_embed_opts .= "\$zopim( function() {";
78
$zopim_embed_opts .= "\n})";
79
$opts = $zopim_embed_opts;
80
@@ -155,12 +152,6 @@ function zopim_old_plugin_settings() {
155
function zopim_create_menu() {
156
//create new top-level menu
157
add_menu_page('Account Configuration', 'Zopim Chat', 'access_zopim', 'zopim_account_config', 'zopim_account_config', ZOPIM_SMALL_LOGO);
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' );
166
}
@@ -169,50 +160,6 @@ function zopim_about() {
169
echo "about";
170
}
171
172
- function zopim_resize_iframe($target) {
173
-
174
- ?>
175
- <script>
176
- (function() {
177
- var wpwrap = document.getElementById('wpwrap');
178
- var ztarget = document.getElementById('<?php echo $target; ?>');
179
- // window.addEventListener('resize', zopim_resize, false);
180
- function zopim_resize() {
181
- if (wpwrap && wpwrap.clientHeight) {
182
- ztarget.height = Math.max(wpwrap.clientHeight - 110, 700);
183
- }
184
- }
185
- zopim_resize();
186
- })()
187
- </script>
188
-
189
- <?php
190
- }
191
-
192
- function zopim_customize_widget() {
193
-
194
- $params = '';
195
- $code = get_option('zopimCode');
196
- //if (!empty($code)) $params .= '&account_key=' . urlencode($code);
197
- //$params .= '&url=' . urlencode(get_site_option('siteurl'));
198
- echo '<div id="dashboarddiv" style="overflow:hidden;"><iframe id="dashboard-widget" src="'.ZOPIM_THEMEEDITOR_URL.'" height=700 width=110% scrolling="no" style="margin-left:-180px;"></iframe></div>';
199
- echo 'You may also <a href="'.ZOPIM_THEMEEDITOR_LINK.$params.'" target="customize" onclick="javascript:document.getElementById(\'dashboarddiv\').innerHTML=\'\'; ">access the theme editor in a new window</a>.';
200
- zopim_resize_iframe('dashboard-widget');
201
- }
202
-
203
- function zopim_dashboard() {
204
- global $current_user;
205
-
206
- if (isset($current_user)):
207
- $useremail = $current_user->data->user_email;
208
- endif;
209
- // Get Blog's URL
210
-
211
- echo '<div id="dashboarddiv"><iframe id="dashboardiframe" src="'.ZOPIM_DASHBOARD_URL.'" height=700 width=98% scrolling="no"></iframe></div>';
212
- echo 'You may also <a href="'.ZOPIM_DASHBOARD_LINK.'" target="dashboard" onclick="javascript:document.getElementById(\'dashboarddiv\').innerHTML=\'\'; ">access the dashboard in a new window</a>.';
213
- zopim_resize_iframe('dashboardiframe');
214
- }
215
-
216
// Register the option settings we will be using
217
function register_zopim_plugin_settings() {
218
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.3.0
9
Author URI: http://www.zopim.com/?iref=wp_plugin
10
*/
11
17
define('ZOPIM_SETEDITOR_URL', ZOPIM_BASE_URL."plugins/setEditor");
18
define('ZOPIM_LOGIN_URL', ZOPIM_BASE_URL."plugins/login");
19
define('ZOPIM_SIGNUP_URL', ZOPIM_BASE_URL."plugins/createTrialAccount");
20
+ define('ZOPIM_DASHBOARD_LINK', "https://dashboard.zopim.com/?utm_source=wp&utm_medium=link&utm_campaign=wp%2Bdashboard");
21
define('ZOPIM_SMALL_LOGO', "http://zopim.com/assets/branding/zopim.com/chatman/online.png");
22
23
require_once dirname( __FILE__ ) . '/accountconfig.php';
36
get_currentuserinfo();
37
38
$code = get_option('zopimCode');
39
+
40
+ if ( ( $code == "" || $code == "zopim" ) && ( isset( $_GET['page'] ) && ! preg_match( "/zopim/", $_GET['page'] ) ) && ( isset( $_GET['page'] ) && ! preg_match( "/zopim/", $_SERVER["SERVER_NAME"] ) ) ) { return; }
41
42
// dont show this more than once
43
if (isset($zopimshown) && $zopimshown == 1) { return; }
71
if ($opts) return stripslashes($opts);
72
73
//$opts = zopim_old_plugin_settings();
74
+ $zopim_embed_opts = "\$zopim( function() {";
75
$zopim_embed_opts .= "\n})";
76
$opts = $zopim_embed_opts;
77
152
function zopim_create_menu() {
153
//create new top-level menu
154
add_menu_page('Account Configuration', 'Zopim Chat', 'access_zopim', 'zopim_account_config', 'zopim_account_config', ZOPIM_SMALL_LOGO);
155
//call register settings function
156
add_action( 'admin_init', 'register_zopim_plugin_settings' );
157
}
160
echo "about";
161
}
162
163
// Register the option settings we will be using
164
function register_zopim_plugin_settings() {
165