Version Description
- 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)
- Customize and Dashboard will now open in a new window instead of iframe
Download this release
Release Info
Developer | bencxr |
Plugin | Zendesk Chat |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
- accountconfig.php +1 -1
- imintegration.php +0 -121
- readme.txt +7 -6
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- zopim.php +27 -9
accountconfig.php
CHANGED
@@ -118,7 +118,7 @@ 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 → <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,
|
122 |
|
123 |
|
124 |
<form method="post" action="admin.php?page=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 → <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">
|
imintegration.php
DELETED
@@ -1,121 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function zopim_instant_messaging() { ?>
|
4 |
-
|
5 |
-
<div class="wrap">
|
6 |
-
<div id="icon-users" class="icon32"></div>
|
7 |
-
<h2>Relay your messages</h2>
|
8 |
-
Use your favourite Instant Messaging (IM) client to chat with your website visitors!<p>
|
9 |
-
|
10 |
-
|
11 |
-
<?php
|
12 |
-
|
13 |
-
$salt = array('salt' => get_option('zopimSalt'));
|
14 |
-
|
15 |
-
if (isset($_GET["remove"]) && $_GET["remove"] == 1) {
|
16 |
-
echo "Removed IM Set Up. <br><br>";
|
17 |
-
|
18 |
-
json_to_array(zopim_post_request(ZOPIM_IMREMOVE_URL, $salt));
|
19 |
-
}
|
20 |
-
$iminfo = json_to_array(zopim_post_request(ZOPIM_IMINFO_URL, $salt));
|
21 |
-
|
22 |
-
if (isset($iminfo->bots)) { // Can set up IM ?>
|
23 |
-
|
24 |
-
<style>
|
25 |
-
td {}
|
26 |
-
.clients td.first {border:none;background:#888;color:#fff;}
|
27 |
-
.steps {width:100%}
|
28 |
-
.steps td {background:#f9f9f9;padding:15px;}
|
29 |
-
.clients td {padding:8px;border-top:1px solid #dfdfdf;background:#fff;}
|
30 |
-
.clients {border:1px solid #dfdfdf;background:#fff}
|
31 |
-
.explain {
|
32 |
-
background:#FAFAFA;
|
33 |
-
color:#667788;
|
34 |
-
font-size:8pt;
|
35 |
-
line-height:13px;
|
36 |
-
margin:4px 0 0 0;
|
37 |
-
padding:8px 3px;
|
38 |
-
display: inline-block;
|
39 |
-
}
|
40 |
-
</style>
|
41 |
-
|
42 |
-
<div class="metabox-holder">
|
43 |
-
<div class="postbox">
|
44 |
-
<h3 class="hndle"><span>Setting up your Chat Bots</span></h3>
|
45 |
-
<div style="padding:10px 0px;line-height:17px;">
|
46 |
-
|
47 |
-
<table class="steps" cellspacing="0" cellpadding="0">
|
48 |
-
<tr valign="top">
|
49 |
-
<td style="border-right:5px solid #fff;width:394px;">
|
50 |
-
1. Add the Control Bot to the IM Client of your choice.<br/><br/>
|
51 |
-
|
52 |
-
<table class="clients" cellpadding="0" cellspacing="0">
|
53 |
-
<tr><td align="center" width="160" class="first"><b>IM Client</b></td><td class="first" width="200"><b>Chat Bot's Name</b></td></tr>
|
54 |
-
<tr><td valign="center" align="center">Gtalk</td><td><?php echo $iminfo->bots->gtalk; ?></td></tr>
|
55 |
-
<tr><td valign="center" align="center">Yahoo</td><td><?php echo $iminfo->bots->yahoo; ?></td></tr>
|
56 |
-
<tr><td valign="center" align="center">AIM</td><td><?php echo $iminfo->bots->aim; ?></td></tr>
|
57 |
-
<tr><td valign="center" align="center">Microsoft</td><td><?php echo $iminfo->bots->msn; ?></td></tr>
|
58 |
-
</table>
|
59 |
-
<div class="explain">For example, to use <b>Gtalk</b> to chat,<br/>add <b><?php echo $iminfo->bots->gtalk; ?></b> to your Gtalk contact list.</div>
|
60 |
-
</td>
|
61 |
-
<td>
|
62 |
-
2. Send the Control Bot this message:<br/><br/><input style="font-size:31px;color:#555;margin:0 0 5px;width:380px;" type="text" value="#setup <?php echo $iminfo->auth_key; ?>" id="box-content" readonly></input><br/>
|
63 |
-
|
64 |
-
<br/><br/>
|
65 |
-
3. Accept the invitations to add the Chat Bots.<br>
|
66 |
-
<div class="explain">Depending on the number of Chat Bots available in your Package,<br/>you may need to accept up to 8 invitations</div>
|
67 |
-
<br/><br/>That's all!<br/><br/>
|
68 |
-
The Chat Bot will now relay all messages sent from<br/>your website to your IM Client.
|
69 |
-
<br/><br/>
|
70 |
-
Chat away!
|
71 |
-
</td>
|
72 |
-
</tr>
|
73 |
-
</table>
|
74 |
-
|
75 |
-
</div>
|
76 |
-
</div>
|
77 |
-
</div>
|
78 |
-
<?php } else if (isset($iminfo->status)) { // integration already set up ?>
|
79 |
-
|
80 |
-
<h3><img src="<?php echo ZOPIM_IM_LOGOS.$iminfo->protocol; ?>.png"> Your <?php echo strtoupper($iminfo->protocol); ?> account is now linked with Zopim.</h3>
|
81 |
-
|
82 |
-
You are connected using the account: <?php echo $iminfo->username; ?>. <br>
|
83 |
-
Your status is now <b><?php echo $iminfo->status; ?></b>.<br><br>
|
84 |
-
|
85 |
-
<!--
|
86 |
-
<H3>Disable IM Integration</h3>
|
87 |
-
You can <a href="admin.php?page=zopim_instant_messaging&remove=1">disable IM integration by clicking here</a>.
|
88 |
-
-->
|
89 |
-
|
90 |
-
<?php } else { // could not contact zopim to get the IM status
|
91 |
-
|
92 |
-
if (get_option('zopimCode') != "zopim") {
|
93 |
-
|
94 |
-
?>
|
95 |
-
|
96 |
-
<div class="metabox-holder">
|
97 |
-
<div class="postbox">
|
98 |
-
<h3 class="hndle"><span>Account not linked</span></h3>
|
99 |
-
<div style="padding:10px;line-height:17px;">
|
100 |
-
Please <a href="admin.php?page=zopim_account_config">link your account / check your password</a> before setting up Chat Bots.
|
101 |
-
|
102 |
-
</div>
|
103 |
-
</div>
|
104 |
-
</div>
|
105 |
-
|
106 |
-
<?php } else { ?>
|
107 |
-
|
108 |
-
<div class="metabox-holder">
|
109 |
-
<div class="postbox">
|
110 |
-
<h3 class="hndle"><span>Account not activated</span></h3>
|
111 |
-
<div style="padding:10px;line-height:17px;">
|
112 |
-
Please <a href="admin.php?page=zopim_account_config">activate your account</a> before setting up Chat Bots.
|
113 |
-
|
114 |
-
</div>
|
115 |
-
</div>
|
116 |
-
</div>
|
117 |
-
|
118 |
-
<?php } }
|
119 |
-
|
120 |
-
}
|
121 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
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,
|
@@ -6,8 +6,8 @@ live web chat, livechat, live help, live support, olark, online chat, online sup
|
|
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.
|
10 |
-
Stable tag: 1.2.
|
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 |
|
@@ -40,7 +40,7 @@ Just to name a few!
|
|
40 |
|
41 |
**Some Geeky Facts**
|
42 |
|
43 |
-
* Work across major browsers (
|
44 |
* Uptime averaged 99.8%.
|
45 |
* New HTML5 dashboard.
|
46 |
* iPhone application available.
|
@@ -55,6 +55,9 @@ 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 |
|
59 |
= 1.2.7 =
|
60 |
* Plugin will now embed v2 Widget
|
@@ -64,7 +67,6 @@ Click on Appearance to make changes to your widget
|
|
64 |
* Old Javascript API from v1 Widget may not work with v2 Widget
|
65 |
Visit http://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html for more details
|
66 |
|
67 |
-
|
68 |
= 1.2.6 =
|
69 |
* Addresses XSS vulnerabilities concerns by removing ZeroClipboard
|
70 |
|
@@ -223,5 +225,4 @@ Step-by-step Guide:
|
|
223 |
* Install plugin from WordPress directory and activate it.
|
224 |
* Under Zopim Chat section, click on Account Setup to link up your Zopim account.
|
225 |
* Customize the chat widget to your preference.
|
226 |
-
* Navigate to IM Chat Bots to setup chat bots.
|
227 |
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
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,
|
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.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 |
|
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.
|
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
|
61 |
|
62 |
= 1.2.7 =
|
63 |
* Plugin will now embed v2 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
|
69 |
|
|
|
70 |
= 1.2.6 =
|
71 |
* Addresses XSS vulnerabilities concerns by removing ZeroClipboard
|
72 |
|
225 |
* Install plugin from WordPress directory and activate it.
|
226 |
* Under Zopim Chat section, click on Account Setup to link up your Zopim account.
|
227 |
* Customize the chat widget to your preference.
|
|
|
228 |
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
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 |
Author URI: http://www.zopim.com/?iref=wp_plugin
|
10 |
*/
|
11 |
|
@@ -15,8 +15,6 @@ define('ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_BASE_URL."?aref=MjUxMjY4:1TeORR:9SP1
|
|
15 |
define('ZOPIM_GETACCOUNTDETAILS_URL', ZOPIM_BASE_URL."plugins/getAccountDetails");
|
16 |
define('ZOPIM_SETDISPLAYNAME_URL', ZOPIM_BASE_URL."plugins/setDisplayName");
|
17 |
define('ZOPIM_SETEDITOR_URL', ZOPIM_BASE_URL."plugins/setEditor");
|
18 |
-
define('ZOPIM_IMINFO_URL', ZOPIM_BASE_URL."plugins/getImSetupInfo");
|
19 |
-
define('ZOPIM_IMREMOVE_URL', ZOPIM_BASE_URL."plugins/removeImSetup");
|
20 |
define('ZOPIM_LOGIN_URL', ZOPIM_BASE_URL."plugins/login");
|
21 |
define('ZOPIM_SIGNUP_URL', ZOPIM_BASE_URL."plugins/createTrialAccount");
|
22 |
define('ZOPIM_DASHBOARD_URL', "http://dashboard.zopim.com/?utm_source=wp&utm_medium=iframe&utm_campaign=wp%2Bdashboard");
|
@@ -24,10 +22,8 @@ define('ZOPIM_DASHBOARD_LINK', "http://dashboard.zopim.com/?utm_source=wp
|
|
24 |
define('ZOPIM_THEMEEDITOR_URL', "http://dashboard.zopim.com/#Widget/appearance");
|
25 |
define('ZOPIM_THEMEEDITOR_LINK', "http://dashboard.zopim.com/#Widget/appearance");
|
26 |
define('ZOPIM_SMALL_LOGO', "http://zopim.com/assets/branding/zopim.com/chatman/online.png");
|
27 |
-
define('ZOPIM_IM_LOGOS', "http://www.zopim.com/static/images/im/");
|
28 |
|
29 |
require_once dirname( __FILE__ ) . '/accountconfig.php';
|
30 |
-
require_once dirname( __FILE__ ) . '/imintegration.php';
|
31 |
|
32 |
function add_zopim_caps() {
|
33 |
$role = get_role( 'administrator' );
|
@@ -162,10 +158,8 @@ function zopim_create_menu() {
|
|
162 |
|
163 |
// add_submenu_page('zopim_about', "About", "About", "access_zopim", 'zopim_about', 'zopim_about');
|
164 |
add_submenu_page('zopim_account_config', 'Account Configuration', 'Account Setup', 'access_zopim', 'zopim_account_config', 'zopim_account_config');
|
165 |
-
add_submenu_page('zopim_account_config', 'Customize Widget', 'Customize', 'access_zopim', '
|
166 |
-
|
167 |
-
add_submenu_page('zopim_account_config', 'IM Integration', 'IM Chat Bots', 'access_zopim', 'zopim_instant_messaging', 'zopim_instant_messaging');
|
168 |
-
add_submenu_page('zopim_account_config', 'Dashboard', 'Dashboard', 'access_zopim', 'zopim_dashboard', 'zopim_dashboard');
|
169 |
|
170 |
//call register settings function
|
171 |
add_action( 'admin_init', 'register_zopim_plugin_settings' );
|
@@ -219,6 +213,30 @@ function zopim_dashboard() {
|
|
219 |
zopim_resize_iframe('dashboardiframe');
|
220 |
}
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
// Register the option settings we will be using
|
223 |
function register_zopim_plugin_settings() {
|
224 |
|
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 |
|
15 |
define('ZOPIM_GETACCOUNTDETAILS_URL', ZOPIM_BASE_URL."plugins/getAccountDetails");
|
16 |
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");
|
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';
|
|
|
27 |
|
28 |
function add_zopim_caps() {
|
29 |
$role = get_role( 'administrator' );
|
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 |
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 |
|