Version Description
- adds User Capability levels, allowing non-admins to use the plugin admin interface
- Admins can use add the following code $role
Download this release
Release Info
Developer | bencxr |
Plugin | Zendesk Chat |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- readme.txt +53 -22
- zopim.php +17 -26
readme.txt
CHANGED
@@ -3,47 +3,66 @@ Contributors: bencxr
|
|
3 |
Tags: widget, plugin, sidebar, page, admin, enhancement, livechat, chat, widget
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 3.3.1
|
6 |
-
Stable tag: 1.2.
|
7 |
|
8 |
-
Zopim is an award winning
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
|
20 |
-
|
21 |
|
22 |
-
|
23 |
-
|
|
|
24 |
|
25 |
-
**
|
26 |
|
27 |
-
*
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
-
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
**See all languages available, lovingly translated by Zopim users (in alphabetical order)**
|
42 |
|
43 |
* 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
|
44 |
|
45 |
== Changelog ==
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
= 1.2.0 =
|
48 |
* Signup process is now linked to zopim.com as per Wordpress guidelines.
|
49 |
|
@@ -144,7 +163,7 @@ Not at all! Zopim is a hosted livechat service. Simply configure the plugin and
|
|
144 |
Though designed to work on most browsers, Zopim works best in the following environment: IE 6 or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
145 |
|
146 |
= I managed to install the plugin but cannot link up to Zopim. Why? =
|
147 |
-
|
148 |
|
149 |
Alternatively, you can also manually include the script in the footer file ("wp-content/themes/default/footer.php" in your wordpress installation).
|
150 |
|
@@ -152,9 +171,13 @@ Alternatively, you can also manually include the script in the footer file ("wp-
|
|
152 |
|
153 |
The plugin comes with a free plan specially tailored for Wordpress users. Power users can purchase upgrade options anytime.
|
154 |
|
|
|
|
|
|
|
|
|
155 |
= Its just not working for me! HELP! =
|
156 |
|
157 |
-
Dont worry!! We are happy to assist! Just come on down to our site at http://www.zopim.com or leave an email for us at
|
158 |
|
159 |
== Usage ==
|
160 |
|
@@ -162,6 +185,14 @@ After enabling the plug in, head on to the widget customization page to change s
|
|
162 |
|
163 |
== Installation ==
|
164 |
|
165 |
-
*Server Requirements:* PHP4 or PHP5
|
166 |
|
167 |
*Wordpress versions:* Wordpress 2.7 and up.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
Tags: widget, plugin, sidebar, page, admin, enhancement, livechat, chat, widget
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 3.3.1
|
6 |
+
Stable tag: 1.2.2
|
7 |
|
8 |
+
Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
Ever wondered how to chat with visitors to your website? With <a href="https://www.zopim.com/?iref=wp_plugin">Zopim</a> Live Chat, they are just a click away!
|
13 |
|
14 |
+
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 can’t be simpler with Zopim.
|
15 |
|
16 |
+
[youtube https://www.youtube.com/watch?v=tSRSn9hJU1c]
|
17 |
|
18 |
+
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.
|
19 |
|
20 |
+
**What you can do with Zopim Live Chat:**
|
21 |
|
22 |
+
* Know what your visitors are looking at. See which product page they are currently viewing.
|
23 |
+
* Let customers reach you directly. You can also proactively click on them to start a chat.
|
24 |
+
* Reply to chats online or offline via any browser, or your favorite IM client.
|
25 |
|
26 |
+
**Why Zopim Live Chat but not anyone else?**
|
27 |
|
28 |
+
* A real customer-centric live chat tool that is loved by 50,000 businesses around the world.
|
29 |
+
* Simple to setup and use.
|
30 |
+
* Nice interface with fully customizable chat widget.
|
31 |
+
* 24/7 technical support.
|
32 |
+
* Chat widget available in more than 40 languages*.
|
33 |
|
34 |
+
Just to name a few!
|
35 |
|
36 |
+
**Some Geeky Facts**
|
37 |
|
38 |
+
* Work across major browsers ( Internet Explorer 6+, Firefox, Google Chrome, Opera, Safar) and IMs (Gtalk / MSN / Yahoo! Messenger / AIM).
|
39 |
+
* Uptime averaged 99.8%.
|
40 |
+
* New HTML5 dashboard.
|
41 |
+
* iPhone application available.
|
42 |
+
* Integration seamlessly with Uservoice, Salesforce, Highrise, Batchbook, Zendesk and more.
|
43 |
|
44 |
+
Love to know more about the product? Please visit our <a href="https://www.zopim.com/product">website</a>.
|
45 |
|
46 |
+
What are you waiting for? Download Zopim Live Chat plugin now and <a href="https://www.zopim.com/?iref=wordpress_plugin#signup">sign up here</a> for a free account!
|
47 |
|
48 |
+
**See languages available, lovingly translated by Zopim users (in alphabetical order)**
|
|
|
|
|
49 |
|
50 |
* 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
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.2.2 =
|
55 |
+
* adds User Capability levels, allowing non-admins to use the plugin admin interface
|
56 |
+
* Admins can use add the following code
|
57 |
+
$role = get_role( 'editor' ); $role->add_cap( 'access_zopim' );
|
58 |
+
to their themes, or use the Members plugin (http://wordpress.org/extend/plugins/members/)
|
59 |
+
to give roles the 'access_zopim' capability.
|
60 |
+
|
61 |
+
= 1.2.1 =
|
62 |
+
* Uses wordpress http api for better linkup support with multiple transports
|
63 |
+
* Reduce name collisions in functions
|
64 |
+
* Adds compatibility to premiumpress theme
|
65 |
+
|
66 |
= 1.2.0 =
|
67 |
* Signup process is now linked to zopim.com as per Wordpress guidelines.
|
68 |
|
163 |
Though designed to work on most browsers, Zopim works best in the following environment: IE 6 or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
164 |
|
165 |
= I managed to install the plugin but cannot link up to Zopim. Why? =
|
166 |
+
The plugin tries to link up with zopim by connecting using a few approaches including PHP Curl. If the outgoing connections are blocked (eg. by a firewall), please request your server administrator.
|
167 |
|
168 |
Alternatively, you can also manually include the script in the footer file ("wp-content/themes/default/footer.php" in your wordpress installation).
|
169 |
|
171 |
|
172 |
The plugin comes with a free plan specially tailored for Wordpress users. Power users can purchase upgrade options anytime.
|
173 |
|
174 |
+
= How can I chat with more visitors at the same time? =
|
175 |
+
|
176 |
+
You can easily do so by upgrade to a better plan. To find out more about the plans and features we offer, please visit https://www.zopim.com/pricing
|
177 |
+
|
178 |
= Its just not working for me! HELP! =
|
179 |
|
180 |
+
Dont worry!! We are happy to assist! Just come on down to our site at http://www.zopim.com or leave an email for us at support@zopim.com and we will help you with installation.
|
181 |
|
182 |
== Usage ==
|
183 |
|
185 |
|
186 |
== Installation ==
|
187 |
|
188 |
+
*Server Requirements:* PHP4 or PHP5.
|
189 |
|
190 |
*Wordpress versions:* Wordpress 2.7 and up.
|
191 |
+
|
192 |
+
Step-by-step Guide:
|
193 |
+
|
194 |
+
* Install plugin from WordPress directory and activate it.
|
195 |
+
* Under Zopim Chat section, click on Account Setup to link up your Zopim account.
|
196 |
+
* Customize the chat widget to your preference.
|
197 |
+
* Navigate to IM Chat Bots to setup chat bots.
|
198 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
zopim.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
/*
|
4 |
Plugin Name: Zopim Widget
|
5 |
Plugin URI: http://www.zopim.com/?iref=wp_plugin
|
6 |
-
Description: Zopim
|
7 |
Author: Zopim
|
8 |
-
Version: 1.2.
|
9 |
Author URI: http://www.zopim.com/?iref=wp_plugin
|
10 |
*/
|
11 |
|
12 |
define('ZOPIM_SCRIPT_DOMAIN', "zopim.com");
|
13 |
define('ZOPIM_BASE_URL', "https://www.zopim.com/");
|
14 |
-
define('ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_BASE_URL."?iref=
|
15 |
define('ZOPIM_GETACCOUNTDETAILS_URL', ZOPIM_BASE_URL."plugins/getAccountDetails");
|
16 |
define('ZOPIM_SETDISPLAYNAME_URL', ZOPIM_BASE_URL."plugins/setDisplayName");
|
17 |
define('ZOPIM_IMINFO_URL', ZOPIM_BASE_URL."plugins/getImSetupInfo");
|
@@ -31,6 +31,14 @@ require_once dirname( __FILE__ ) . '/accountconfig.php';
|
|
31 |
require_once dirname( __FILE__ ) . '/customizewidget.php';
|
32 |
require_once dirname( __FILE__ ) . '/imintegration.php';
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
// We need some CSS to position the paragraph
|
35 |
function zopimme() {
|
36 |
global $current_user, $zopimshown;
|
@@ -106,35 +114,18 @@ type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
|
|
106 |
|
107 |
function zopim_create_menu() {
|
108 |
//create new top-level menu
|
109 |
-
add_menu_page('Account Configuration', 'Zopim Chat', '
|
110 |
|
111 |
-
// add_submenu_page('zopim_about', "About", "About", "
|
112 |
-
add_submenu_page('zopim_account_config', 'Account Configuration', 'Account Setup', '
|
113 |
-
add_submenu_page('zopim_account_config', 'Customize Widget', 'Customize', '
|
114 |
-
add_submenu_page('zopim_account_config', 'IM Integration', 'IM Chat Bots', '
|
115 |
-
add_submenu_page('zopim_account_config', 'Dashboard', 'Dashboard', '
|
116 |
|
117 |
//call register settings function
|
118 |
add_action( 'admin_init', 'register_zopim_plugin_settings' );
|
119 |
}
|
120 |
|
121 |
-
function check_zopimCode() {
|
122 |
-
/*
|
123 |
-
// if (get_option('zopimCode') == '' && ($_GET["page"] != "zopim_account_config")) {
|
124 |
-
if (ereg("zopim", $_GET["page"] )) {
|
125 |
-
//add_action( 'admin_notices', create_function( '', 'echo "<div class=\"error\"><p>" . sprintf( "Please <a href=\"%s\">input your Zopim account details</a>.", "admin.php?page=zopim_account_config" ) . "</p></div>";' ) );
|
126 |
-
add_action( 'admin_notices', create_function( '', 'echo "<div class=\"error\"><p>This Zopim plugin is a work in progress. We will launch on the 25th of January. Thank you for your interest.</p></div>";' ) );
|
127 |
-
}
|
128 |
-
*/
|
129 |
-
return false;
|
130 |
-
}
|
131 |
-
|
132 |
-
function zopim_loader() {
|
133 |
-
add_action( 'admin_menu', 'check_zopimCode' );
|
134 |
-
}
|
135 |
-
|
136 |
-
add_action( 'init', 'zopim_loader' );
|
137 |
-
|
138 |
function zopim_about() {
|
139 |
echo "about";
|
140 |
}
|
3 |
/*
|
4 |
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.2
|
9 |
Author URI: http://www.zopim.com/?iref=wp_plugin
|
10 |
*/
|
11 |
|
12 |
define('ZOPIM_SCRIPT_DOMAIN', "zopim.com");
|
13 |
define('ZOPIM_BASE_URL', "https://www.zopim.com/");
|
14 |
+
define('ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_BASE_URL."?iref=wp_plugin#signup");
|
15 |
define('ZOPIM_GETACCOUNTDETAILS_URL', ZOPIM_BASE_URL."plugins/getAccountDetails");
|
16 |
define('ZOPIM_SETDISPLAYNAME_URL', ZOPIM_BASE_URL."plugins/setDisplayName");
|
17 |
define('ZOPIM_IMINFO_URL', ZOPIM_BASE_URL."plugins/getImSetupInfo");
|
31 |
require_once dirname( __FILE__ ) . '/customizewidget.php';
|
32 |
require_once dirname( __FILE__ ) . '/imintegration.php';
|
33 |
|
34 |
+
function add_zopim_caps() {
|
35 |
+
$role = get_role( 'administrator' );
|
36 |
+
$role->add_cap( 'access_zopim' );
|
37 |
+
}
|
38 |
+
|
39 |
+
add_action( 'admin_init', 'add_zopim_caps');
|
40 |
+
|
41 |
+
|
42 |
// We need some CSS to position the paragraph
|
43 |
function zopimme() {
|
44 |
global $current_user, $zopimshown;
|
114 |
|
115 |
function zopim_create_menu() {
|
116 |
//create new top-level menu
|
117 |
+
add_menu_page('Account Configuration', 'Zopim Chat', 'access_zopim', 'zopim_account_config', 'zopim_account_config', ZOPIM_SMALL_LOGO);
|
118 |
|
119 |
+
// add_submenu_page('zopim_about', "About", "About", "access_zopim", 'zopim_about', 'zopim_about');
|
120 |
+
add_submenu_page('zopim_account_config', 'Account Configuration', 'Account Setup', 'access_zopim', 'zopim_account_config', 'zopim_account_config');
|
121 |
+
add_submenu_page('zopim_account_config', 'Customize Widget', 'Customize', 'access_zopim', 'zopim_customize_widget', 'zopim_customize_widget');
|
122 |
+
add_submenu_page('zopim_account_config', 'IM Integration', 'IM Chat Bots', 'access_zopim', 'zopim_instant_messaging', 'zopim_instant_messaging');
|
123 |
+
add_submenu_page('zopim_account_config', 'Dashboard', 'Dashboard', 'access_zopim', 'zopim_dashboard', 'zopim_dashboard');
|
124 |
|
125 |
//call register settings function
|
126 |
add_action( 'admin_init', 'register_zopim_plugin_settings' );
|
127 |
}
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
function zopim_about() {
|
130 |
echo "about";
|
131 |
}
|