Version Description
Download this release
Release Info
Developer | revechat |
Plugin | REVE Chat – WP Live Chat Support plugin |
Version | 6.1.8 |
Comparing to | |
See all releases |
Code changes from version 6.1.7 to 6.1.8
- assets/banner-772x250.png +0 -0
- assets/icon-128x128.png +0 -0
- assets/icon-256x256.png +0 -0
- screenshot-1.jpg → assets/screenshot-1.jpg +0 -0
- screenshot-2.jpg → assets/screenshot-2.jpg +0 -0
- screenshot-3.jpg → assets/screenshot-3.jpg +0 -0
- screenshot-4.jpg → assets/screenshot-4.jpg +0 -0
- screenshot-5.jpg → assets/screenshot-5.jpg +0 -0
- screenshot-6.jpg → assets/screenshot-6.jpg +0 -0
- screenshot-7.jpg → assets/screenshot-7.jpg +0 -0
- screenshot-8.jpg → assets/screenshot-8.jpg +0 -0
- screenshot-9.jpg → assets/screenshot-9.jpg +0 -0
- tags/1.2.2/assets/banner-772x250.png +0 -0
- tags/1.2.2/assets/icon-128x128.png +0 -0
- tags/1.2.2/assets/icon-256x256.png +0 -0
- tags/1.2.2/assets/screenshot-1.png +0 -0
- tags/1.2.2/assets/screenshot-2.png +0 -0
- tags/1.2.2/assets/screenshot-3.png +0 -0
- tags/1.2.2/assets/screenshot-4.png +0 -0
- tags/1.2.2/trunk/index.html +1 -0
- tags/1.2.2/trunk/readme.txt +1 -0
- tags/1.2.2/trunk/revechat.php +146 -0
- tags/1.2.2/trunk/screenshot-1.png +0 -0
- tags/1.2.2/trunk/screenshot-2.png +0 -0
- tags/1.2.2/trunk/screenshot-3.png +0 -0
- tags/1.2.2/trunk/screenshot-4.png +0 -0
- tags/1.2.3/index.html +1 -0
- tags/1.2.3/readme.txt +1 -0
- tags/1.2.3/revechat.php +125 -0
- tags/1.2.3/screenshot-1.png +0 -0
- tags/1.2.3/screenshot-2.png +0 -0
- tags/1.2.3/screenshot-3.png +0 -0
- tags/1.2.3/screenshot-4.png +0 -0
- tags/1.2.4/index.html +1 -0
- tags/1.2.4/readme.txt +1 -0
- tags/1.2.4/revechat.php +140 -0
- tags/1.2.4/screenshot-1.png +0 -0
- tags/1.2.4/screenshot-2.png +0 -0
- tags/1.2.4/screenshot-3.png +0 -0
- tags/1.2.4/screenshot-4.png +0 -0
- tags/2.0.0/css/admin-styles.css +106 -0
- {css → tags/2.0.0/css}/ajax_loader.gif +0 -0
- {images → tags/2.0.0/images}/favicon.png +0 -0
- {images → tags/2.0.0/images}/logo.png +0 -0
- tags/2.0.0/includes/choose-form.php +13 -0
- tags/2.0.0/includes/login-form.php +20 -0
- tags/2.0.0/includes/remove-form.php +9 -0
- tags/2.0.0/includes/signup-form.php +46 -0
- tags/2.0.0/index.html +1 -0
- tags/2.0.0/js/revechat-admin.js +189 -0
- tags/2.0.0/readme.txt +1 -0
- tags/2.0.0/revechat.php +162 -0
- tags/2.0.0/screenshot-1.png +0 -0
- tags/2.0.0/screenshot-2.png +0 -0
- tags/2.0.0/screenshot-3.png +0 -0
- tags/2.0.0/screenshot-4.png +0 -0
- tags/2.0.1/css/admin-styles.css +106 -0
- tags/2.0.1/css/ajax_loader.gif +0 -0
- tags/2.0.1/images/favicon.png +0 -0
- tags/2.0.1/images/logo.png +0 -0
- tags/2.0.1/includes/choose-form.php +13 -0
- tags/2.0.1/includes/login-form.php +20 -0
- tags/2.0.1/includes/remove-form.php +9 -0
- tags/2.0.1/includes/signup-form.php +46 -0
- tags/2.0.1/index.html +1 -0
- tags/2.0.1/js/revechat-admin.js +189 -0
- tags/2.0.1/readme.txt +201 -0
- tags/2.0.1/revechat.php +160 -0
- tags/2.0.1/screenshot-1.png +0 -0
- tags/2.0.1/screenshot-2.png +0 -0
- tags/2.0.1/screenshot-3.png +0 -0
- tags/2.0.1/screenshot-4.png +0 -0
- tags/2.0.2/css/admin-styles.css +113 -0
- tags/2.0.2/css/ajax_loader.gif +0 -0
- tags/2.0.2/images/favicon.png +0 -0
- tags/2.0.2/images/logo.png +0 -0
- tags/2.0.2/includes/choose-form.php +13 -0
- tags/2.0.2/includes/login-form.php +20 -0
- tags/2.0.2/includes/remove-form.php +23 -0
- tags/2.0.2/includes/signup-form.php +73 -0
- index.html → tags/2.0.2/index.html +0 -0
- tags/2.0.2/js/revechat-admin.js +222 -0
- tags/2.0.2/readme.txt +203 -0
- tags/2.0.2/revechat.php +162 -0
- tags/2.0.2/screenshot-1.png +0 -0
- tags/2.0.2/screenshot-2.png +0 -0
- tags/2.0.2/screenshot-3.png +0 -0
- tags/2.0.2/screenshot-4.png +0 -0
- {css → tags/2.0.3/css}/admin-styles.css +0 -0
- tags/2.0.3/css/ajax_loader.gif +0 -0
- tags/2.0.3/images/favicon.png +0 -0
- tags/2.0.3/images/logo.png +0 -0
- {includes → tags/2.0.3/includes}/choose-form.php +0 -0
- {includes → tags/2.0.3/includes}/login-form.php +0 -0
- tags/2.0.3/includes/remove-form.php +23 -0
- {includes → tags/2.0.3/includes}/signup-form.php +0 -0
- tags/2.0.3/index.html +1 -0
- tags/2.0.3/js/revechat-admin.js +220 -0
- tags/2.0.3/readme.txt +207 -0
- tags/2.0.3/revechat.php +162 -0
- tags/2.0.3/screenshot-1.jpg +0 -0
- tags/2.0.3/screenshot-2.jpg +0 -0
- tags/2.0.3/screenshot-3.jpg +0 -0
- tags/2.0.3/screenshot-4.jpg +0 -0
- tags/2.0.4/css/admin-styles.css +109 -0
- tags/2.0.4/css/ajax_loader.gif +0 -0
- tags/2.0.4/images/favicon.png +0 -0
- tags/2.0.4/images/logo.png +0 -0
- tags/2.0.4/includes/choose-form.php +13 -0
- tags/2.0.4/includes/login-form.php +23 -0
- tags/2.0.4/includes/remove-form.php +23 -0
- tags/2.0.4/includes/signup-form.php +75 -0
- tags/2.0.4/index.html +1 -0
- tags/2.0.4/js/revechat-admin.js +220 -0
- tags/2.0.4/readme.txt +213 -0
- tags/2.0.4/revechat.php +162 -0
- tags/2.0.4/screenshot-1.jpg +0 -0
- tags/2.0.4/screenshot-2.jpg +0 -0
- tags/2.0.4/screenshot-3.jpg +0 -0
- tags/2.0.4/screenshot-4.jpg +0 -0
- tags/2.0/css/admin-styles.css +106 -0
- tags/2.0/css/ajax_loader.gif +0 -0
- tags/2.0/images/favicon.png +0 -0
- tags/2.0/images/logo.png +0 -0
- tags/2.0/includes/choose-form.php +13 -0
- tags/2.0/includes/login-form.php +20 -0
- tags/2.0/includes/remove-form.php +9 -0
- tags/2.0/includes/signup-form.php +46 -0
- tags/2.0/index.html +1 -0
- tags/2.0/js/revechat-admin.js +189 -0
- tags/2.0/readme.txt +201 -0
- tags/2.0/revechat.php +162 -0
- tags/2.0/screenshot-1.png +0 -0
- tags/2.0/screenshot-2.png +0 -0
- tags/2.0/screenshot-3.png +0 -0
- tags/2.0/screenshot-4.png +0 -0
- tags/3.0/css/admin-styles.css +109 -0
- tags/3.0/css/ajax_loader.gif +0 -0
- tags/3.0/images/favicon.png +0 -0
- tags/3.0/images/logo.png +0 -0
- tags/3.0/includes/choose-form.php +13 -0
- tags/3.0/includes/login-form.php +23 -0
- tags/3.0/includes/remove-form.php +23 -0
- tags/3.0/includes/signup-form.php +75 -0
- tags/3.0/index.html +1 -0
- tags/3.0/js/revechat-admin.js +228 -0
- tags/3.0/readme.txt +214 -0
- tags/3.0/revechat.php +162 -0
- tags/3.0/screenshot-1.jpg +0 -0
- tags/3.0/screenshot-2.jpg +0 -0
- tags/3.0/screenshot-3.jpg +0 -0
- tags/3.0/screenshot-4.jpg +0 -0
- tags/4.0/css/admin-styles.css +109 -0
- tags/4.0/css/ajax_loader.gif +0 -0
- tags/4.0/images/favicon.png +0 -0
- tags/4.0/images/logo.png +0 -0
- tags/4.0/includes/choose-form.php +13 -0
- tags/4.0/includes/login-form.php +23 -0
- {includes → tags/4.0/includes}/remove-form.php +0 -0
- tags/4.0/includes/signup-form.php +75 -0
- tags/4.0/index.html +1 -0
- {js → tags/4.0/js}/revechat-admin.js +0 -0
- tags/4.0/readme.txt +209 -0
- tags/4.0/revechat.php +166 -0
- tags/4.0/screenshot-1.jpg +0 -0
- tags/4.0/screenshot-2.jpg +0 -0
- tags/4.0/screenshot-3.jpg +0 -0
- tags/4.0/screenshot-4.jpg +0 -0
- tags/4.0/screenshot-5.jpg +0 -0
- tags/4.0/screenshot-6.jpg +0 -0
- tags/4.0/screenshot-7.jpg +0 -0
- tags/4.0/screenshot-8.jpg +0 -0
- tags/4.0/screenshot-9.jpg +0 -0
- tags/5.0/css/admin-styles.css +109 -0
- tags/5.0/css/ajax_loader.gif +0 -0
- tags/5.0/images/favicon.png +0 -0
- tags/5.0/images/logo.png +0 -0
- tags/5.0/includes/choose-form.php +13 -0
- tags/5.0/includes/login-form.php +23 -0
- tags/5.0/includes/remove-form.php +10 -0
- tags/5.0/includes/signup-form.php +75 -0
- tags/5.0/index.html +1 -0
- tags/5.0/js/revechat-admin.js +208 -0
- tags/5.0/readme.txt +209 -0
- tags/5.0/revechat.php +203 -0
- tags/5.0/screenshot-1.jpg +0 -0
- tags/5.0/screenshot-2.jpg +0 -0
- tags/5.0/screenshot-3.jpg +0 -0
- tags/5.0/screenshot-4.jpg +0 -0
- tags/5.0/screenshot-5.jpg +0 -0
- tags/5.0/screenshot-6.jpg +0 -0
- tags/5.0/screenshot-7.jpg +0 -0
- tags/5.0/screenshot-8.jpg +0 -0
- tags/5.0/screenshot-9.jpg +0 -0
- tags/6.1.0/css/admin-styles.css +109 -0
- tags/6.1.0/css/ajax_loader.gif +0 -0
- tags/6.1.0/images/favicon.png +0 -0
- tags/6.1.0/images/logo.png +0 -0
- tags/6.1.0/includes/choose-form.php +13 -0
- tags/6.1.0/includes/login-form.php +23 -0
- tags/6.1.0/includes/remove-form.php +10 -0
- tags/6.1.0/includes/signup-form.php +75 -0
- tags/6.1.0/index.html +1 -0
- tags/6.1.0/js/revechat-admin.js +208 -0
- tags/6.1.0/readme.txt +219 -0
- revechat.php → tags/6.1.0/revechat.php +0 -0
- tags/6.1.0/screenshot-1.jpg +0 -0
- tags/6.1.0/screenshot-2.jpg +0 -0
- tags/6.1.0/screenshot-3.jpg +0 -0
- tags/6.1.0/screenshot-4.jpg +0 -0
- tags/6.1.0/screenshot-5.jpg +0 -0
- tags/6.1.0/screenshot-6.jpg +0 -0
- tags/6.1.0/screenshot-7.jpg +0 -0
- tags/6.1.0/screenshot-8.jpg +0 -0
- tags/6.1.0/screenshot-9.jpg +0 -0
- tags/6.1.1/css/admin-styles.css +109 -0
- tags/6.1.1/css/ajax_loader.gif +0 -0
- tags/6.1.1/images/favicon.png +0 -0
- tags/6.1.1/images/logo.png +0 -0
- tags/6.1.1/includes/choose-form.php +13 -0
- tags/6.1.1/includes/login-form.php +23 -0
- tags/6.1.1/includes/remove-form.php +10 -0
- tags/6.1.1/includes/signup-form.php +75 -0
- tags/6.1.1/index.html +1 -0
- tags/6.1.1/js/revechat-admin.js +208 -0
- tags/6.1.1/readme.txt +165 -0
- tags/6.1.1/revechat.php +203 -0
- tags/6.1.1/screenshot-1.jpg +0 -0
- tags/6.1.1/screenshot-2.jpg +0 -0
- tags/6.1.1/screenshot-3.jpg +0 -0
- tags/6.1.1/screenshot-4.jpg +0 -0
- tags/6.1.1/screenshot-5.jpg +0 -0
- tags/6.1.1/screenshot-6.jpg +0 -0
- tags/6.1.1/screenshot-7.jpg +0 -0
- tags/6.1.1/screenshot-8.jpg +0 -0
- tags/6.1.1/screenshot-9.jpg +0 -0
- tags/6.1.2/css/admin-styles.css +109 -0
- tags/6.1.2/css/ajax_loader.gif +0 -0
- tags/6.1.2/images/favicon.png +0 -0
- tags/6.1.2/images/logo.png +0 -0
- tags/6.1.2/includes/choose-form.php +13 -0
- tags/6.1.2/includes/login-form.php +23 -0
- tags/6.1.2/includes/remove-form.php +10 -0
- tags/6.1.2/includes/signup-form.php +75 -0
- tags/6.1.2/index.html +1 -0
- tags/6.1.2/js/revechat-admin.js +208 -0
- tags/6.1.2/readme.txt +165 -0
- tags/6.1.2/revechat.php +203 -0
- tags/6.1.2/screenshot-1.jpg +0 -0
- tags/6.1.2/screenshot-2.jpg +0 -0
- tags/6.1.2/screenshot-3.jpg +0 -0
- tags/6.1.2/screenshot-4.jpg +0 -0
- tags/6.1.2/screenshot-5.jpg +0 -0
- tags/6.1.2/screenshot-6.jpg +0 -0
- tags/6.1.2/screenshot-7.jpg +0 -0
- tags/6.1.2/screenshot-8.jpg +0 -0
- tags/6.1.2/screenshot-9.jpg +0 -0
- tags/6.1.3/css/admin-styles.css +109 -0
- tags/6.1.3/css/ajax_loader.gif +0 -0
- tags/6.1.3/images/favicon.png +0 -0
- tags/6.1.3/images/logo.png +0 -0
- tags/6.1.3/includes/choose-form.php +13 -0
- tags/6.1.3/includes/login-form.php +23 -0
- tags/6.1.3/includes/remove-form.php +10 -0
- tags/6.1.3/includes/signup-form.php +75 -0
- tags/6.1.3/index.html +1 -0
- tags/6.1.3/js/revechat-admin.js +208 -0
- tags/6.1.3/readme.txt +178 -0
- tags/6.1.3/revechat.php +203 -0
- tags/6.1.3/screenshot-1.jpg +0 -0
- tags/6.1.3/screenshot-2.jpg +0 -0
- tags/6.1.3/screenshot-3.jpg +0 -0
- tags/6.1.3/screenshot-4.jpg +0 -0
- tags/6.1.3/screenshot-5.jpg +0 -0
- tags/6.1.3/screenshot-6.jpg +0 -0
- tags/6.1.3/screenshot-7.jpg +0 -0
- tags/6.1.3/screenshot-8.jpg +0 -0
- tags/6.1.3/screenshot-9.jpg +0 -0
- tags/6.1.5/css/admin-styles.css +109 -0
- tags/6.1.5/css/ajax_loader.gif +0 -0
- tags/6.1.5/images/favicon.png +0 -0
- tags/6.1.5/images/logo.png +0 -0
- tags/6.1.5/includes/choose-form.php +13 -0
- tags/6.1.5/includes/login-form.php +23 -0
- tags/6.1.5/includes/remove-form.php +10 -0
- tags/6.1.5/includes/signup-form.php +75 -0
- tags/6.1.5/index.html +1 -0
- tags/6.1.5/js/revechat-admin.js +208 -0
- tags/6.1.5/readme.txt +181 -0
- tags/6.1.5/revechat.php +203 -0
- tags/6.1.5/screenshot-1.jpg +0 -0
- tags/6.1.5/screenshot-2.jpg +0 -0
- tags/6.1.5/screenshot-3.jpg +0 -0
- tags/6.1.5/screenshot-4.jpg +0 -0
- tags/6.1.5/screenshot-5.jpg +0 -0
- tags/6.1.5/screenshot-6.jpg +0 -0
- tags/6.1.5/screenshot-7.jpg +0 -0
- tags/6.1.5/screenshot-8.jpg +0 -0
- tags/6.1.5/screenshot-9.jpg +0 -0
- tags/6.1.6/css/admin-styles.css +109 -0
- tags/6.1.6/css/ajax_loader.gif +0 -0
- tags/6.1.6/images/favicon.png +0 -0
- tags/6.1.6/images/logo.png +0 -0
- tags/6.1.6/includes/choose-form.php +13 -0
- tags/6.1.6/includes/login-form.php +23 -0
- tags/6.1.6/includes/remove-form.php +10 -0
- tags/6.1.6/includes/signup-form.php +75 -0
- tags/6.1.6/index.html +1 -0
- tags/6.1.6/js/revechat-admin.js +208 -0
- tags/6.1.6/readme.txt +190 -0
- tags/6.1.6/revechat.php +203 -0
- tags/6.1.6/screenshot-1.jpg +0 -0
- tags/6.1.6/screenshot-2.jpg +0 -0
- tags/6.1.6/screenshot-3.jpg +0 -0
- tags/6.1.6/screenshot-4.jpg +0 -0
- tags/6.1.6/screenshot-5.jpg +0 -0
- tags/6.1.6/screenshot-6.jpg +0 -0
- tags/6.1.6/screenshot-7.jpg +0 -0
- tags/6.1.6/screenshot-8.jpg +0 -0
- tags/6.1.6/screenshot-9.jpg +0 -0
- tags/6.1.7/css/admin-styles.css +109 -0
- tags/6.1.7/css/ajax_loader.gif +0 -0
- tags/6.1.7/images/favicon.png +0 -0
- tags/6.1.7/images/logo.png +0 -0
- tags/6.1.7/includes/choose-form.php +13 -0
- tags/6.1.7/includes/login-form.php +23 -0
- tags/6.1.7/includes/remove-form.php +10 -0
- tags/6.1.7/includes/signup-form.php +75 -0
- tags/6.1.7/index.html +1 -0
- tags/6.1.7/js/revechat-admin.js +208 -0
- readme.txt → tags/6.1.7/readme.txt +0 -0
- tags/6.1.7/revechat.php +203 -0
- tags/6.1.7/screenshot-1.jpg +0 -0
- tags/6.1.7/screenshot-2.jpg +0 -0
- tags/6.1.7/screenshot-3.jpg +0 -0
- tags/6.1.7/screenshot-4.jpg +0 -0
- tags/6.1.7/screenshot-5.jpg +0 -0
- tags/6.1.7/screenshot-6.jpg +0 -0
- tags/6.1.7/screenshot-7.jpg +0 -0
- tags/6.1.7/screenshot-8.jpg +0 -0
- tags/6.1.7/screenshot-9.jpg +0 -0
- tags/6.1/css/admin-styles.css +109 -0
- tags/6.1/css/ajax_loader.gif +0 -0
- tags/6.1/images/favicon.png +0 -0
- tags/6.1/images/logo.png +0 -0
- tags/6.1/includes/choose-form.php +13 -0
- tags/6.1/includes/login-form.php +23 -0
- tags/6.1/includes/remove-form.php +10 -0
- tags/6.1/includes/signup-form.php +75 -0
- tags/6.1/index.html +1 -0
- tags/6.1/js/revechat-admin.js +208 -0
- tags/6.1/readme.txt +219 -0
- tags/6.1/revechat.php +203 -0
- tags/6.1/screenshot-1.jpg +0 -0
- tags/6.1/screenshot-2.jpg +0 -0
- tags/6.1/screenshot-3.jpg +0 -0
- tags/6.1/screenshot-4.jpg +0 -0
- tags/6.1/screenshot-5.jpg +0 -0
- tags/6.1/screenshot-6.jpg +0 -0
- tags/6.1/screenshot-7.jpg +0 -0
- tags/6.1/screenshot-8.jpg +0 -0
- tags/6.1/screenshot-9.jpg +0 -0
- trunk/css/admin-styles.css +109 -0
- trunk/css/ajax_loader.gif +0 -0
- trunk/images/favicon.png +0 -0
- trunk/images/logo.png +0 -0
- trunk/includes/choose-form.php +13 -0
- trunk/includes/login-form.php +23 -0
- trunk/includes/remove-form.php +10 -0
- trunk/includes/signup-form.php +75 -0
- trunk/index.html +1 -0
- trunk/js/revechat-admin.js +208 -0
- trunk/readme.txt +190 -0
- trunk/revechat.php +203 -0
- trunk/screenshot-1.jpg +0 -0
- trunk/screenshot-2.jpg +0 -0
- trunk/screenshot-3.jpg +0 -0
- trunk/screenshot-4.jpg +0 -0
- trunk/screenshot-5.jpg +0 -0
- trunk/screenshot-6.jpg +0 -0
- trunk/screenshot-7.jpg +0 -0
- trunk/screenshot-8.jpg +0 -0
- trunk/screenshot-9.jpg +0 -0
assets/banner-772x250.png
ADDED
Binary file
|
assets/icon-128x128.png
ADDED
Binary file
|
assets/icon-256x256.png
ADDED
Binary file
|
screenshot-1.jpg → assets/screenshot-1.jpg
RENAMED
File without changes
|
screenshot-2.jpg → assets/screenshot-2.jpg
RENAMED
File without changes
|
screenshot-3.jpg → assets/screenshot-3.jpg
RENAMED
File without changes
|
screenshot-4.jpg → assets/screenshot-4.jpg
RENAMED
File without changes
|
screenshot-5.jpg → assets/screenshot-5.jpg
RENAMED
File without changes
|
screenshot-6.jpg → assets/screenshot-6.jpg
RENAMED
File without changes
|
screenshot-7.jpg → assets/screenshot-7.jpg
RENAMED
File without changes
|
screenshot-8.jpg → assets/screenshot-8.jpg
RENAMED
File without changes
|
screenshot-9.jpg → assets/screenshot-9.jpg
RENAMED
File without changes
|
tags/1.2.2/assets/banner-772x250.png
ADDED
Binary file
|
tags/1.2.2/assets/icon-128x128.png
ADDED
Binary file
|
tags/1.2.2/assets/icon-256x256.png
ADDED
Binary file
|
tags/1.2.2/assets/screenshot-1.png
ADDED
Binary file
|
tags/1.2.2/assets/screenshot-2.png
ADDED
Binary file
|
tags/1.2.2/assets/screenshot-3.png
ADDED
Binary file
|
tags/1.2.2/assets/screenshot-4.png
ADDED
Binary file
|
tags/1.2.2/trunk/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/1.2.2/trunk/readme.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
0 |
|
1 |
|
1 |
+
=== Reve Chat ===
|
2 |
|
3 |
|
tags/1.2.2/trunk/revechat.php
ADDED
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 1.2.2
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '1.1.1';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
} // END public function __construct
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Activate the frontendHeader
|
34 |
+
*/
|
35 |
+
public static function frontendHeader()
|
36 |
+
{
|
37 |
+
$aid = get_option('revechat_accountid' , '');
|
38 |
+
$trackingID = get_option('revechat_trackingid' , '');
|
39 |
+
|
40 |
+
if( (isset($aid) && !empty($aid)) && (isset($trackingID) && !empty($trackingID)) ) {
|
41 |
+
|
42 |
+
$script = "<script type='text/javascript'>";
|
43 |
+
$script .= ' var url = "https://static.revechat.com/client/scripts/configuration.js";
|
44 |
+
var trackingID ="'.$trackingID.'"
|
45 |
+
function initializeWidget(){
|
46 |
+
var aid="'.$aid.'";
|
47 |
+
new ReveChatWidget(aid);
|
48 |
+
var trackingID ="'.$trackingID.'";}
|
49 |
+
(function loadSrc(src_url, onload_callback){
|
50 |
+
var script = document.createElement("script");
|
51 |
+
if(script.readyState){
|
52 |
+
script.onreadystatechange = function (){
|
53 |
+
if(script.readyState === "loaded" || script.readyState === "complete"){
|
54 |
+
script.onreadystatechange = null
|
55 |
+
onload_callback();}}
|
56 |
+
} else {
|
57 |
+
script.onload = function(){
|
58 |
+
onload_callback();
|
59 |
+
} }
|
60 |
+
script.src = src_url;
|
61 |
+
var first_script = document.getElementsByTagName("script")[0];
|
62 |
+
first_script.parentNode.insertBefore(script, first_script);
|
63 |
+
})(url, initializeWidget);
|
64 |
+
<!-- Add textArea code at every page in your website -->';
|
65 |
+
|
66 |
+
$script .='</script>';
|
67 |
+
|
68 |
+
echo $script ;
|
69 |
+
|
70 |
+
}
|
71 |
+
|
72 |
+
} // END public static function activate
|
73 |
+
/*
|
74 |
+
* show parameter section
|
75 |
+
*/
|
76 |
+
public function registerSettings(){
|
77 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
78 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
79 |
+
}
|
80 |
+
/*
|
81 |
+
* admin panel
|
82 |
+
*/
|
83 |
+
public function adminPanels(){
|
84 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
85 |
+
// Add a new submenu under Settings:
|
86 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
87 |
+
}
|
88 |
+
/*
|
89 |
+
* revechat options
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
$trackingId = 'revechat_trackingid';
|
98 |
+
|
99 |
+
// Read in existing option value from database
|
100 |
+
$val_accountId = get_option( $accountId );
|
101 |
+
$val_trackingId = get_option( $trackingId );
|
102 |
+
|
103 |
+
if( isset($_POST[ $accountId ]) && isset($_POST[ $trackingId ] ) ){
|
104 |
+
|
105 |
+
// Read in existing option value from POST
|
106 |
+
$val_accountId = $_POST[ $accountId ];
|
107 |
+
$val_trackingId = $_POST[ $trackingId ];
|
108 |
+
update_option( $accountId , $val_accountId );
|
109 |
+
update_option( $trackingId , $val_trackingId );
|
110 |
+
?>
|
111 |
+
<div class="updated"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
112 |
+
<?php
|
113 |
+
}
|
114 |
+
?>
|
115 |
+
<div class="wrap">
|
116 |
+
<?php echo "<h2>" . __( 'ReveChat Plugin Settings', 'revechat-menu' ) . "</h2>"; ?>
|
117 |
+
<form name="form1" method="post" action="">
|
118 |
+
|
119 |
+
|
120 |
+
<p><?php _e("Account ID", 'revechat-menu' ); ?>
|
121 |
+
<input type="text" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" size="20">
|
122 |
+
</p><hr />
|
123 |
+
<p><?php _e("Tracking ID", 'revechat-menu' ); ?>
|
124 |
+
<input type="text" name="<?php echo $trackingId; ?>" value="<?php echo $val_trackingId; ?>" size="20">
|
125 |
+
</p><hr />
|
126 |
+
|
127 |
+
<p class="submit">
|
128 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
129 |
+
</p>
|
130 |
+
|
131 |
+
</form>
|
132 |
+
</div>
|
133 |
+
|
134 |
+
<?php
|
135 |
+
}
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Deactivate the plugin
|
139 |
+
*/
|
140 |
+
public static function deactivate()
|
141 |
+
{
|
142 |
+
// Do nothing
|
143 |
+
} // END public static function deactivate
|
144 |
+
} // END class WP_Plugin_Revechat
|
145 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
146 |
+
$revechat = new WP_Plugin_Revechat ;
|
tags/1.2.2/trunk/screenshot-1.png
ADDED
Binary file
|
tags/1.2.2/trunk/screenshot-2.png
ADDED
Binary file
|
tags/1.2.2/trunk/screenshot-3.png
ADDED
Binary file
|
tags/1.2.2/trunk/screenshot-4.png
ADDED
Binary file
|
tags/1.2.3/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/1.2.3/readme.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
0 |
|
1 |
|
1 |
+
=== Reve Chat ===
|
2 |
|
3 |
|
tags/1.2.3/revechat.php
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 1.2.3
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '1.1.1';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
} // END public function __construct
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Activate the frontendHeader
|
34 |
+
*/
|
35 |
+
public static function frontendHeader()
|
36 |
+
{
|
37 |
+
$accountId = get_option('revechat_accountid' , '');
|
38 |
+
//$trackingID = get_option('revechat_trackingid' , '');
|
39 |
+
|
40 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
41 |
+
|
42 |
+
$script = "<script type='text/javascript'>";
|
43 |
+
$script .= ';!function(){function e(){var e="'.$accountId.'";new ReveChatWidget(e)}var t=document.createElement("script");t.readyState?t.onreadystatechange=function(){("loaded"===t.readyState||"complete"===t.readyState)&&(t.onreadystatechange=null,e())}:t.onload=function(){e()},t.src="https://static.revechat.com/client/scripts/configuration.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(t,a)}();';
|
44 |
+
|
45 |
+
$script .='</script>';
|
46 |
+
|
47 |
+
echo $script ;
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
} // END public static function activate
|
52 |
+
/*
|
53 |
+
* show parameter section
|
54 |
+
*/
|
55 |
+
public function registerSettings(){
|
56 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
57 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
58 |
+
}
|
59 |
+
/*
|
60 |
+
* admin panel
|
61 |
+
*/
|
62 |
+
public function adminPanels(){
|
63 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
64 |
+
// Add a new submenu under Settings:
|
65 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
66 |
+
}
|
67 |
+
/*
|
68 |
+
* revechat options
|
69 |
+
*/
|
70 |
+
public function reveChatOptions(){
|
71 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
72 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
73 |
+
}
|
74 |
+
// variables for the field and option names
|
75 |
+
$accountId = 'revechat_accountid';
|
76 |
+
$trackingId = 'revechat_trackingid';
|
77 |
+
|
78 |
+
// Read in existing option value from database
|
79 |
+
$val_accountId = get_option( $accountId );
|
80 |
+
$val_trackingId = get_option( $trackingId );
|
81 |
+
|
82 |
+
if( isset($_POST[ $accountId ]) && isset($_POST[ $trackingId ] ) ){
|
83 |
+
|
84 |
+
// Read in existing option value from POST
|
85 |
+
$val_accountId = $_POST[ $accountId ];
|
86 |
+
$val_trackingId = $_POST[ $trackingId ];
|
87 |
+
update_option( $accountId , $val_accountId );
|
88 |
+
update_option( $trackingId , $val_trackingId );
|
89 |
+
?>
|
90 |
+
<div class="updated"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
91 |
+
<?php
|
92 |
+
}
|
93 |
+
?>
|
94 |
+
<div class="wrap">
|
95 |
+
<?php echo "<h2>" . __( 'ReveChat Plugin Settings', 'revechat-menu' ) . "</h2>"; ?>
|
96 |
+
<form name="form1" method="post" action="">
|
97 |
+
|
98 |
+
|
99 |
+
<p><?php _e("Account ID", 'revechat-menu' ); ?>
|
100 |
+
<input type="text" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" size="20">
|
101 |
+
</p><hr />
|
102 |
+
<p><?php _e("Tracking ID", 'revechat-menu' ); ?>
|
103 |
+
<input type="text" name="<?php echo $trackingId; ?>" value="<?php echo $val_trackingId; ?>" size="20">
|
104 |
+
</p><hr />
|
105 |
+
|
106 |
+
<p class="submit">
|
107 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
108 |
+
</p>
|
109 |
+
|
110 |
+
</form>
|
111 |
+
</div>
|
112 |
+
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Deactivate the plugin
|
118 |
+
*/
|
119 |
+
public static function deactivate()
|
120 |
+
{
|
121 |
+
// Do nothing
|
122 |
+
} // END public static function deactivate
|
123 |
+
} // END class WP_Plugin_Revechat
|
124 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
125 |
+
$revechat = new WP_Plugin_Revechat ;
|
tags/1.2.3/screenshot-1.png
ADDED
Binary file
|
tags/1.2.3/screenshot-2.png
ADDED
Binary file
|
tags/1.2.3/screenshot-3.png
ADDED
Binary file
|
tags/1.2.3/screenshot-4.png
ADDED
Binary file
|
tags/1.2.4/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/1.2.4/readme.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
0 |
|
1 |
|
1 |
+
=== Reve Chat ===
|
2 |
|
3 |
|
tags/1.2.4/revechat.php
ADDED
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 1.2.4
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '1.2.4';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
} // END public function __construct
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Activate the frontendHeader
|
36 |
+
*/
|
37 |
+
public static function frontendHeader()
|
38 |
+
{
|
39 |
+
$accountId = get_option('revechat_accountid' , '');
|
40 |
+
//$trackingID = get_option('revechat_trackingid' , '');
|
41 |
+
|
42 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
43 |
+
|
44 |
+
$script = "<script type='text/javascript'>";
|
45 |
+
|
46 |
+
$script .= "window.__revechat_account = window.__revechat_account || {};
|
47 |
+
window.__revechat_account = '".$accountId."';
|
48 |
+
(function() {
|
49 |
+
var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
|
50 |
+
rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
|
51 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})();";
|
53 |
+
$script .='</script>';
|
54 |
+
|
55 |
+
echo $script ;
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
+
} // END public static function activate
|
60 |
+
/*
|
61 |
+
* show parameter section
|
62 |
+
*/
|
63 |
+
public function registerSettings(){
|
64 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
65 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
66 |
+
}
|
67 |
+
/*
|
68 |
+
* admin panel
|
69 |
+
*/
|
70 |
+
public function adminPanels(){
|
71 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
72 |
+
// Add a new submenu under Settings:
|
73 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
74 |
+
}
|
75 |
+
/*
|
76 |
+
* revechat options
|
77 |
+
*/
|
78 |
+
public function reveChatOptions(){
|
79 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
80 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
81 |
+
}
|
82 |
+
// variables for the field and option names
|
83 |
+
$accountId = 'revechat_accountid';
|
84 |
+
$trackingId = 'revechat_trackingid';
|
85 |
+
|
86 |
+
// Read in existing option value from database
|
87 |
+
$val_accountId = get_option( $accountId );
|
88 |
+
$val_trackingId = get_option( $trackingId );
|
89 |
+
|
90 |
+
if( isset($_POST[ $accountId ]) && isset($_POST[ $trackingId ] ) ){
|
91 |
+
|
92 |
+
// Read in existing option value from POST
|
93 |
+
$val_accountId = $_POST[ $accountId ];
|
94 |
+
$val_trackingId = $_POST[ $trackingId ];
|
95 |
+
update_option( $accountId , $val_accountId );
|
96 |
+
update_option( $trackingId , $val_trackingId );
|
97 |
+
?>
|
98 |
+
<div class="updated"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
99 |
+
<?php
|
100 |
+
}
|
101 |
+
?>
|
102 |
+
<div class="wrap">
|
103 |
+
<?php echo "<h2>" . __( 'ReveChat Plugin Settings', 'revechat-menu' ) . "</h2>"; ?>
|
104 |
+
<form name="form1" method="post" action="">
|
105 |
+
|
106 |
+
|
107 |
+
<p><?php _e("Account ID", 'revechat-menu' ); ?>
|
108 |
+
<input type="text" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" size="20">
|
109 |
+
</p><hr />
|
110 |
+
<p><?php _e("Tracking ID", 'revechat-menu' ); ?>
|
111 |
+
<input type="text" name="<?php echo $trackingId; ?>" value="<?php echo $val_trackingId; ?>" size="20">
|
112 |
+
</p><hr />
|
113 |
+
|
114 |
+
<p class="submit">
|
115 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
116 |
+
</p>
|
117 |
+
|
118 |
+
</form>
|
119 |
+
</div>
|
120 |
+
|
121 |
+
<?php
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Deactivate the plugin
|
126 |
+
*/
|
127 |
+
public static function deactivate()
|
128 |
+
{
|
129 |
+
// Do nothing
|
130 |
+
} // END public static function deactivate
|
131 |
+
|
132 |
+
function add_action_links ( $links ) {
|
133 |
+
$menu_link = array(
|
134 |
+
'<a href="' . admin_url( 'options-general.php?page=revechatsettings' ) . '">Settings</a>',
|
135 |
+
);
|
136 |
+
return array_merge( $links, $menu_link );
|
137 |
+
}
|
138 |
+
} // END class WP_Plugin_Revechat
|
139 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
140 |
+
$revechat = new WP_Plugin_Revechat ;
|
tags/1.2.4/screenshot-1.png
ADDED
Binary file
|
tags/1.2.4/screenshot-2.png
ADDED
Binary file
|
tags/1.2.4/screenshot-3.png
ADDED
Binary file
|
tags/1.2.4/screenshot-4.png
ADDED
Binary file
|
tags/2.0.0/css/admin-styles.css
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat #edit-choose-form h3,
|
2 |
+
#revechat #revechat_already_have h3,
|
3 |
+
#revechat #revechat_new_account h3{
|
4 |
+
color: coral;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form{}
|
7 |
+
#revechat ul#revechat_choose_form li{
|
8 |
+
list-style: none;
|
9 |
+
display: block;
|
10 |
+
}
|
11 |
+
#revechat ul#revechat_choose_form li label{
|
12 |
+
display: inline-block;
|
13 |
+
}
|
14 |
+
#revechat .revechat_email_error{
|
15 |
+
color: red;
|
16 |
+
}
|
17 |
+
#revechat .ajax_message {
|
18 |
+
display: none;
|
19 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
20 |
+
padding: 0;
|
21 |
+
margin-top: 1em;
|
22 |
+
}
|
23 |
+
#revechat .ajax_message.wait,
|
24 |
+
#revechat .ajax_message.message
|
25 |
+
{
|
26 |
+
display: block;
|
27 |
+
font-size: 1.2em;
|
28 |
+
padding: 20px;
|
29 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
30 |
+
}
|
31 |
+
#revechat .ajax_message.wait {
|
32 |
+
text-indent: 28px;
|
33 |
+
background-color: #fff;
|
34 |
+
}
|
35 |
+
#revechat .ajax_message.message {
|
36 |
+
background-image: none;
|
37 |
+
text-indent: 0px;
|
38 |
+
}
|
39 |
+
|
40 |
+
#revechat .ajax_message.message.alert{
|
41 |
+
background-color: #f2dede;
|
42 |
+
border-color: #ebccd1;
|
43 |
+
color: #a94442;
|
44 |
+
padding: 20px;
|
45 |
+
}
|
46 |
+
#revechat .revechat_success_message{
|
47 |
+
background: #ffffff;
|
48 |
+
padding: 50px;
|
49 |
+
height: auto;
|
50 |
+
font-size: 1.5em;
|
51 |
+
border-bottom: 5px solid #F16915;
|
52 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
53 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
}
|
56 |
+
#revechat .revechat_success_message h3{
|
57 |
+
font-weight: bold;
|
58 |
+
border-bottom: 1px solid #B1B4B9;
|
59 |
+
padding-bottom: 20px;
|
60 |
+
line-height: 2em;
|
61 |
+
}
|
62 |
+
#revechat .messages.revechat_success{
|
63 |
+
background-color: #dff0d8;
|
64 |
+
border: 1px solid #bee99a;
|
65 |
+
color: #3c763d;
|
66 |
+
padding: 20px;
|
67 |
+
margin-bottom: 30px;
|
68 |
+
font-weight: 600;
|
69 |
+
}
|
70 |
+
#revechat .form-submit{
|
71 |
+
background: #FF5800 none repeat scroll 0 0;
|
72 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
73 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
74 |
+
box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
color: #fff;
|
76 |
+
text-decoration: none;
|
77 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
78 |
+
}
|
79 |
+
|
80 |
+
#revechat #revechat-admin-settings-form {
|
81 |
+
padding: 18px;
|
82 |
+
}
|
83 |
+
#revechat fieldset {
|
84 |
+
border: 1px solid #c0c0c0;
|
85 |
+
margin-top: 20px;
|
86 |
+
}
|
87 |
+
#revechat #revechat_already_have > h3 {
|
88 |
+
margin-top: 19px;
|
89 |
+
}
|
90 |
+
#revechat ul#revechat_choose_form li {
|
91 |
+
display: block;
|
92 |
+
list-style: outside none none;
|
93 |
+
padding-left: 20px;
|
94 |
+
}
|
95 |
+
#revechat .form-wrapper {
|
96 |
+
padding: 16px;
|
97 |
+
padding-bottom: 31px;
|
98 |
+
}
|
99 |
+
#revechat .form-item > label {
|
100 |
+
display: table;
|
101 |
+
margin-bottom: 11px;
|
102 |
+
margin-top: 20px;
|
103 |
+
}
|
104 |
+
#revechat input.form-submit{
|
105 |
+
cursor: pointer;
|
106 |
+
}
|
{css → tags/2.0.0/css}/ajax_loader.gif
RENAMED
File without changes
|
{images → tags/2.0.0/images}/favicon.png
RENAMED
File without changes
|
{images → tags/2.0.0/images}/logo.png
RENAMED
File without changes
|
tags/2.0.0/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form">
|
2 |
+
<h3>Already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/2.0.0/includes/login-form.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat Login Email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
</div><!-- revechat_already_have -->
|
tags/2.0.0/includes/remove-form.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div>
|
2 |
+
<div class="messages revechat_success">REVE Chat
|
3 |
+
is already installed.</div>
|
4 |
+
|
5 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
6 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
7 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
8 |
+
</div>
|
9 |
+
</div>
|
tags/2.0.0/includes/signup-form.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-name">
|
8 |
+
<?php
|
9 |
+
_e("Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="name" id="edit-name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
<tr>
|
19 |
+
<th>
|
20 |
+
<label for="edit-email">
|
21 |
+
<?php
|
22 |
+
_e('Email')
|
23 |
+
?>
|
24 |
+
</label>
|
25 |
+
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="email" id="edit-email">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-phone">
|
35 |
+
<?php
|
36 |
+
_e('Phone')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
</th>
|
40 |
+
<td>
|
41 |
+
<input type="text" class="regular-text" name="Phone" id="edit-phone">
|
42 |
+
</td>
|
43 |
+
</tr>
|
44 |
+
</table>
|
45 |
+
|
46 |
+
</div>
|
tags/2.0.0/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/2.0.0/js/revechat-admin.js
ADDED
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
//e.preventDefault();
|
36 |
+
|
37 |
+
if($('#edit-submit').val() == 'Remove'){
|
38 |
+
$('#revechat_aid').val(0);
|
39 |
+
$('#revechat-admin-settings-form').submit();
|
40 |
+
}
|
41 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
42 |
+
{
|
43 |
+
return ReveChat.alreadyHaveAccountForm();
|
44 |
+
}
|
45 |
+
else
|
46 |
+
{
|
47 |
+
return ReveChat.newLicenseForm();
|
48 |
+
}
|
49 |
+
|
50 |
+
});
|
51 |
+
},
|
52 |
+
|
53 |
+
alreadyHaveAccountForm: function()
|
54 |
+
{
|
55 |
+
|
56 |
+
if(this.validEmail())
|
57 |
+
{
|
58 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
59 |
+
{
|
60 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
61 |
+
if(!login.length)
|
62 |
+
{
|
63 |
+
$('#edit-revechat-account-email').focus();
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
67 |
+
var signInUrl = baseUrl +'/license/adminId/'+$('#edit-revechat-account-email').val()+'/?callback=?';
|
68 |
+
$.getJSON(signInUrl,
|
69 |
+
function(response)
|
70 |
+
{
|
71 |
+
if (response.error)
|
72 |
+
{
|
73 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Incorrect REVE Chat login.');
|
74 |
+
$('#edit-revechat-account-email').focus();
|
75 |
+
return false;
|
76 |
+
}
|
77 |
+
else
|
78 |
+
{
|
79 |
+
$('#revechat_aid').val(response.data.account_id);
|
80 |
+
$('#revechat-admin-settings-form').submit();
|
81 |
+
}
|
82 |
+
});
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
else
|
87 |
+
{
|
88 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Invalid Email.');
|
89 |
+
$('#edit-revechat-account-email').focus();
|
90 |
+
return false;
|
91 |
+
}
|
92 |
+
return true;
|
93 |
+
},
|
94 |
+
|
95 |
+
newLicenseForm: function()
|
96 |
+
{
|
97 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
98 |
+
{
|
99 |
+
return true;
|
100 |
+
}
|
101 |
+
|
102 |
+
if(this.validateNewLicenseForm())
|
103 |
+
{
|
104 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
105 |
+
|
106 |
+
ReveChat.createLicense();
|
107 |
+
}
|
108 |
+
return false;
|
109 |
+
},
|
110 |
+
createLicense: function()
|
111 |
+
{
|
112 |
+
|
113 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
114 |
+
|
115 |
+
var signUpUrl = baseUrl + '/revechat/rest/api/signup.do';
|
116 |
+
|
117 |
+
$.ajax({
|
118 |
+
data: { 'firstname':$('#edit-name').val(), 'lastname':' ', 'mailAddr':$('#edit-email').val(), 'phoneNo':$('#edit-phone').val() },
|
119 |
+
type:'POST',
|
120 |
+
url:signUpUrl,
|
121 |
+
dataType: 'json',
|
122 |
+
cache:false,
|
123 |
+
success: function(response) {
|
124 |
+
if(response.error)
|
125 |
+
{
|
126 |
+
$('.ajax_message').html(response.error).addClass('message alert').removeClass('wait');
|
127 |
+
return false;
|
128 |
+
}
|
129 |
+
else if(response.success)
|
130 |
+
{
|
131 |
+
$('#revechat-admin-settings-form').children('div').remove();
|
132 |
+
var message = '<div class="revechat_success_message">';
|
133 |
+
message += '<h3>Thank you for sigining up with REVE Chat</h3>';
|
134 |
+
message += '<p>A verification link has been sent to your registered email address from <strong><a href="#">support@revechat.com</a></strong>. Kindly verify your email to complete the signup process</p>';
|
135 |
+
message += '<p>Then come backe again to integrate REVE Chat in your website.</p>';
|
136 |
+
message += '</div>';
|
137 |
+
$(message).appendTo('#revechat-admin-settings-form');
|
138 |
+
$('p.submit').remove();
|
139 |
+
$('.ajax_message').removeClass('wait');
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
});
|
144 |
+
},
|
145 |
+
validEmail: function()
|
146 |
+
{
|
147 |
+
if($('#edit-submit').val() != 'Remove')
|
148 |
+
{
|
149 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
150 |
+
{
|
151 |
+
//alert ('Please enter a valid email address.');
|
152 |
+
$('#edit-email').focus();
|
153 |
+
return false;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
return true;
|
157 |
+
},
|
158 |
+
|
159 |
+
validateNewLicenseForm: function()
|
160 |
+
{
|
161 |
+
if ($('#edit-name').val().length < 1)
|
162 |
+
{
|
163 |
+
alert ('Please enter your full name.');
|
164 |
+
$('#edit-name').addClass('error').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-email').val()) == false)
|
169 |
+
{
|
170 |
+
alert ('Please enter a valid email address.');
|
171 |
+
$('#edit-email').addClass('error').focus();
|
172 |
+
return false;
|
173 |
+
}
|
174 |
+
|
175 |
+
if ($('#edit-phone').val().length < 1)
|
176 |
+
{
|
177 |
+
alert ('Please enter your phone number.');
|
178 |
+
$('#edit-phone').addClass('error').focus();
|
179 |
+
return false;
|
180 |
+
}
|
181 |
+
|
182 |
+
return true;
|
183 |
+
}
|
184 |
+
}
|
185 |
+
$(document).ready(function()
|
186 |
+
{
|
187 |
+
ReveChat.init();
|
188 |
+
});
|
189 |
+
})(jQuery);
|
tags/2.0.0/readme.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
0 |
|
1 |
|
1 |
+
=== Reve Chat ===
|
2 |
|
3 |
|
tags/2.0.0/revechat.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 2.0.0
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '1.2.4';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
|
49 |
+
$script .= "window.__revechat_account = window.__revechat_account || {};
|
50 |
+
window.__revechat_account = '".$accountId."';
|
51 |
+
(function() {
|
52 |
+
var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
|
53 |
+
rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
|
54 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
|
55 |
+
})();";
|
56 |
+
$script .='</script>';
|
57 |
+
|
58 |
+
echo $script ;
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
} // END public static function activate
|
63 |
+
/*
|
64 |
+
* show parameter section
|
65 |
+
*/
|
66 |
+
public function registerSettings(){
|
67 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
68 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
69 |
+
}
|
70 |
+
/*
|
71 |
+
* admin panel
|
72 |
+
*/
|
73 |
+
public function adminPanels(){
|
74 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
75 |
+
// Add a new submenu under Settings:
|
76 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
77 |
+
}
|
78 |
+
/*
|
79 |
+
* revechat options
|
80 |
+
*/
|
81 |
+
public function reveChatOptions(){
|
82 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
83 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
84 |
+
}
|
85 |
+
// variables for the field and option names
|
86 |
+
$accountId = 'revechat_accountid';
|
87 |
+
|
88 |
+
// Read in existing option value from database
|
89 |
+
$val_accountId = get_option( $accountId );
|
90 |
+
|
91 |
+
if( isset($_POST[ $accountId ])){
|
92 |
+
|
93 |
+
// Read in existing option value from POST
|
94 |
+
$val_accountId = $_POST[ $accountId ];
|
95 |
+
update_option( $accountId , $val_accountId );
|
96 |
+
?>
|
97 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
98 |
+
<?php
|
99 |
+
}
|
100 |
+
?>
|
101 |
+
<div class="wrap" id="revechat">
|
102 |
+
|
103 |
+
<div class="reve-chat-logo">
|
104 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
105 |
+
</div>
|
106 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
107 |
+
<p class="ajax_message"></p>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
111 |
+
|
112 |
+
<?php
|
113 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
114 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
115 |
+
return;
|
116 |
+
}
|
117 |
+
|
118 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
119 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
120 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
121 |
+
?>
|
122 |
+
|
123 |
+
<p class="submit">
|
124 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
125 |
+
</p>
|
126 |
+
|
127 |
+
</form>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public function admin_menu()
|
134 |
+
{
|
135 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
136 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Deactivate the plugin
|
142 |
+
*/
|
143 |
+
public static function deactivate()
|
144 |
+
{
|
145 |
+
delete_option('revechat_accountid');
|
146 |
+
} // END public static function deactivate
|
147 |
+
|
148 |
+
public function admin_scripts(){
|
149 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
150 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
151 |
+
}
|
152 |
+
|
153 |
+
function add_action_links ( $links ) {
|
154 |
+
$menu_link = array(
|
155 |
+
'<a href="' . admin_url( 'options-general.php?page=revechatsettings' ) . '">Settings</a>',
|
156 |
+
);
|
157 |
+
return array_merge( $links, $menu_link );
|
158 |
+
}
|
159 |
+
} // END class WP_Plugin_Revechat
|
160 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
161 |
+
$revechat = new WP_Plugin_Revechat ;
|
162 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/2.0.0/screenshot-1.png
ADDED
Binary file
|
tags/2.0.0/screenshot-2.png
ADDED
Binary file
|
tags/2.0.0/screenshot-3.png
ADDED
Binary file
|
tags/2.0.0/screenshot-4.png
ADDED
Binary file
|
tags/2.0.1/css/admin-styles.css
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat #edit-choose-form h3,
|
2 |
+
#revechat #revechat_already_have h3,
|
3 |
+
#revechat #revechat_new_account h3{
|
4 |
+
color: coral;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form{}
|
7 |
+
#revechat ul#revechat_choose_form li{
|
8 |
+
list-style: none;
|
9 |
+
display: block;
|
10 |
+
}
|
11 |
+
#revechat ul#revechat_choose_form li label{
|
12 |
+
display: inline-block;
|
13 |
+
}
|
14 |
+
#revechat .revechat_email_error{
|
15 |
+
color: red;
|
16 |
+
}
|
17 |
+
#revechat .ajax_message {
|
18 |
+
display: none;
|
19 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
20 |
+
padding: 0;
|
21 |
+
margin-top: 1em;
|
22 |
+
}
|
23 |
+
#revechat .ajax_message.wait,
|
24 |
+
#revechat .ajax_message.message
|
25 |
+
{
|
26 |
+
display: block;
|
27 |
+
font-size: 1.2em;
|
28 |
+
padding: 20px;
|
29 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
30 |
+
}
|
31 |
+
#revechat .ajax_message.wait {
|
32 |
+
text-indent: 28px;
|
33 |
+
background-color: #fff;
|
34 |
+
}
|
35 |
+
#revechat .ajax_message.message {
|
36 |
+
background-image: none;
|
37 |
+
text-indent: 0px;
|
38 |
+
}
|
39 |
+
|
40 |
+
#revechat .ajax_message.message.alert{
|
41 |
+
background-color: #f2dede;
|
42 |
+
border-color: #ebccd1;
|
43 |
+
color: #a94442;
|
44 |
+
padding: 20px;
|
45 |
+
}
|
46 |
+
#revechat .revechat_success_message{
|
47 |
+
background: #ffffff;
|
48 |
+
padding: 50px;
|
49 |
+
height: auto;
|
50 |
+
font-size: 1.5em;
|
51 |
+
border-bottom: 5px solid #F16915;
|
52 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
53 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
}
|
56 |
+
#revechat .revechat_success_message h3{
|
57 |
+
font-weight: bold;
|
58 |
+
border-bottom: 1px solid #B1B4B9;
|
59 |
+
padding-bottom: 20px;
|
60 |
+
line-height: 2em;
|
61 |
+
}
|
62 |
+
#revechat .messages.revechat_success{
|
63 |
+
background-color: #dff0d8;
|
64 |
+
border: 1px solid #bee99a;
|
65 |
+
color: #3c763d;
|
66 |
+
padding: 20px;
|
67 |
+
margin-bottom: 30px;
|
68 |
+
font-weight: 600;
|
69 |
+
}
|
70 |
+
#revechat .form-submit{
|
71 |
+
background: #FF5800 none repeat scroll 0 0;
|
72 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
73 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
74 |
+
box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
color: #fff;
|
76 |
+
text-decoration: none;
|
77 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
78 |
+
}
|
79 |
+
|
80 |
+
#revechat #revechat-admin-settings-form {
|
81 |
+
padding: 18px;
|
82 |
+
}
|
83 |
+
#revechat fieldset {
|
84 |
+
border: 1px solid #c0c0c0;
|
85 |
+
margin-top: 20px;
|
86 |
+
}
|
87 |
+
#revechat #revechat_already_have > h3 {
|
88 |
+
margin-top: 19px;
|
89 |
+
}
|
90 |
+
#revechat ul#revechat_choose_form li {
|
91 |
+
display: block;
|
92 |
+
list-style: outside none none;
|
93 |
+
padding-left: 20px;
|
94 |
+
}
|
95 |
+
#revechat .form-wrapper {
|
96 |
+
padding: 16px;
|
97 |
+
padding-bottom: 31px;
|
98 |
+
}
|
99 |
+
#revechat .form-item > label {
|
100 |
+
display: table;
|
101 |
+
margin-bottom: 11px;
|
102 |
+
margin-top: 20px;
|
103 |
+
}
|
104 |
+
#revechat input.form-submit{
|
105 |
+
cursor: pointer;
|
106 |
+
}
|
tags/2.0.1/css/ajax_loader.gif
ADDED
Binary file
|
tags/2.0.1/images/favicon.png
ADDED
Binary file
|
tags/2.0.1/images/logo.png
ADDED
Binary file
|
tags/2.0.1/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form">
|
2 |
+
<h3>Already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/2.0.1/includes/login-form.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat Login Email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
</div><!-- revechat_already_have -->
|
tags/2.0.1/includes/remove-form.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div>
|
2 |
+
<div class="messages revechat_success">REVE Chat
|
3 |
+
is already installed.</div>
|
4 |
+
|
5 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
6 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
7 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
8 |
+
</div>
|
9 |
+
</div>
|
tags/2.0.1/includes/signup-form.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-name">
|
8 |
+
<?php
|
9 |
+
_e("Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="name" id="edit-name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
<tr>
|
19 |
+
<th>
|
20 |
+
<label for="edit-email">
|
21 |
+
<?php
|
22 |
+
_e('Email')
|
23 |
+
?>
|
24 |
+
</label>
|
25 |
+
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="email" id="edit-email">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-phone">
|
35 |
+
<?php
|
36 |
+
_e('Phone')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
</th>
|
40 |
+
<td>
|
41 |
+
<input type="text" class="regular-text" name="Phone" id="edit-phone">
|
42 |
+
</td>
|
43 |
+
</tr>
|
44 |
+
</table>
|
45 |
+
|
46 |
+
</div>
|
tags/2.0.1/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/2.0.1/js/revechat-admin.js
ADDED
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
//e.preventDefault();
|
36 |
+
|
37 |
+
if($('#edit-submit').val() == 'Remove'){
|
38 |
+
$('#revechat_aid').val(0);
|
39 |
+
$('#revechat-admin-settings-form').submit();
|
40 |
+
}
|
41 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
42 |
+
{
|
43 |
+
return ReveChat.alreadyHaveAccountForm();
|
44 |
+
}
|
45 |
+
else
|
46 |
+
{
|
47 |
+
return ReveChat.newLicenseForm();
|
48 |
+
}
|
49 |
+
|
50 |
+
});
|
51 |
+
},
|
52 |
+
|
53 |
+
alreadyHaveAccountForm: function()
|
54 |
+
{
|
55 |
+
|
56 |
+
if(this.validEmail())
|
57 |
+
{
|
58 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
59 |
+
{
|
60 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
61 |
+
if(!login.length)
|
62 |
+
{
|
63 |
+
$('#edit-revechat-account-email').focus();
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
67 |
+
var signInUrl = baseUrl +'/license/adminId/'+$('#edit-revechat-account-email').val()+'/?callback=?';
|
68 |
+
$.getJSON(signInUrl,
|
69 |
+
function(response)
|
70 |
+
{
|
71 |
+
if (response.error)
|
72 |
+
{
|
73 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Incorrect REVE Chat login.');
|
74 |
+
$('#edit-revechat-account-email').focus();
|
75 |
+
return false;
|
76 |
+
}
|
77 |
+
else
|
78 |
+
{
|
79 |
+
$('#revechat_aid').val(response.data.account_id);
|
80 |
+
$('#revechat-admin-settings-form').submit();
|
81 |
+
}
|
82 |
+
});
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
else
|
87 |
+
{
|
88 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Invalid Email.');
|
89 |
+
$('#edit-revechat-account-email').focus();
|
90 |
+
return false;
|
91 |
+
}
|
92 |
+
return true;
|
93 |
+
},
|
94 |
+
|
95 |
+
newLicenseForm: function()
|
96 |
+
{
|
97 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
98 |
+
{
|
99 |
+
return true;
|
100 |
+
}
|
101 |
+
|
102 |
+
if(this.validateNewLicenseForm())
|
103 |
+
{
|
104 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
105 |
+
|
106 |
+
ReveChat.createLicense();
|
107 |
+
}
|
108 |
+
return false;
|
109 |
+
},
|
110 |
+
createLicense: function()
|
111 |
+
{
|
112 |
+
|
113 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
114 |
+
|
115 |
+
var signUpUrl = baseUrl + '/revechat/rest/api/signup.do';
|
116 |
+
|
117 |
+
$.ajax({
|
118 |
+
data: { 'firstname':$('#edit-name').val(), 'lastname':' ', 'mailAddr':$('#edit-email').val(), 'phoneNo':$('#edit-phone').val() },
|
119 |
+
type:'POST',
|
120 |
+
url:signUpUrl,
|
121 |
+
dataType: 'json',
|
122 |
+
cache:false,
|
123 |
+
success: function(response) {
|
124 |
+
if(response.error)
|
125 |
+
{
|
126 |
+
$('.ajax_message').html(response.error).addClass('message alert').removeClass('wait');
|
127 |
+
return false;
|
128 |
+
}
|
129 |
+
else if(response.success)
|
130 |
+
{
|
131 |
+
$('#revechat-admin-settings-form').children('div').remove();
|
132 |
+
var message = '<div class="revechat_success_message">';
|
133 |
+
message += '<h3>Thank you for sigining up with REVE Chat</h3>';
|
134 |
+
message += '<p>A verification link has been sent to your registered email address from <strong><a href="#">support@revechat.com</a></strong>. Kindly verify your email to complete the signup process</p>';
|
135 |
+
message += '<p>Then come backe again to integrate REVE Chat in your website.</p>';
|
136 |
+
message += '</div>';
|
137 |
+
$(message).appendTo('#revechat-admin-settings-form');
|
138 |
+
$('p.submit').remove();
|
139 |
+
$('.ajax_message').removeClass('wait');
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
});
|
144 |
+
},
|
145 |
+
validEmail: function()
|
146 |
+
{
|
147 |
+
if($('#edit-submit').val() != 'Remove')
|
148 |
+
{
|
149 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
150 |
+
{
|
151 |
+
//alert ('Please enter a valid email address.');
|
152 |
+
$('#edit-email').focus();
|
153 |
+
return false;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
return true;
|
157 |
+
},
|
158 |
+
|
159 |
+
validateNewLicenseForm: function()
|
160 |
+
{
|
161 |
+
if ($('#edit-name').val().length < 1)
|
162 |
+
{
|
163 |
+
alert ('Please enter your full name.');
|
164 |
+
$('#edit-name').addClass('error').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-email').val()) == false)
|
169 |
+
{
|
170 |
+
alert ('Please enter a valid email address.');
|
171 |
+
$('#edit-email').addClass('error').focus();
|
172 |
+
return false;
|
173 |
+
}
|
174 |
+
|
175 |
+
if ($('#edit-phone').val().length < 1)
|
176 |
+
{
|
177 |
+
alert ('Please enter your phone number.');
|
178 |
+
$('#edit-phone').addClass('error').focus();
|
179 |
+
return false;
|
180 |
+
}
|
181 |
+
|
182 |
+
return true;
|
183 |
+
}
|
184 |
+
}
|
185 |
+
$(document).ready(function()
|
186 |
+
{
|
187 |
+
ReveChat.init();
|
188 |
+
});
|
189 |
+
})(jQuery);
|
tags/2.0.1/readme.txt
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Reve Chat ===
|
2 |
+
Contributors: revechat_official
|
3 |
+
Tags: chat, chat online, contact plugin, 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, ReveChat, REVE Chat, zendesk, Zopim live chat, clickdesk, olark, click desk, visitor analytics, web analytics, lead generation, online leads
|
4 |
+
|
5 |
+
Stable tag: 2.0.1
|
6 |
+
|
7 |
+
|
8 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
12 |
+
|
13 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
14 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
15 |
+
|
16 |
+
**Key Features**
|
17 |
+
|
18 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
19 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
20 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
21 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
22 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
23 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
24 |
+
|
25 |
+
**What makes Reve Chat the best choice for live chat?**
|
26 |
+
|
27 |
+
* A simple and highly customizable Live chat solution
|
28 |
+
* User friendly interface and Dashboard
|
29 |
+
* Intuitive Chat Window
|
30 |
+
* Innovative and unique features
|
31 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
**Some Geeky Facts**
|
36 |
+
|
37 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
38 |
+
* Average uptime is 99.8%.
|
39 |
+
* Mobile Optimized Dashboard
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
44 |
+
|
45 |
+
|
46 |
+
== Changelog ==
|
47 |
+
|
48 |
+
|
49 |
+
= 1.2.0 =
|
50 |
+
|
51 |
+
* Feature: Add the Reve chat widget to your site!
|
52 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
53 |
+
|
54 |
+
= 2.0 =
|
55 |
+
* New Admin Menu page for REVE Chat
|
56 |
+
* New for integration
|
57 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
58 |
+
|
59 |
+
= 2.0.1 =
|
60 |
+
* Updated chat script
|
61 |
+
|
62 |
+
== Screenshots ==
|
63 |
+
|
64 |
+
1. Chat window on your website - active chat
|
65 |
+
2. Account Configuration - Link Up
|
66 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
67 |
+
4. Dashboard View - Open new browser tab
|
68 |
+
5. Widget Customization from Dashboard
|
69 |
+
|
70 |
+
== Frequently Asked Questions ==
|
71 |
+
|
72 |
+
= Do I have to install any software on my server to get this working? =
|
73 |
+
|
74 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
75 |
+
|
76 |
+
= Why should I use REVE Chat? =
|
77 |
+
|
78 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
79 |
+
|
80 |
+
= Which web browsers work best with this plugin =
|
81 |
+
|
82 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
83 |
+
|
84 |
+
= I managed to install the plugin but cannot link up to REVE Chat. Why? =
|
85 |
+
|
86 |
+
Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
|
87 |
+
|
88 |
+
= How much is price of REVE Chat? =
|
89 |
+
|
90 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
91 |
+
1. Basic (Free)
|
92 |
+
2. Standard
|
93 |
+
3. Advanced
|
94 |
+
Please click here to find out more about pricing
|
95 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
96 |
+
|
97 |
+
= How can I chat with more visitors at the same time? =
|
98 |
+
|
99 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
100 |
+
|
101 |
+
= How can I take further information regarding REVE Chat? =
|
102 |
+
|
103 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
104 |
+
|
105 |
+
= Is there any demo or trial period to do some testing? =
|
106 |
+
|
107 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
108 |
+
|
109 |
+
= Can I customize the REVE Chat window? =
|
110 |
+
|
111 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
112 |
+
|
113 |
+
* Changing the colour scheme
|
114 |
+
* Changing the font size
|
115 |
+
* Chat Widget text
|
116 |
+
* Offline Widget Text
|
117 |
+
* Prechat & Post chat form
|
118 |
+
|
119 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
120 |
+
|
121 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
122 |
+
|
123 |
+
== Usage ==
|
124 |
+
|
125 |
+
= Agent management =
|
126 |
+
|
127 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
128 |
+
|
129 |
+
= How to configuring a chat operator =
|
130 |
+
|
131 |
+
Please follow the below mentioned directions to manage your agents.
|
132 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
133 |
+
* List of your agent names
|
134 |
+
* Roles assigned to each and every agent
|
135 |
+
* Email address of your agents
|
136 |
+
* Phone numbers of your agents
|
137 |
+
* Status of your agents online or offline
|
138 |
+
* Each and every agent's last login time
|
139 |
+
* Total number of concurrent chats assigned to each and every agent
|
140 |
+
|
141 |
+
|
142 |
+
= Agent creation =
|
143 |
+
|
144 |
+
To create an agent, you need to follow the below mentioned steps:
|
145 |
+
* Login to your REVE Chat dashboard
|
146 |
+
* Click on 'Agent Management'
|
147 |
+
* For adding your agent, click on the 'Create Agent' option
|
148 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
149 |
+
|
150 |
+
= Chat Conversation =
|
151 |
+
|
152 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
153 |
+
|
154 |
+
= Engaged Visitors =
|
155 |
+
|
156 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
157 |
+
|
158 |
+
= Online Agents =
|
159 |
+
|
160 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
161 |
+
|
162 |
+
= New Chat Request =
|
163 |
+
|
164 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
165 |
+
|
166 |
+
= Chat Panel =
|
167 |
+
|
168 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
169 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
170 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
171 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
172 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
173 |
+
|
174 |
+
= Online Visitors =
|
175 |
+
|
176 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
177 |
+
|
178 |
+
= Queued Visitor =
|
179 |
+
|
180 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
181 |
+
|
182 |
+
= Monitoring Panel =
|
183 |
+
|
184 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
+
== Installation ==
|
189 |
+
|
190 |
+
*Server Requirements:* PHP4 or PHP5.
|
191 |
+
|
192 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
193 |
+
|
194 |
+
= Step-by-step Guide =
|
195 |
+
* Search Plugin from Wordpress Directory
|
196 |
+
* Install REVE Chat plugin
|
197 |
+
* Copy Account ID and Tracking ID from integration page
|
198 |
+
* Paste it REVE Chat Plugins setting page
|
199 |
+
* Customize the chat widget to your preference.
|
200 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
201 |
+
|
tags/2.0.1/revechat.php
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 2.0.1
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '2.0.1';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
49 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
50 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
51 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})(document, window);';
|
53 |
+
|
54 |
+
$script .='</script>';
|
55 |
+
|
56 |
+
echo $script ;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
} // END public static function activate
|
61 |
+
/*
|
62 |
+
* show parameter section
|
63 |
+
*/
|
64 |
+
public function registerSettings(){
|
65 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
66 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
67 |
+
}
|
68 |
+
/*
|
69 |
+
* admin panel
|
70 |
+
*/
|
71 |
+
public function adminPanels(){
|
72 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
73 |
+
// Add a new submenu under Settings:
|
74 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
75 |
+
}
|
76 |
+
/*
|
77 |
+
* revechat options
|
78 |
+
*/
|
79 |
+
public function reveChatOptions(){
|
80 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
81 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
82 |
+
}
|
83 |
+
// variables for the field and option names
|
84 |
+
$accountId = 'revechat_accountid';
|
85 |
+
|
86 |
+
// Read in existing option value from database
|
87 |
+
$val_accountId = get_option( $accountId );
|
88 |
+
|
89 |
+
if( isset($_POST[ $accountId ])){
|
90 |
+
|
91 |
+
// Read in existing option value from POST
|
92 |
+
$val_accountId = $_POST[ $accountId ];
|
93 |
+
update_option( $accountId , $val_accountId );
|
94 |
+
?>
|
95 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
?>
|
99 |
+
<div class="wrap" id="revechat">
|
100 |
+
|
101 |
+
<div class="reve-chat-logo">
|
102 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
103 |
+
</div>
|
104 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
105 |
+
<p class="ajax_message"></p>
|
106 |
+
</div>
|
107 |
+
|
108 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
109 |
+
|
110 |
+
<?php
|
111 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
112 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
113 |
+
return;
|
114 |
+
}
|
115 |
+
|
116 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
117 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
118 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
119 |
+
?>
|
120 |
+
|
121 |
+
<p class="submit">
|
122 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
123 |
+
</p>
|
124 |
+
|
125 |
+
</form>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
<?php
|
129 |
+
}
|
130 |
+
|
131 |
+
public function admin_menu()
|
132 |
+
{
|
133 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
134 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
135 |
+
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Deactivate the plugin
|
140 |
+
*/
|
141 |
+
public static function deactivate()
|
142 |
+
{
|
143 |
+
delete_option('revechat_accountid');
|
144 |
+
} // END public static function deactivate
|
145 |
+
|
146 |
+
public function admin_scripts(){
|
147 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
148 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
149 |
+
}
|
150 |
+
|
151 |
+
function add_action_links ( $links ) {
|
152 |
+
$menu_link = array(
|
153 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
154 |
+
);
|
155 |
+
return array_merge( $links, $menu_link );
|
156 |
+
}
|
157 |
+
} // END class WP_Plugin_Revechat
|
158 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
159 |
+
$revechat = new WP_Plugin_Revechat ;
|
160 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/2.0.1/screenshot-1.png
ADDED
Binary file
|
tags/2.0.1/screenshot-2.png
ADDED
Binary file
|
tags/2.0.1/screenshot-3.png
ADDED
Binary file
|
tags/2.0.1/screenshot-4.png
ADDED
Binary file
|
tags/2.0.2/css/admin-styles.css
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat #edit-choose-form h3,
|
2 |
+
#revechat #revechat_already_have h3,
|
3 |
+
#revechat #revechat_new_account h3{
|
4 |
+
color: coral;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form{}
|
7 |
+
#revechat ul#revechat_choose_form li{
|
8 |
+
list-style: none;
|
9 |
+
display: block;
|
10 |
+
}
|
11 |
+
#revechat ul#revechat_choose_form li label{
|
12 |
+
display: inline-block;
|
13 |
+
}
|
14 |
+
#revechat .revechat_email_error{
|
15 |
+
color: red;
|
16 |
+
}
|
17 |
+
#revechat .ajax_message {
|
18 |
+
display: none;
|
19 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
20 |
+
padding: 0;
|
21 |
+
margin-top: 1em;
|
22 |
+
}
|
23 |
+
#revechat .ajax_message.wait,
|
24 |
+
#revechat .ajax_message.message
|
25 |
+
{
|
26 |
+
display: block;
|
27 |
+
font-size: 1.2em;
|
28 |
+
padding: 20px;
|
29 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
30 |
+
}
|
31 |
+
#revechat .ajax_message.wait {
|
32 |
+
text-indent: 28px;
|
33 |
+
background-color: #fff;
|
34 |
+
}
|
35 |
+
#revechat .ajax_message.message {
|
36 |
+
background-image: none;
|
37 |
+
text-indent: 0px;
|
38 |
+
}
|
39 |
+
|
40 |
+
#revechat .ajax_message.message.alert{
|
41 |
+
background-color: #f2dede;
|
42 |
+
border-color: #ebccd1;
|
43 |
+
color: #a94442;
|
44 |
+
padding: 20px;
|
45 |
+
}
|
46 |
+
#revechat .ajax_message.message.success{
|
47 |
+
background-color: #dff0d8;
|
48 |
+
border: 1px solid #dff0d8;
|
49 |
+
color: #3c763d;
|
50 |
+
padding: 20px;
|
51 |
+
}
|
52 |
+
#revechat .revechat_success_message{
|
53 |
+
background: #ffffff;
|
54 |
+
padding: 50px;
|
55 |
+
height: auto;
|
56 |
+
font-size: 1.5em;
|
57 |
+
border-bottom: 5px solid #F16915;
|
58 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
59 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
60 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
61 |
+
}
|
62 |
+
#revechat .revechat_success_message h3{
|
63 |
+
font-weight: bold;
|
64 |
+
border-bottom: 1px solid #B1B4B9;
|
65 |
+
padding-bottom: 20px;
|
66 |
+
line-height: 2em;
|
67 |
+
}
|
68 |
+
#revechat .messages.revechat_success{
|
69 |
+
background-color: #dff0d8;
|
70 |
+
border: 1px solid #bee99a;
|
71 |
+
color: #3c763d;
|
72 |
+
padding: 20px;
|
73 |
+
margin-bottom: 30px;
|
74 |
+
font-weight: 600;
|
75 |
+
}
|
76 |
+
#revechat .form-submit{
|
77 |
+
background: #FF5800 none repeat scroll 0 0;
|
78 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
79 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
80 |
+
box-shadow: 0 1px 0 #ab3c02;
|
81 |
+
color: #fff;
|
82 |
+
text-decoration: none;
|
83 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
84 |
+
}
|
85 |
+
#revechat .box {
|
86 |
+
background: #ffffff;
|
87 |
+
border: 1px solid #e5e5e5;
|
88 |
+
padding: 20px;
|
89 |
+
}
|
90 |
+
#revechat #revechat-admin-settings-form {
|
91 |
+
padding: 18px;
|
92 |
+
}
|
93 |
+
#revechat fieldset {
|
94 |
+
border: 1px solid #c0c0c0;
|
95 |
+
margin-top: 20px;
|
96 |
+
}
|
97 |
+
#revechat #revechat_already_have > h3 {
|
98 |
+
margin-top: 19px;
|
99 |
+
}
|
100 |
+
#revechat ul#revechat_choose_form li {
|
101 |
+
display: block;
|
102 |
+
list-style: outside none none;
|
103 |
+
padding-left: 20px;
|
104 |
+
}
|
105 |
+
|
106 |
+
#revechat .form-item > label {
|
107 |
+
display: table;
|
108 |
+
margin-bottom: 11px;
|
109 |
+
margin-top: 20px;
|
110 |
+
}
|
111 |
+
#revechat input.form-submit{
|
112 |
+
cursor: pointer;
|
113 |
+
}
|
tags/2.0.2/css/ajax_loader.gif
ADDED
Binary file
|
tags/2.0.2/images/favicon.png
ADDED
Binary file
|
tags/2.0.2/images/logo.png
ADDED
Binary file
|
tags/2.0.2/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form">
|
2 |
+
<h3>Already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/2.0.2/includes/login-form.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat Login Email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
</div><!-- revechat_already_have -->
|
tags/2.0.2/includes/remove-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
|
7 |
+
</div>
|
8 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
9 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
10 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Remove" name="revechat_remove" id="edit-submit"></small></p>
|
11 |
+
</div>
|
12 |
+
|
13 |
+
|
14 |
+
<!--
|
15 |
+
<div>
|
16 |
+
<div class="messages revechat_success">REVE Chat
|
17 |
+
is already installed.</div>
|
18 |
+
|
19 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
20 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
21 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
22 |
+
</div>
|
23 |
+
</div> -->
|
tags/2.0.2/includes/signup-form.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Create Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your Password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
|
73 |
+
</div>
|
index.html → tags/2.0.2/index.html
RENAMED
File without changes
|
tags/2.0.2/js/revechat-admin.js
ADDED
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
// e.preventDefault();
|
36 |
+
|
37 |
+
if($('#edit-submit').val() == 'Remove'){
|
38 |
+
$('#revechat_aid').val(0);
|
39 |
+
$('#revechat-admin-settings-form').submit();
|
40 |
+
}
|
41 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
42 |
+
{
|
43 |
+
return ReveChat.alreadyHaveAccountForm();
|
44 |
+
}
|
45 |
+
else
|
46 |
+
{
|
47 |
+
return ReveChat.newLicenseForm();
|
48 |
+
}
|
49 |
+
|
50 |
+
});
|
51 |
+
},
|
52 |
+
|
53 |
+
alreadyHaveAccountForm: function()
|
54 |
+
{
|
55 |
+
|
56 |
+
if(this.validEmail())
|
57 |
+
{
|
58 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
59 |
+
{
|
60 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
61 |
+
if(!login.length)
|
62 |
+
{
|
63 |
+
$('#edit-revechat-account-email').focus();
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
67 |
+
|
68 |
+
ReveChat.signIn($('#edit-revechat-account-email').val());
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
}
|
72 |
+
else
|
73 |
+
{
|
74 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Invalid Email.');
|
75 |
+
$('#edit-revechat-account-email').focus();
|
76 |
+
return false;
|
77 |
+
}
|
78 |
+
return true;
|
79 |
+
},
|
80 |
+
signIn: function (email) {
|
81 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
82 |
+
$.getJSON(signInUrl,
|
83 |
+
function(response)
|
84 |
+
{
|
85 |
+
if (response.error)
|
86 |
+
{
|
87 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Incorrect REVE Chat login.');
|
88 |
+
$('#edit-revechat-account-email').focus();
|
89 |
+
return false;
|
90 |
+
}
|
91 |
+
else
|
92 |
+
{
|
93 |
+
$('#revechat_aid').val(response.data.account_id);
|
94 |
+
$('#revechat-admin-settings-form').submit();
|
95 |
+
}
|
96 |
+
});
|
97 |
+
},
|
98 |
+
newLicenseForm: function()
|
99 |
+
{
|
100 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
101 |
+
{
|
102 |
+
return true;
|
103 |
+
}
|
104 |
+
|
105 |
+
if(this.validateNewLicenseForm())
|
106 |
+
{
|
107 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
108 |
+
|
109 |
+
ReveChat.createLicense();
|
110 |
+
}
|
111 |
+
return false;
|
112 |
+
},
|
113 |
+
createLicense: function()
|
114 |
+
{
|
115 |
+
|
116 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
117 |
+
|
118 |
+
var firstName = $.trim($('#edit-firstname').val());
|
119 |
+
var lastName = $.trim($('#edit-lastname').val());
|
120 |
+
var email = $.trim($('#edit-email').val());
|
121 |
+
var password = $.trim($('#edit-accountpassword').val());
|
122 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
123 |
+
|
124 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
125 |
+
|
126 |
+
$.ajax({
|
127 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password },
|
128 |
+
type:'POST',
|
129 |
+
url:signUpUrl,
|
130 |
+
dataType: 'json',
|
131 |
+
cache:false,
|
132 |
+
success: function(response) {
|
133 |
+
if(response.status == 'error')
|
134 |
+
{
|
135 |
+
$('.ajax_message').html(response.message).addClass('message alert').removeClass('wait');
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
else if(response.status == 'success')
|
139 |
+
{
|
140 |
+
$('#edit-revechat-account-email').val(email);
|
141 |
+
ReveChat.signIn(email);
|
142 |
+
return false;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
});
|
146 |
+
},
|
147 |
+
validEmail: function()
|
148 |
+
{
|
149 |
+
if($('#edit-submit').val() != 'Remove')
|
150 |
+
{
|
151 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
152 |
+
{
|
153 |
+
//alert ('Please enter a valid email address.');
|
154 |
+
$('#edit-email').focus();
|
155 |
+
return false;
|
156 |
+
}
|
157 |
+
}
|
158 |
+
return true;
|
159 |
+
},
|
160 |
+
|
161 |
+
validateNewLicenseForm: function()
|
162 |
+
{
|
163 |
+
|
164 |
+
var firstName = $.trim($('#edit-firstname').val());
|
165 |
+
var lastName = $.trim($('#edit-lastname').val());
|
166 |
+
var email = $.trim($('#edit-email').val());
|
167 |
+
var password = $.trim($('#edit-accountpassword').val());
|
168 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
if (!firstName.length)
|
173 |
+
{
|
174 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Please provide your first name.');
|
175 |
+
$('#edit-firstname').focus();
|
176 |
+
return false;
|
177 |
+
}
|
178 |
+
|
179 |
+
if (!lastName.length)
|
180 |
+
{
|
181 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Please provide your last name.');
|
182 |
+
$('#edit-lastname').focus();
|
183 |
+
return false;
|
184 |
+
}
|
185 |
+
|
186 |
+
if (!ReveChat.isValidEmailAddress(email))
|
187 |
+
{
|
188 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Please provide valid email address.');
|
189 |
+
$('#edit-email').focus();
|
190 |
+
return false;
|
191 |
+
}
|
192 |
+
|
193 |
+
if(password.length < 6){
|
194 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Please provide your password. The password must be at least 6 characters long.');
|
195 |
+
$('#edit-accountpassword').focus();
|
196 |
+
return false;
|
197 |
+
}
|
198 |
+
|
199 |
+
if(!rePassword.length || password.length < 6){
|
200 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Please retype your password.');
|
201 |
+
$('#edit-retypepassword').focus();
|
202 |
+
return false;
|
203 |
+
}
|
204 |
+
|
205 |
+
if(password != rePassword){
|
206 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Please retype your password.');
|
207 |
+
return false;
|
208 |
+
}
|
209 |
+
|
210 |
+
|
211 |
+
return true;
|
212 |
+
},
|
213 |
+
isValidEmailAddress: function (emailAddress) {
|
214 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
215 |
+
return pattern.test(emailAddress);
|
216 |
+
},
|
217 |
+
}
|
218 |
+
$(document).ready(function()
|
219 |
+
{
|
220 |
+
ReveChat.init();
|
221 |
+
});
|
222 |
+
})(jQuery);
|
tags/2.0.2/readme.txt
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Reve Chat ===
|
2 |
+
Contributors: revechat_official
|
3 |
+
Tags: chat online, contact plugin, 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, ReveChat, REVE Chat, zendesk, Zopim live chat, clickdesk, olark, click desk, visitor analytics, web analytics, lead generation, online leads
|
4 |
+
|
5 |
+
Stable tag: 2.0.1
|
6 |
+
|
7 |
+
|
8 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
12 |
+
|
13 |
+
https://youtu.be/t1dykZ9Tg8U
|
14 |
+
|
15 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
16 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
17 |
+
|
18 |
+
**Key Features**
|
19 |
+
|
20 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
21 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
22 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
23 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
24 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
25 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
26 |
+
|
27 |
+
**What makes Reve Chat the best choice for live chat?**
|
28 |
+
|
29 |
+
* A simple and highly customizable Live chat solution
|
30 |
+
* User friendly interface and Dashboard
|
31 |
+
* Intuitive Chat Window
|
32 |
+
* Innovative and unique features
|
33 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
**Some Geeky Facts**
|
38 |
+
|
39 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
40 |
+
* Average uptime is 99.8%.
|
41 |
+
* Mobile Optimized Dashboard
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
46 |
+
|
47 |
+
|
48 |
+
== Changelog ==
|
49 |
+
|
50 |
+
|
51 |
+
= 1.2.0 =
|
52 |
+
|
53 |
+
* Feature: Add the Reve chat widget to your site!
|
54 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
55 |
+
|
56 |
+
= 2.0 =
|
57 |
+
* New Admin Menu page for REVE Chat
|
58 |
+
* New for integration
|
59 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
60 |
+
|
61 |
+
= 2.0.1 =
|
62 |
+
* Updated chat script
|
63 |
+
|
64 |
+
== Screenshots ==
|
65 |
+
|
66 |
+
1. Chat window on your website - active chat
|
67 |
+
2. Account Configuration - Link Up
|
68 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
69 |
+
4. Dashboard View - Open new browser tab
|
70 |
+
5. Widget Customization from Dashboard
|
71 |
+
|
72 |
+
== Frequently Asked Questions ==
|
73 |
+
|
74 |
+
= Do I have to install any software on my server to get this working? =
|
75 |
+
|
76 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
77 |
+
|
78 |
+
= Why should I use REVE Chat? =
|
79 |
+
|
80 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
81 |
+
|
82 |
+
= Which web browsers work best with this plugin =
|
83 |
+
|
84 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
85 |
+
|
86 |
+
= I managed to install the plugin but cannot link up to REVE Chat. Why? =
|
87 |
+
|
88 |
+
Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
|
89 |
+
|
90 |
+
= How much is price of REVE Chat? =
|
91 |
+
|
92 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
93 |
+
1. Basic (Free)
|
94 |
+
2. Standard
|
95 |
+
3. Advanced
|
96 |
+
Please click here to find out more about pricing
|
97 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
98 |
+
|
99 |
+
= How can I chat with more visitors at the same time? =
|
100 |
+
|
101 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
102 |
+
|
103 |
+
= How can I take further information regarding REVE Chat? =
|
104 |
+
|
105 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
106 |
+
|
107 |
+
= Is there any demo or trial period to do some testing? =
|
108 |
+
|
109 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
110 |
+
|
111 |
+
= Can I customize the REVE Chat window? =
|
112 |
+
|
113 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
114 |
+
|
115 |
+
* Changing the colour scheme
|
116 |
+
* Changing the font size
|
117 |
+
* Chat Widget text
|
118 |
+
* Offline Widget Text
|
119 |
+
* Prechat & Post chat form
|
120 |
+
|
121 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
122 |
+
|
123 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
124 |
+
|
125 |
+
== Usage ==
|
126 |
+
|
127 |
+
= Agent management =
|
128 |
+
|
129 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
130 |
+
|
131 |
+
= How to configuring a chat operator =
|
132 |
+
|
133 |
+
Please follow the below mentioned directions to manage your agents.
|
134 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
135 |
+
* List of your agent names
|
136 |
+
* Roles assigned to each and every agent
|
137 |
+
* Email address of your agents
|
138 |
+
* Phone numbers of your agents
|
139 |
+
* Status of your agents online or offline
|
140 |
+
* Each and every agent's last login time
|
141 |
+
* Total number of concurrent chats assigned to each and every agent
|
142 |
+
|
143 |
+
|
144 |
+
= Agent creation =
|
145 |
+
|
146 |
+
To create an agent, you need to follow the below mentioned steps:
|
147 |
+
* Login to your REVE Chat dashboard
|
148 |
+
* Click on 'Agent Management'
|
149 |
+
* For adding your agent, click on the 'Create Agent' option
|
150 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
151 |
+
|
152 |
+
= Chat Conversation =
|
153 |
+
|
154 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
155 |
+
|
156 |
+
= Engaged Visitors =
|
157 |
+
|
158 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
159 |
+
|
160 |
+
= Online Agents =
|
161 |
+
|
162 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
163 |
+
|
164 |
+
= New Chat Request =
|
165 |
+
|
166 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
167 |
+
|
168 |
+
= Chat Panel =
|
169 |
+
|
170 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
171 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
172 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
173 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
174 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
175 |
+
|
176 |
+
= Online Visitors =
|
177 |
+
|
178 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
179 |
+
|
180 |
+
= Queued Visitor =
|
181 |
+
|
182 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
183 |
+
|
184 |
+
= Monitoring Panel =
|
185 |
+
|
186 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
187 |
+
|
188 |
+
|
189 |
+
|
190 |
+
== Installation ==
|
191 |
+
|
192 |
+
*Server Requirements:* PHP4 or PHP5.
|
193 |
+
|
194 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
195 |
+
|
196 |
+
= Step-by-step Guide =
|
197 |
+
* Search Plugin from Wordpress Directory
|
198 |
+
* Install REVE Chat plugin
|
199 |
+
* Copy Account ID and Tracking ID from integration page
|
200 |
+
* Paste it REVE Chat Plugins setting page
|
201 |
+
* Customize the chat widget to your preference.
|
202 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
203 |
+
|
tags/2.0.2/revechat.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 2.0.2
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '2.0.1';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
49 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
50 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
51 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})(document, window);';
|
53 |
+
|
54 |
+
$script .='</script>';
|
55 |
+
|
56 |
+
echo $script ;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
} // END public static function activate
|
61 |
+
/*
|
62 |
+
* show parameter section
|
63 |
+
*/
|
64 |
+
public function registerSettings(){
|
65 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
66 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
67 |
+
}
|
68 |
+
/*
|
69 |
+
* admin panel
|
70 |
+
*/
|
71 |
+
public function adminPanels(){
|
72 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
73 |
+
// Add a new submenu under Settings:
|
74 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
75 |
+
}
|
76 |
+
/*
|
77 |
+
* revechat options
|
78 |
+
*/
|
79 |
+
public function reveChatOptions(){
|
80 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
81 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
82 |
+
}
|
83 |
+
// variables for the field and option names
|
84 |
+
$accountId = 'revechat_accountid';
|
85 |
+
|
86 |
+
// Read in existing option value from database
|
87 |
+
$val_accountId = get_option( $accountId );
|
88 |
+
|
89 |
+
if( isset($_POST[ $accountId ])){
|
90 |
+
|
91 |
+
// Read in existing option value from POST
|
92 |
+
$val_accountId = $_POST[ $accountId ];
|
93 |
+
update_option( $accountId , $val_accountId );
|
94 |
+
?>
|
95 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
?>
|
99 |
+
<div class="wrap" id="revechat">
|
100 |
+
|
101 |
+
<div class="box">
|
102 |
+
<div class="reve-chat-logo">
|
103 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
104 |
+
</div>
|
105 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
106 |
+
<p class="ajax_message"></p>
|
107 |
+
</div>
|
108 |
+
|
109 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
110 |
+
|
111 |
+
<?php
|
112 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
113 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
114 |
+
return;
|
115 |
+
}
|
116 |
+
|
117 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
118 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
119 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
120 |
+
?>
|
121 |
+
|
122 |
+
<p class="submit">
|
123 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
124 |
+
</p>
|
125 |
+
|
126 |
+
</form>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public function admin_menu()
|
134 |
+
{
|
135 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
136 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Deactivate the plugin
|
142 |
+
*/
|
143 |
+
public static function deactivate()
|
144 |
+
{
|
145 |
+
delete_option('revechat_accountid');
|
146 |
+
} // END public static function deactivate
|
147 |
+
|
148 |
+
public function admin_scripts(){
|
149 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
150 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
151 |
+
}
|
152 |
+
|
153 |
+
function add_action_links ( $links ) {
|
154 |
+
$menu_link = array(
|
155 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
156 |
+
);
|
157 |
+
return array_merge( $links, $menu_link );
|
158 |
+
}
|
159 |
+
} // END class WP_Plugin_Revechat
|
160 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
161 |
+
$revechat = new WP_Plugin_Revechat ;
|
162 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/2.0.2/screenshot-1.png
ADDED
Binary file
|
tags/2.0.2/screenshot-2.png
ADDED
Binary file
|
tags/2.0.2/screenshot-3.png
ADDED
Binary file
|
tags/2.0.2/screenshot-4.png
ADDED
Binary file
|
{css → tags/2.0.3/css}/admin-styles.css
RENAMED
File without changes
|
tags/2.0.3/css/ajax_loader.gif
ADDED
Binary file
|
tags/2.0.3/images/favicon.png
ADDED
Binary file
|
tags/2.0.3/images/logo.png
ADDED
Binary file
|
{includes → tags/2.0.3/includes}/choose-form.php
RENAMED
File without changes
|
{includes → tags/2.0.3/includes}/login-form.php
RENAMED
File without changes
|
tags/2.0.3/includes/remove-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
<!--
|
15 |
+
<div>
|
16 |
+
<div class="messages revechat_success">REVE Chat
|
17 |
+
is already installed.</div>
|
18 |
+
|
19 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
20 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
21 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
22 |
+
</div>
|
23 |
+
</div> -->
|
{includes → tags/2.0.3/includes}/signup-form.php
RENAMED
File without changes
|
tags/2.0.3/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/2.0.3/js/revechat-admin.js
ADDED
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
|
36 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
37 |
+
$('#revechat_aid').val(0);
|
38 |
+
$('#revechat-admin-settings-form').submit();
|
39 |
+
}
|
40 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
41 |
+
{
|
42 |
+
return ReveChat.alreadyHaveAccountForm();
|
43 |
+
}
|
44 |
+
else
|
45 |
+
{
|
46 |
+
return ReveChat.newLicenseForm();
|
47 |
+
}
|
48 |
+
|
49 |
+
});
|
50 |
+
},
|
51 |
+
|
52 |
+
alreadyHaveAccountForm: function()
|
53 |
+
{
|
54 |
+
|
55 |
+
if(this.validEmail())
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
60 |
+
if(!login.length)
|
61 |
+
{
|
62 |
+
$('#edit-revechat-account-email').focus();
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
66 |
+
|
67 |
+
ReveChat.signIn($('#edit-revechat-account-email').val());
|
68 |
+
return false;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
else
|
72 |
+
{
|
73 |
+
$('#edit-revechat-account-email').focus();
|
74 |
+
return false;
|
75 |
+
}
|
76 |
+
return true;
|
77 |
+
},
|
78 |
+
signIn: function (email) {
|
79 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
80 |
+
$.getJSON(signInUrl,
|
81 |
+
function(response)
|
82 |
+
{
|
83 |
+
if (response.error)
|
84 |
+
{
|
85 |
+
alert('Incorrect REVE Chat login');
|
86 |
+
$('#edit-revechat-account-email').focus();
|
87 |
+
return false;
|
88 |
+
}
|
89 |
+
else
|
90 |
+
{
|
91 |
+
$('#revechat_aid').val(response.data.account_id);
|
92 |
+
$('#revechat-admin-settings-form').submit();
|
93 |
+
}
|
94 |
+
});
|
95 |
+
},
|
96 |
+
newLicenseForm: function()
|
97 |
+
{
|
98 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
99 |
+
{
|
100 |
+
return true;
|
101 |
+
}
|
102 |
+
|
103 |
+
if(this.validateNewLicenseForm())
|
104 |
+
{
|
105 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
106 |
+
ReveChat.createLicense();
|
107 |
+
}
|
108 |
+
return false;
|
109 |
+
},
|
110 |
+
createLicense: function()
|
111 |
+
{
|
112 |
+
|
113 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
114 |
+
|
115 |
+
var firstName = $.trim($('#edit-firstname').val());
|
116 |
+
var lastName = $.trim($('#edit-lastname').val());
|
117 |
+
var email = $.trim($('#edit-email').val());
|
118 |
+
var password = $.trim($('#edit-accountpassword').val());
|
119 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
120 |
+
|
121 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
122 |
+
|
123 |
+
$.ajax({
|
124 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password },
|
125 |
+
type:'POST',
|
126 |
+
url:signUpUrl,
|
127 |
+
dataType: 'json',
|
128 |
+
cache:false,
|
129 |
+
success: function(response) {
|
130 |
+
if(response.status == 'error')
|
131 |
+
{
|
132 |
+
$('.ajax_message').removeClass('wait');
|
133 |
+
alert(response.message);
|
134 |
+
return false;
|
135 |
+
}
|
136 |
+
else if(response.status == 'success')
|
137 |
+
{
|
138 |
+
$('#edit-revechat-account-email').val(email);
|
139 |
+
ReveChat.signIn(email);
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
});
|
144 |
+
},
|
145 |
+
validEmail: function()
|
146 |
+
{
|
147 |
+
if($('#edit-submit').val() != 'Disconnect')
|
148 |
+
{
|
149 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
150 |
+
{
|
151 |
+
alert ('Please enter a valid email address.');
|
152 |
+
$('#edit-email').focus();
|
153 |
+
return false;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
return true;
|
157 |
+
},
|
158 |
+
|
159 |
+
validateNewLicenseForm: function()
|
160 |
+
{
|
161 |
+
|
162 |
+
var firstName = $.trim($('#edit-firstname').val());
|
163 |
+
var lastName = $.trim($('#edit-lastname').val());
|
164 |
+
var email = $.trim($('#edit-email').val());
|
165 |
+
var password = $.trim($('#edit-accountpassword').val());
|
166 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
if (!firstName.length)
|
171 |
+
{
|
172 |
+
alert('Please provide your first name.');
|
173 |
+
$('#edit-firstname').focus();
|
174 |
+
return false;
|
175 |
+
}
|
176 |
+
|
177 |
+
if (!lastName.length)
|
178 |
+
{
|
179 |
+
alert('Please provide your last name.');
|
180 |
+
$('#edit-lastname').focus();
|
181 |
+
return false;
|
182 |
+
}
|
183 |
+
|
184 |
+
if (!ReveChat.isValidEmailAddress(email))
|
185 |
+
{
|
186 |
+
alert('Please provide your valid email address.');
|
187 |
+
$('#edit-email').focus();
|
188 |
+
return false;
|
189 |
+
}
|
190 |
+
|
191 |
+
if(password.length < 6){
|
192 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
193 |
+
$('#edit-accountpassword').focus();
|
194 |
+
return false;
|
195 |
+
}
|
196 |
+
|
197 |
+
if(!rePassword.length || password.length < 6){
|
198 |
+
alert('Please retype your password.');
|
199 |
+
$('#edit-retypepassword').focus();
|
200 |
+
return false;
|
201 |
+
}
|
202 |
+
|
203 |
+
if(password != rePassword){
|
204 |
+
alert('Password does not match the confirm password.')
|
205 |
+
return false;
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
return true;
|
210 |
+
},
|
211 |
+
isValidEmailAddress: function (emailAddress) {
|
212 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
213 |
+
return pattern.test(emailAddress);
|
214 |
+
},
|
215 |
+
}
|
216 |
+
$(document).ready(function()
|
217 |
+
{
|
218 |
+
ReveChat.init();
|
219 |
+
});
|
220 |
+
})(jQuery);
|
tags/2.0.3/readme.txt
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Reve Chat ===
|
2 |
+
Contributors: revechat_official
|
3 |
+
Tags: chat online, contact plugin, 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, ReveChat, REVE Chat, zendesk, Zopim live chat, clickdesk, olark, click desk, visitor analytics, web analytics, lead generation, online leads
|
4 |
+
|
5 |
+
Stable tag: 2.0.2
|
6 |
+
|
7 |
+
|
8 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
12 |
+
|
13 |
+
https://youtu.be/t1dykZ9Tg8U
|
14 |
+
|
15 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
16 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
17 |
+
|
18 |
+
**Key Features**
|
19 |
+
|
20 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
21 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
22 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
23 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
24 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
25 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
26 |
+
|
27 |
+
**What makes Reve Chat the best choice for live chat?**
|
28 |
+
|
29 |
+
* A simple and highly customizable Live chat solution
|
30 |
+
* User friendly interface and Dashboard
|
31 |
+
* Intuitive Chat Window
|
32 |
+
* Innovative and unique features
|
33 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
**Some Geeky Facts**
|
38 |
+
|
39 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
40 |
+
* Average uptime is 99.8%.
|
41 |
+
* Mobile Optimized Dashboard
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
46 |
+
|
47 |
+
|
48 |
+
== Changelog ==
|
49 |
+
|
50 |
+
|
51 |
+
= 1.2.0 =
|
52 |
+
|
53 |
+
* Feature: Add the Reve chat widget to your site!
|
54 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
55 |
+
|
56 |
+
= 2.0 =
|
57 |
+
* New Admin Menu page for REVE Chat
|
58 |
+
* New for integration
|
59 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
60 |
+
|
61 |
+
= 2.0.1 =
|
62 |
+
* Updated chat script
|
63 |
+
|
64 |
+
|
65 |
+
= 2.0.3 =
|
66 |
+
* updated the UI
|
67 |
+
|
68 |
+
== Screenshots ==
|
69 |
+
|
70 |
+
1. Chat window on your website - active chat
|
71 |
+
2. Account Configuration - Link Up
|
72 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
73 |
+
4. Dashboard View - Open new browser tab
|
74 |
+
5. Widget Customization from Dashboard
|
75 |
+
|
76 |
+
== Frequently Asked Questions ==
|
77 |
+
|
78 |
+
= Do I have to install any software on my server to get this working? =
|
79 |
+
|
80 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
81 |
+
|
82 |
+
= Why should I use REVE Chat? =
|
83 |
+
|
84 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
85 |
+
|
86 |
+
= Which web browsers work best with this plugin =
|
87 |
+
|
88 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
89 |
+
|
90 |
+
= I managed to install the plugin but cannot link up to REVE Chat. Why? =
|
91 |
+
|
92 |
+
Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
|
93 |
+
|
94 |
+
= How much is price of REVE Chat? =
|
95 |
+
|
96 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
97 |
+
1. Basic (Free)
|
98 |
+
2. Standard
|
99 |
+
3. Advanced
|
100 |
+
Please click here to find out more about pricing
|
101 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
102 |
+
|
103 |
+
= How can I chat with more visitors at the same time? =
|
104 |
+
|
105 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
106 |
+
|
107 |
+
= How can I take further information regarding REVE Chat? =
|
108 |
+
|
109 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
110 |
+
|
111 |
+
= Is there any demo or trial period to do some testing? =
|
112 |
+
|
113 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
114 |
+
|
115 |
+
= Can I customize the REVE Chat window? =
|
116 |
+
|
117 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
118 |
+
|
119 |
+
* Changing the colour scheme
|
120 |
+
* Changing the font size
|
121 |
+
* Chat Widget text
|
122 |
+
* Offline Widget Text
|
123 |
+
* Prechat & Post chat form
|
124 |
+
|
125 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
126 |
+
|
127 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
128 |
+
|
129 |
+
== Usage ==
|
130 |
+
|
131 |
+
= Agent management =
|
132 |
+
|
133 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
134 |
+
|
135 |
+
= How to configuring a chat operator =
|
136 |
+
|
137 |
+
Please follow the below mentioned directions to manage your agents.
|
138 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
139 |
+
* List of your agent names
|
140 |
+
* Roles assigned to each and every agent
|
141 |
+
* Email address of your agents
|
142 |
+
* Phone numbers of your agents
|
143 |
+
* Status of your agents online or offline
|
144 |
+
* Each and every agent's last login time
|
145 |
+
* Total number of concurrent chats assigned to each and every agent
|
146 |
+
|
147 |
+
|
148 |
+
= Agent creation =
|
149 |
+
|
150 |
+
To create an agent, you need to follow the below mentioned steps:
|
151 |
+
* Login to your REVE Chat dashboard
|
152 |
+
* Click on 'Agent Management'
|
153 |
+
* For adding your agent, click on the 'Create Agent' option
|
154 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
155 |
+
|
156 |
+
= Chat Conversation =
|
157 |
+
|
158 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
159 |
+
|
160 |
+
= Engaged Visitors =
|
161 |
+
|
162 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
163 |
+
|
164 |
+
= Online Agents =
|
165 |
+
|
166 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
167 |
+
|
168 |
+
= New Chat Request =
|
169 |
+
|
170 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
171 |
+
|
172 |
+
= Chat Panel =
|
173 |
+
|
174 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
175 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
176 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
177 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
178 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
179 |
+
|
180 |
+
= Online Visitors =
|
181 |
+
|
182 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
183 |
+
|
184 |
+
= Queued Visitor =
|
185 |
+
|
186 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
187 |
+
|
188 |
+
= Monitoring Panel =
|
189 |
+
|
190 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
== Installation ==
|
195 |
+
|
196 |
+
*Server Requirements:* PHP4 or PHP5.
|
197 |
+
|
198 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
199 |
+
|
200 |
+
= Step-by-step Guide =
|
201 |
+
* Search Plugin from Wordpress Directory
|
202 |
+
* Install REVE Chat plugin
|
203 |
+
* Copy Account ID and Tracking ID from integration page
|
204 |
+
* Paste it REVE Chat Plugins setting page
|
205 |
+
* Customize the chat widget to your preference.
|
206 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
207 |
+
|
tags/2.0.3/revechat.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 2.0.3
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '2.0.1';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
49 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
50 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
51 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})(document, window);';
|
53 |
+
|
54 |
+
$script .='</script>';
|
55 |
+
|
56 |
+
echo $script ;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
} // END public static function activate
|
61 |
+
/*
|
62 |
+
* show parameter section
|
63 |
+
*/
|
64 |
+
public function registerSettings(){
|
65 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
66 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
67 |
+
}
|
68 |
+
/*
|
69 |
+
* admin panel
|
70 |
+
*/
|
71 |
+
public function adminPanels(){
|
72 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
73 |
+
// Add a new submenu under Settings:
|
74 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
75 |
+
}
|
76 |
+
/*
|
77 |
+
* revechat options
|
78 |
+
*/
|
79 |
+
public function reveChatOptions(){
|
80 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
81 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
82 |
+
}
|
83 |
+
// variables for the field and option names
|
84 |
+
$accountId = 'revechat_accountid';
|
85 |
+
|
86 |
+
// Read in existing option value from database
|
87 |
+
$val_accountId = get_option( $accountId );
|
88 |
+
|
89 |
+
if( isset($_POST[ $accountId ])){
|
90 |
+
|
91 |
+
// Read in existing option value from POST
|
92 |
+
$val_accountId = $_POST[ $accountId ];
|
93 |
+
update_option( $accountId , $val_accountId );
|
94 |
+
?>
|
95 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
?>
|
99 |
+
<div class="wrap" id="revechat">
|
100 |
+
|
101 |
+
<div>
|
102 |
+
<div class="reve-chat-logo">
|
103 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
107 |
+
|
108 |
+
<?php
|
109 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
110 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
115 |
+
?>
|
116 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
117 |
+
<p class="ajax_message"></p>
|
118 |
+
</div>
|
119 |
+
<?php
|
120 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
121 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
122 |
+
?>
|
123 |
+
|
124 |
+
|
125 |
+
|
126 |
+
</form>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public function admin_menu()
|
134 |
+
{
|
135 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
136 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Deactivate the plugin
|
142 |
+
*/
|
143 |
+
public static function deactivate()
|
144 |
+
{
|
145 |
+
delete_option('revechat_accountid');
|
146 |
+
} // END public static function deactivate
|
147 |
+
|
148 |
+
public function admin_scripts(){
|
149 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
150 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
151 |
+
}
|
152 |
+
|
153 |
+
function add_action_links ( $links ) {
|
154 |
+
$menu_link = array(
|
155 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
156 |
+
);
|
157 |
+
return array_merge( $links, $menu_link );
|
158 |
+
}
|
159 |
+
} // END class WP_Plugin_Revechat
|
160 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
161 |
+
$revechat = new WP_Plugin_Revechat ;
|
162 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/2.0.3/screenshot-1.jpg
ADDED
Binary file
|
tags/2.0.3/screenshot-2.jpg
ADDED
Binary file
|
tags/2.0.3/screenshot-3.jpg
ADDED
Binary file
|
tags/2.0.3/screenshot-4.jpg
ADDED
Binary file
|
tags/2.0.4/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/2.0.4/css/ajax_loader.gif
ADDED
Binary file
|
tags/2.0.4/images/favicon.png
ADDED
Binary file
|
tags/2.0.4/images/logo.png
ADDED
Binary file
|
tags/2.0.4/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/2.0.4/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/2.0.4/includes/remove-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
<!--
|
15 |
+
<div>
|
16 |
+
<div class="messages revechat_success">REVE Chat
|
17 |
+
is already installed.</div>
|
18 |
+
|
19 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
20 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
21 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
22 |
+
</div>
|
23 |
+
</div> -->
|
tags/2.0.4/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/2.0.4/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/2.0.4/js/revechat-admin.js
ADDED
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
|
36 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
37 |
+
$('#revechat_aid').val(0);
|
38 |
+
$('#revechat-admin-settings-form').submit();
|
39 |
+
}
|
40 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
41 |
+
{
|
42 |
+
return ReveChat.alreadyHaveAccountForm();
|
43 |
+
}
|
44 |
+
else
|
45 |
+
{
|
46 |
+
return ReveChat.newLicenseForm();
|
47 |
+
}
|
48 |
+
|
49 |
+
});
|
50 |
+
},
|
51 |
+
|
52 |
+
alreadyHaveAccountForm: function()
|
53 |
+
{
|
54 |
+
|
55 |
+
if(this.validEmail())
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
60 |
+
if(!login.length)
|
61 |
+
{
|
62 |
+
$('#edit-revechat-account-email').focus();
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
66 |
+
|
67 |
+
ReveChat.signIn($('#edit-revechat-account-email').val());
|
68 |
+
return false;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
else
|
72 |
+
{
|
73 |
+
$('#edit-revechat-account-email').focus();
|
74 |
+
return false;
|
75 |
+
}
|
76 |
+
return true;
|
77 |
+
},
|
78 |
+
signIn: function (email) {
|
79 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
80 |
+
$.getJSON(signInUrl,
|
81 |
+
function(response)
|
82 |
+
{
|
83 |
+
if (response.error)
|
84 |
+
{
|
85 |
+
alert('Incorrect REVE Chat login');
|
86 |
+
$('#edit-revechat-account-email').focus();
|
87 |
+
return false;
|
88 |
+
}
|
89 |
+
else
|
90 |
+
{
|
91 |
+
$('#revechat_aid').val(response.data.account_id);
|
92 |
+
$('#revechat-admin-settings-form').submit();
|
93 |
+
}
|
94 |
+
});
|
95 |
+
},
|
96 |
+
newLicenseForm: function()
|
97 |
+
{
|
98 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
99 |
+
{
|
100 |
+
return true;
|
101 |
+
}
|
102 |
+
|
103 |
+
if(this.validateNewLicenseForm())
|
104 |
+
{
|
105 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
106 |
+
ReveChat.createLicense();
|
107 |
+
}
|
108 |
+
return false;
|
109 |
+
},
|
110 |
+
createLicense: function()
|
111 |
+
{
|
112 |
+
|
113 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
114 |
+
|
115 |
+
var firstName = $.trim($('#edit-firstname').val());
|
116 |
+
var lastName = $.trim($('#edit-lastname').val());
|
117 |
+
var email = $.trim($('#edit-email').val());
|
118 |
+
var password = $.trim($('#edit-accountpassword').val());
|
119 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
120 |
+
|
121 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
122 |
+
|
123 |
+
$.ajax({
|
124 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
125 |
+
type:'POST',
|
126 |
+
url:signUpUrl,
|
127 |
+
dataType: 'json',
|
128 |
+
cache:false,
|
129 |
+
success: function(response) {
|
130 |
+
if(response.status == 'error')
|
131 |
+
{
|
132 |
+
$('.ajax_message').removeClass('wait');
|
133 |
+
alert(response.message);
|
134 |
+
return false;
|
135 |
+
}
|
136 |
+
else if(response.status == 'success')
|
137 |
+
{
|
138 |
+
$('#edit-revechat-account-email').val(email);
|
139 |
+
ReveChat.signIn(email);
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
});
|
144 |
+
},
|
145 |
+
validEmail: function()
|
146 |
+
{
|
147 |
+
if($('#edit-submit').val() != 'Disconnect')
|
148 |
+
{
|
149 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
150 |
+
{
|
151 |
+
alert ('Please enter a valid email address.');
|
152 |
+
$('#edit-email').focus();
|
153 |
+
return false;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
return true;
|
157 |
+
},
|
158 |
+
|
159 |
+
validateNewLicenseForm: function()
|
160 |
+
{
|
161 |
+
|
162 |
+
var firstName = $.trim($('#edit-firstname').val());
|
163 |
+
var lastName = $.trim($('#edit-lastname').val());
|
164 |
+
var email = $.trim($('#edit-email').val());
|
165 |
+
var password = $.trim($('#edit-accountpassword').val());
|
166 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
if (!firstName.length)
|
171 |
+
{
|
172 |
+
alert('Please provide your first name.');
|
173 |
+
$('#edit-firstname').focus();
|
174 |
+
return false;
|
175 |
+
}
|
176 |
+
|
177 |
+
if (!lastName.length)
|
178 |
+
{
|
179 |
+
alert('Please provide your last name.');
|
180 |
+
$('#edit-lastname').focus();
|
181 |
+
return false;
|
182 |
+
}
|
183 |
+
|
184 |
+
if (!ReveChat.isValidEmailAddress(email))
|
185 |
+
{
|
186 |
+
alert('Please provide your valid email address.');
|
187 |
+
$('#edit-email').focus();
|
188 |
+
return false;
|
189 |
+
}
|
190 |
+
|
191 |
+
if(password.length < 6){
|
192 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
193 |
+
$('#edit-accountpassword').focus();
|
194 |
+
return false;
|
195 |
+
}
|
196 |
+
|
197 |
+
if(!rePassword.length || password.length < 6){
|
198 |
+
alert('Please retype your password.');
|
199 |
+
$('#edit-retypepassword').focus();
|
200 |
+
return false;
|
201 |
+
}
|
202 |
+
|
203 |
+
if(password != rePassword){
|
204 |
+
alert('Password does not match the confirm password.')
|
205 |
+
return false;
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
return true;
|
210 |
+
},
|
211 |
+
isValidEmailAddress: function (emailAddress) {
|
212 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
213 |
+
return pattern.test(emailAddress);
|
214 |
+
},
|
215 |
+
}
|
216 |
+
$(document).ready(function()
|
217 |
+
{
|
218 |
+
ReveChat.init();
|
219 |
+
});
|
220 |
+
})(jQuery);
|
tags/2.0.4/readme.txt
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP live chat plugin for WordPress ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: free chat, tawk.to, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.1
|
6 |
+
|
7 |
+
|
8 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
12 |
+
|
13 |
+
https://youtu.be/t1dykZ9Tg8U
|
14 |
+
|
15 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
16 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
17 |
+
|
18 |
+
**Key Features**
|
19 |
+
|
20 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
21 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
22 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
23 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
24 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
25 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
26 |
+
|
27 |
+
|
28 |
+
**What makes Reve Chat the best choice for live chat?**
|
29 |
+
|
30 |
+
* A simple and highly customizable Live chat solution
|
31 |
+
* User friendly interface and Dashboard
|
32 |
+
* Intuitive Chat Window
|
33 |
+
* Innovative and unique features
|
34 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
35 |
+
|
36 |
+
|
37 |
+
**Supported Language**
|
38 |
+
|
39 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
40 |
+
|
41 |
+
|
42 |
+
**Some Geeky Facts**
|
43 |
+
|
44 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
45 |
+
* Average uptime is 99.8%.
|
46 |
+
* Mobile Optimized Dashboard
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
51 |
+
|
52 |
+
|
53 |
+
== Changelog ==
|
54 |
+
|
55 |
+
|
56 |
+
= 1.2.0 =
|
57 |
+
|
58 |
+
* Feature: Add the Reve chat widget to your site!
|
59 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
60 |
+
|
61 |
+
= 2.0 =
|
62 |
+
* New Admin Menu page for REVE Chat
|
63 |
+
* New for integration
|
64 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
65 |
+
|
66 |
+
= 2.0.1 =
|
67 |
+
* Updated chat script
|
68 |
+
|
69 |
+
= 2.0.3 =
|
70 |
+
* updated the UI
|
71 |
+
|
72 |
+
|
73 |
+
== Screenshots ==
|
74 |
+
|
75 |
+
1. Chat window on your website - active chat
|
76 |
+
2. Account Configuration - Link Up
|
77 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
78 |
+
4. Dashboard View - Open new browser tab
|
79 |
+
5. Widget Customization from Dashboard
|
80 |
+
|
81 |
+
== Frequently Asked Questions ==
|
82 |
+
|
83 |
+
= Do I have to install any software on my server to get this working? =
|
84 |
+
|
85 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
86 |
+
|
87 |
+
= Why should I use REVE Chat? =
|
88 |
+
|
89 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
90 |
+
|
91 |
+
= Which web browsers work best with this plugin =
|
92 |
+
|
93 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
94 |
+
|
95 |
+
= I managed to install the plugin but cannot link up to REVE Chat. Why? =
|
96 |
+
|
97 |
+
Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
|
98 |
+
|
99 |
+
= How much is price of REVE Chat? =
|
100 |
+
|
101 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
102 |
+
1. Basic (Free)
|
103 |
+
2. Standard
|
104 |
+
3. Advanced
|
105 |
+
Please click here to find out more about pricing
|
106 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
107 |
+
|
108 |
+
= How can I chat with more visitors at the same time? =
|
109 |
+
|
110 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
111 |
+
|
112 |
+
= How can I take further information regarding REVE Chat? =
|
113 |
+
|
114 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
115 |
+
|
116 |
+
= Is there any demo or trial period to do some testing? =
|
117 |
+
|
118 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
119 |
+
|
120 |
+
= Can I customize the REVE Chat window? =
|
121 |
+
|
122 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
123 |
+
|
124 |
+
* Changing the colour scheme
|
125 |
+
* Changing the font size
|
126 |
+
* Chat Widget text
|
127 |
+
* Offline Widget Text
|
128 |
+
* Prechat & Post chat form
|
129 |
+
|
130 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
131 |
+
|
132 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
133 |
+
|
134 |
+
== Usage ==
|
135 |
+
|
136 |
+
= Agent management =
|
137 |
+
|
138 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
139 |
+
|
140 |
+
= How to configuring a chat operator =
|
141 |
+
|
142 |
+
Please follow the below mentioned directions to manage your agents.
|
143 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
144 |
+
* List of your agent names
|
145 |
+
* Roles assigned to each and every agent
|
146 |
+
* Email address of your agents
|
147 |
+
* Phone numbers of your agents
|
148 |
+
* Status of your agents online or offline
|
149 |
+
* Each and every agent's last login time
|
150 |
+
* Total number of concurrent chats assigned to each and every agent
|
151 |
+
|
152 |
+
|
153 |
+
= Agent creation =
|
154 |
+
|
155 |
+
To create an agent, you need to follow the below mentioned steps:
|
156 |
+
* Login to your REVE Chat dashboard
|
157 |
+
* Click on 'Agent Management'
|
158 |
+
* For adding your agent, click on the 'Create Agent' option
|
159 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
160 |
+
|
161 |
+
= Chat Conversation =
|
162 |
+
|
163 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
164 |
+
|
165 |
+
= Engaged Visitors =
|
166 |
+
|
167 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
168 |
+
|
169 |
+
= Online Agents =
|
170 |
+
|
171 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
172 |
+
|
173 |
+
= New Chat Request =
|
174 |
+
|
175 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
176 |
+
|
177 |
+
= Chat Panel =
|
178 |
+
|
179 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
180 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
181 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
182 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
183 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
184 |
+
|
185 |
+
= Online Visitors =
|
186 |
+
|
187 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
188 |
+
|
189 |
+
= Queued Visitor =
|
190 |
+
|
191 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
192 |
+
|
193 |
+
= Monitoring Panel =
|
194 |
+
|
195 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
196 |
+
|
197 |
+
|
198 |
+
<a href="https://www.revechat.com/signup/?utm_source=wordpress.org&utm_medium=integration&utm_campaign=WordpressIntegration" target="_blank">Signup for our Live Chat here</a>
|
199 |
+
|
200 |
+
== Installation ==
|
201 |
+
|
202 |
+
*Server Requirements:* PHP4 or PHP5.
|
203 |
+
|
204 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
205 |
+
|
206 |
+
= Step-by-step Guide =
|
207 |
+
* Search Plugin from Wordpress Directory
|
208 |
+
* Install REVE Chat plugin
|
209 |
+
* Copy Account ID and Tracking ID from integration page
|
210 |
+
* Paste it REVE Chat Plugins setting page
|
211 |
+
* Customize the chat widget to your preference.
|
212 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
213 |
+
|
tags/2.0.4/revechat.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 2.0.4
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '2.0.1';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
49 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
50 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
51 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})(document, window);';
|
53 |
+
|
54 |
+
$script .='</script>';
|
55 |
+
|
56 |
+
echo $script ;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
} // END public static function activate
|
61 |
+
/*
|
62 |
+
* show parameter section
|
63 |
+
*/
|
64 |
+
public function registerSettings(){
|
65 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
66 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
67 |
+
}
|
68 |
+
/*
|
69 |
+
* admin panel
|
70 |
+
*/
|
71 |
+
public function adminPanels(){
|
72 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
73 |
+
// Add a new submenu under Settings:
|
74 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
75 |
+
}
|
76 |
+
/*
|
77 |
+
* revechat options
|
78 |
+
*/
|
79 |
+
public function reveChatOptions(){
|
80 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
81 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
82 |
+
}
|
83 |
+
// variables for the field and option names
|
84 |
+
$accountId = 'revechat_accountid';
|
85 |
+
|
86 |
+
// Read in existing option value from database
|
87 |
+
$val_accountId = get_option( $accountId );
|
88 |
+
|
89 |
+
if( isset($_POST[ $accountId ])){
|
90 |
+
|
91 |
+
// Read in existing option value from POST
|
92 |
+
$val_accountId = $_POST[ $accountId ];
|
93 |
+
update_option( $accountId , $val_accountId );
|
94 |
+
?>
|
95 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
?>
|
99 |
+
<div class="wrap" id="revechat">
|
100 |
+
|
101 |
+
<div>
|
102 |
+
<div class="reve-chat-logo">
|
103 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
107 |
+
|
108 |
+
<?php
|
109 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
110 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
115 |
+
?>
|
116 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
117 |
+
<p class="ajax_message"></p>
|
118 |
+
</div>
|
119 |
+
<?php
|
120 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
121 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
122 |
+
?>
|
123 |
+
|
124 |
+
|
125 |
+
|
126 |
+
</form>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public function admin_menu()
|
134 |
+
{
|
135 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
136 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Deactivate the plugin
|
142 |
+
*/
|
143 |
+
public static function deactivate()
|
144 |
+
{
|
145 |
+
delete_option('revechat_accountid');
|
146 |
+
} // END public static function deactivate
|
147 |
+
|
148 |
+
public function admin_scripts(){
|
149 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
150 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
151 |
+
}
|
152 |
+
|
153 |
+
function add_action_links ( $links ) {
|
154 |
+
$menu_link = array(
|
155 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
156 |
+
);
|
157 |
+
return array_merge( $links, $menu_link );
|
158 |
+
}
|
159 |
+
} // END class WP_Plugin_Revechat
|
160 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
161 |
+
$revechat = new WP_Plugin_Revechat ;
|
162 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/2.0.4/screenshot-1.jpg
ADDED
Binary file
|
tags/2.0.4/screenshot-2.jpg
ADDED
Binary file
|
tags/2.0.4/screenshot-3.jpg
ADDED
Binary file
|
tags/2.0.4/screenshot-4.jpg
ADDED
Binary file
|
tags/2.0/css/admin-styles.css
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat #edit-choose-form h3,
|
2 |
+
#revechat #revechat_already_have h3,
|
3 |
+
#revechat #revechat_new_account h3{
|
4 |
+
color: coral;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form{}
|
7 |
+
#revechat ul#revechat_choose_form li{
|
8 |
+
list-style: none;
|
9 |
+
display: block;
|
10 |
+
}
|
11 |
+
#revechat ul#revechat_choose_form li label{
|
12 |
+
display: inline-block;
|
13 |
+
}
|
14 |
+
#revechat .revechat_email_error{
|
15 |
+
color: red;
|
16 |
+
}
|
17 |
+
#revechat .ajax_message {
|
18 |
+
display: none;
|
19 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
20 |
+
padding: 0;
|
21 |
+
margin-top: 1em;
|
22 |
+
}
|
23 |
+
#revechat .ajax_message.wait,
|
24 |
+
#revechat .ajax_message.message
|
25 |
+
{
|
26 |
+
display: block;
|
27 |
+
font-size: 1.2em;
|
28 |
+
padding: 20px;
|
29 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
30 |
+
}
|
31 |
+
#revechat .ajax_message.wait {
|
32 |
+
text-indent: 28px;
|
33 |
+
background-color: #fff;
|
34 |
+
}
|
35 |
+
#revechat .ajax_message.message {
|
36 |
+
background-image: none;
|
37 |
+
text-indent: 0px;
|
38 |
+
}
|
39 |
+
|
40 |
+
#revechat .ajax_message.message.alert{
|
41 |
+
background-color: #f2dede;
|
42 |
+
border-color: #ebccd1;
|
43 |
+
color: #a94442;
|
44 |
+
padding: 20px;
|
45 |
+
}
|
46 |
+
#revechat .revechat_success_message{
|
47 |
+
background: #ffffff;
|
48 |
+
padding: 50px;
|
49 |
+
height: auto;
|
50 |
+
font-size: 1.5em;
|
51 |
+
border-bottom: 5px solid #F16915;
|
52 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
53 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
}
|
56 |
+
#revechat .revechat_success_message h3{
|
57 |
+
font-weight: bold;
|
58 |
+
border-bottom: 1px solid #B1B4B9;
|
59 |
+
padding-bottom: 20px;
|
60 |
+
line-height: 2em;
|
61 |
+
}
|
62 |
+
#revechat .messages.revechat_success{
|
63 |
+
background-color: #dff0d8;
|
64 |
+
border: 1px solid #bee99a;
|
65 |
+
color: #3c763d;
|
66 |
+
padding: 20px;
|
67 |
+
margin-bottom: 30px;
|
68 |
+
font-weight: 600;
|
69 |
+
}
|
70 |
+
#revechat .form-submit{
|
71 |
+
background: #FF5800 none repeat scroll 0 0;
|
72 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
73 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
74 |
+
box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
color: #fff;
|
76 |
+
text-decoration: none;
|
77 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
78 |
+
}
|
79 |
+
|
80 |
+
#revechat #revechat-admin-settings-form {
|
81 |
+
padding: 18px;
|
82 |
+
}
|
83 |
+
#revechat fieldset {
|
84 |
+
border: 1px solid #c0c0c0;
|
85 |
+
margin-top: 20px;
|
86 |
+
}
|
87 |
+
#revechat #revechat_already_have > h3 {
|
88 |
+
margin-top: 19px;
|
89 |
+
}
|
90 |
+
#revechat ul#revechat_choose_form li {
|
91 |
+
display: block;
|
92 |
+
list-style: outside none none;
|
93 |
+
padding-left: 20px;
|
94 |
+
}
|
95 |
+
#revechat .form-wrapper {
|
96 |
+
padding: 16px;
|
97 |
+
padding-bottom: 31px;
|
98 |
+
}
|
99 |
+
#revechat .form-item > label {
|
100 |
+
display: table;
|
101 |
+
margin-bottom: 11px;
|
102 |
+
margin-top: 20px;
|
103 |
+
}
|
104 |
+
#revechat input.form-submit{
|
105 |
+
cursor: pointer;
|
106 |
+
}
|
tags/2.0/css/ajax_loader.gif
ADDED
Binary file
|
tags/2.0/images/favicon.png
ADDED
Binary file
|
tags/2.0/images/logo.png
ADDED
Binary file
|
tags/2.0/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form">
|
2 |
+
<h3>Already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/2.0/includes/login-form.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat Login Email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
</div><!-- revechat_already_have -->
|
tags/2.0/includes/remove-form.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div>
|
2 |
+
<div class="messages revechat_success">REVE Chat
|
3 |
+
is already installed.</div>
|
4 |
+
|
5 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
6 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
7 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
8 |
+
</div>
|
9 |
+
</div>
|
tags/2.0/includes/signup-form.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-name">
|
8 |
+
<?php
|
9 |
+
_e("Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="name" id="edit-name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
<tr>
|
19 |
+
<th>
|
20 |
+
<label for="edit-email">
|
21 |
+
<?php
|
22 |
+
_e('Email')
|
23 |
+
?>
|
24 |
+
</label>
|
25 |
+
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="email" id="edit-email">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-phone">
|
35 |
+
<?php
|
36 |
+
_e('Phone')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
</th>
|
40 |
+
<td>
|
41 |
+
<input type="text" class="regular-text" name="Phone" id="edit-phone">
|
42 |
+
</td>
|
43 |
+
</tr>
|
44 |
+
</table>
|
45 |
+
|
46 |
+
</div>
|
tags/2.0/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/2.0/js/revechat-admin.js
ADDED
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
//e.preventDefault();
|
36 |
+
|
37 |
+
if($('#edit-submit').val() == 'Remove'){
|
38 |
+
$('#revechat_aid').val(0);
|
39 |
+
$('#revechat-admin-settings-form').submit();
|
40 |
+
}
|
41 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
42 |
+
{
|
43 |
+
return ReveChat.alreadyHaveAccountForm();
|
44 |
+
}
|
45 |
+
else
|
46 |
+
{
|
47 |
+
return ReveChat.newLicenseForm();
|
48 |
+
}
|
49 |
+
|
50 |
+
});
|
51 |
+
},
|
52 |
+
|
53 |
+
alreadyHaveAccountForm: function()
|
54 |
+
{
|
55 |
+
|
56 |
+
if(this.validEmail())
|
57 |
+
{
|
58 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
59 |
+
{
|
60 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
61 |
+
if(!login.length)
|
62 |
+
{
|
63 |
+
$('#edit-revechat-account-email').focus();
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
67 |
+
var signInUrl = baseUrl +'/license/adminId/'+$('#edit-revechat-account-email').val()+'/?callback=?';
|
68 |
+
$.getJSON(signInUrl,
|
69 |
+
function(response)
|
70 |
+
{
|
71 |
+
if (response.error)
|
72 |
+
{
|
73 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Incorrect REVE Chat login.');
|
74 |
+
$('#edit-revechat-account-email').focus();
|
75 |
+
return false;
|
76 |
+
}
|
77 |
+
else
|
78 |
+
{
|
79 |
+
$('#revechat_aid').val(response.data.account_id);
|
80 |
+
$('#revechat-admin-settings-form').submit();
|
81 |
+
}
|
82 |
+
});
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
else
|
87 |
+
{
|
88 |
+
$('.ajax_message').removeClass('wait').addClass('message alert').html('Invalid Email.');
|
89 |
+
$('#edit-revechat-account-email').focus();
|
90 |
+
return false;
|
91 |
+
}
|
92 |
+
return true;
|
93 |
+
},
|
94 |
+
|
95 |
+
newLicenseForm: function()
|
96 |
+
{
|
97 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
98 |
+
{
|
99 |
+
return true;
|
100 |
+
}
|
101 |
+
|
102 |
+
if(this.validateNewLicenseForm())
|
103 |
+
{
|
104 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
105 |
+
|
106 |
+
ReveChat.createLicense();
|
107 |
+
}
|
108 |
+
return false;
|
109 |
+
},
|
110 |
+
createLicense: function()
|
111 |
+
{
|
112 |
+
|
113 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
114 |
+
|
115 |
+
var signUpUrl = baseUrl + '/revechat/rest/api/signup.do';
|
116 |
+
|
117 |
+
$.ajax({
|
118 |
+
data: { 'firstname':$('#edit-name').val(), 'lastname':' ', 'mailAddr':$('#edit-email').val(), 'phoneNo':$('#edit-phone').val() },
|
119 |
+
type:'POST',
|
120 |
+
url:signUpUrl,
|
121 |
+
dataType: 'json',
|
122 |
+
cache:false,
|
123 |
+
success: function(response) {
|
124 |
+
if(response.error)
|
125 |
+
{
|
126 |
+
$('.ajax_message').html(response.error).addClass('message alert').removeClass('wait');
|
127 |
+
return false;
|
128 |
+
}
|
129 |
+
else if(response.success)
|
130 |
+
{
|
131 |
+
$('#revechat-admin-settings-form').children('div').remove();
|
132 |
+
var message = '<div class="revechat_success_message">';
|
133 |
+
message += '<h3>Thank you for sigining up with REVE Chat</h3>';
|
134 |
+
message += '<p>A verification link has been sent to your registered email address from <strong><a href="#">support@revechat.com</a></strong>. Kindly verify your email to complete the signup process</p>';
|
135 |
+
message += '<p>Then come backe again to integrate REVE Chat in your website.</p>';
|
136 |
+
message += '</div>';
|
137 |
+
$(message).appendTo('#revechat-admin-settings-form');
|
138 |
+
$('p.submit').remove();
|
139 |
+
$('.ajax_message').removeClass('wait');
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
});
|
144 |
+
},
|
145 |
+
validEmail: function()
|
146 |
+
{
|
147 |
+
if($('#edit-submit').val() != 'Remove')
|
148 |
+
{
|
149 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
150 |
+
{
|
151 |
+
//alert ('Please enter a valid email address.');
|
152 |
+
$('#edit-email').focus();
|
153 |
+
return false;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
return true;
|
157 |
+
},
|
158 |
+
|
159 |
+
validateNewLicenseForm: function()
|
160 |
+
{
|
161 |
+
if ($('#edit-name').val().length < 1)
|
162 |
+
{
|
163 |
+
alert ('Please enter your full name.');
|
164 |
+
$('#edit-name').addClass('error').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-email').val()) == false)
|
169 |
+
{
|
170 |
+
alert ('Please enter a valid email address.');
|
171 |
+
$('#edit-email').addClass('error').focus();
|
172 |
+
return false;
|
173 |
+
}
|
174 |
+
|
175 |
+
if ($('#edit-phone').val().length < 1)
|
176 |
+
{
|
177 |
+
alert ('Please enter your phone number.');
|
178 |
+
$('#edit-phone').addClass('error').focus();
|
179 |
+
return false;
|
180 |
+
}
|
181 |
+
|
182 |
+
return true;
|
183 |
+
}
|
184 |
+
}
|
185 |
+
$(document).ready(function()
|
186 |
+
{
|
187 |
+
ReveChat.init();
|
188 |
+
});
|
189 |
+
})(jQuery);
|
tags/2.0/readme.txt
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Reve Chat ===
|
2 |
+
Contributors: revechat_official
|
3 |
+
Tags: chat, chat online, contact plugin, 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, ReveChat, REVE Chat, zendesk, Zopim live chat, clickdesk, olark, click desk, visitor analytics, web analytics, lead generation, online leads
|
4 |
+
Requires at least: 3.0
|
5 |
+
Tested up to: 4.6.1
|
6 |
+
Stable tag: 2.0
|
7 |
+
License: GPLv2 or later
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
+
|
10 |
+
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
15 |
+
|
16 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
17 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
18 |
+
|
19 |
+
**Key Features**
|
20 |
+
|
21 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
22 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
23 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
24 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
25 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
26 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
27 |
+
|
28 |
+
**What makes Reve Chat the best choice for live chat?**
|
29 |
+
|
30 |
+
* A simple and highly customizable Live chat solution
|
31 |
+
* User friendly interface and Dashboard
|
32 |
+
* Intuitive Chat Window
|
33 |
+
* Innovative and unique features
|
34 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
**Some Geeky Facts**
|
39 |
+
|
40 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
41 |
+
* Average uptime is 99.8%.
|
42 |
+
* Mobile Optimized Dashboard
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
47 |
+
|
48 |
+
|
49 |
+
== Changelog ==
|
50 |
+
|
51 |
+
|
52 |
+
= 1.2.0 =
|
53 |
+
|
54 |
+
* Feature: Add the Reve chat widget to your site!
|
55 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
56 |
+
|
57 |
+
= 2.0 =
|
58 |
+
* New Admin Menu page for REVE Chat
|
59 |
+
* New for integration
|
60 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
61 |
+
|
62 |
+
== Screenshots ==
|
63 |
+
|
64 |
+
1. Chat window on your website - active chat
|
65 |
+
2. Account Configuration - Link Up
|
66 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
67 |
+
4. Dashboard View - Open new browser tab
|
68 |
+
5. Widget Customization from Dashboard
|
69 |
+
|
70 |
+
== Frequently Asked Questions ==
|
71 |
+
|
72 |
+
= Do I have to install any software on my server to get this working? =
|
73 |
+
|
74 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
75 |
+
|
76 |
+
= Why should I use REVE Chat? =
|
77 |
+
|
78 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
79 |
+
|
80 |
+
= Which web browsers work best with this plugin =
|
81 |
+
|
82 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
83 |
+
|
84 |
+
= I managed to install the plugin but cannot link up to REVE Chat. Why? =
|
85 |
+
|
86 |
+
Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
|
87 |
+
|
88 |
+
= How much is price of REVE Chat? =
|
89 |
+
|
90 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
91 |
+
1. Basic (Free)
|
92 |
+
2. Standard
|
93 |
+
3. Advanced
|
94 |
+
Please click here to find out more about pricing
|
95 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
96 |
+
|
97 |
+
= How can I chat with more visitors at the same time? =
|
98 |
+
|
99 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
100 |
+
|
101 |
+
= How can I take further information regarding REVE Chat? =
|
102 |
+
|
103 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
104 |
+
|
105 |
+
= Is there any demo or trial period to do some testing? =
|
106 |
+
|
107 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
108 |
+
|
109 |
+
= Can I customize the REVE Chat window? =
|
110 |
+
|
111 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
112 |
+
|
113 |
+
* Changing the colour scheme
|
114 |
+
* Changing the font size
|
115 |
+
* Chat Widget text
|
116 |
+
* Offline Widget Text
|
117 |
+
* Prechat & Post chat form
|
118 |
+
|
119 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
120 |
+
|
121 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
122 |
+
|
123 |
+
== Usage ==
|
124 |
+
|
125 |
+
= Agent management =
|
126 |
+
|
127 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
128 |
+
|
129 |
+
= How to configuring a chat operator =
|
130 |
+
|
131 |
+
Please follow the below mentioned directions to manage your agents.
|
132 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
133 |
+
* List of your agent names
|
134 |
+
* Roles assigned to each and every agent
|
135 |
+
* Email address of your agents
|
136 |
+
* Phone numbers of your agents
|
137 |
+
* Status of your agents online or offline
|
138 |
+
* Each and every agent's last login time
|
139 |
+
* Total number of concurrent chats assigned to each and every agent
|
140 |
+
|
141 |
+
|
142 |
+
= Agent creation =
|
143 |
+
|
144 |
+
To create an agent, you need to follow the below mentioned steps:
|
145 |
+
* Login to your REVE Chat dashboard
|
146 |
+
* Click on 'Agent Management'
|
147 |
+
* For adding your agent, click on the 'Create Agent' option
|
148 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
149 |
+
|
150 |
+
= Chat Conversation =
|
151 |
+
|
152 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
153 |
+
|
154 |
+
= Engaged Visitors =
|
155 |
+
|
156 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
157 |
+
|
158 |
+
= Online Agents =
|
159 |
+
|
160 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
161 |
+
|
162 |
+
= New Chat Request =
|
163 |
+
|
164 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
165 |
+
|
166 |
+
= Chat Panel =
|
167 |
+
|
168 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
169 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
170 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
171 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
172 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
173 |
+
|
174 |
+
= Online Visitors =
|
175 |
+
|
176 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
177 |
+
|
178 |
+
= Queued Visitor =
|
179 |
+
|
180 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
181 |
+
|
182 |
+
= Monitoring Panel =
|
183 |
+
|
184 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
+
== Installation ==
|
189 |
+
|
190 |
+
*Server Requirements:* PHP4 or PHP5.
|
191 |
+
|
192 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
193 |
+
|
194 |
+
= Step-by-step Guide =
|
195 |
+
* Search Plugin from Wordpress Directory
|
196 |
+
* Install REVE Chat plugin
|
197 |
+
* Copy Account ID and Tracking ID from integration page
|
198 |
+
* Paste it REVE Chat Plugins setting page
|
199 |
+
* Customize the chat widget to your preference.
|
200 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
201 |
+
|
tags/2.0/revechat.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Reve Chat
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 2.0
|
6 |
+
Author: ReveChat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '1.2.4';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
|
49 |
+
$script .= "window.__revechat_account = window.__revechat_account || {};
|
50 |
+
window.__revechat_account = '".$accountId."';
|
51 |
+
(function() {
|
52 |
+
var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
|
53 |
+
rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
|
54 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
|
55 |
+
})();";
|
56 |
+
$script .='</script>';
|
57 |
+
|
58 |
+
echo $script ;
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
} // END public static function activate
|
63 |
+
/*
|
64 |
+
* show parameter section
|
65 |
+
*/
|
66 |
+
public function registerSettings(){
|
67 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
68 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
69 |
+
}
|
70 |
+
/*
|
71 |
+
* admin panel
|
72 |
+
*/
|
73 |
+
public function adminPanels(){
|
74 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
75 |
+
// Add a new submenu under Settings:
|
76 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
77 |
+
}
|
78 |
+
/*
|
79 |
+
* revechat options
|
80 |
+
*/
|
81 |
+
public function reveChatOptions(){
|
82 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
83 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
84 |
+
}
|
85 |
+
// variables for the field and option names
|
86 |
+
$accountId = 'revechat_accountid';
|
87 |
+
|
88 |
+
// Read in existing option value from database
|
89 |
+
$val_accountId = get_option( $accountId );
|
90 |
+
|
91 |
+
if( isset($_POST[ $accountId ])){
|
92 |
+
|
93 |
+
// Read in existing option value from POST
|
94 |
+
$val_accountId = $_POST[ $accountId ];
|
95 |
+
update_option( $accountId , $val_accountId );
|
96 |
+
?>
|
97 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
98 |
+
<?php
|
99 |
+
}
|
100 |
+
?>
|
101 |
+
<div class="wrap" id="revechat">
|
102 |
+
|
103 |
+
<div class="reve-chat-logo">
|
104 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
105 |
+
</div>
|
106 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
107 |
+
<p class="ajax_message"></p>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
111 |
+
|
112 |
+
<?php
|
113 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
114 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
115 |
+
return;
|
116 |
+
}
|
117 |
+
|
118 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
119 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
120 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
121 |
+
?>
|
122 |
+
|
123 |
+
<p class="submit">
|
124 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
125 |
+
</p>
|
126 |
+
|
127 |
+
</form>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public function admin_menu()
|
134 |
+
{
|
135 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
136 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Deactivate the plugin
|
142 |
+
*/
|
143 |
+
public static function deactivate()
|
144 |
+
{
|
145 |
+
delete_option('revechat_accountid');
|
146 |
+
} // END public static function deactivate
|
147 |
+
|
148 |
+
public function admin_scripts(){
|
149 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
150 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
151 |
+
}
|
152 |
+
|
153 |
+
function add_action_links ( $links ) {
|
154 |
+
$menu_link = array(
|
155 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
156 |
+
);
|
157 |
+
return array_merge( $links, $menu_link );
|
158 |
+
}
|
159 |
+
} // END class WP_Plugin_Revechat
|
160 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
161 |
+
$revechat = new WP_Plugin_Revechat ;
|
162 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/2.0/screenshot-1.png
ADDED
Binary file
|
tags/2.0/screenshot-2.png
ADDED
Binary file
|
tags/2.0/screenshot-3.png
ADDED
Binary file
|
tags/2.0/screenshot-4.png
ADDED
Binary file
|
tags/3.0/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/3.0/css/ajax_loader.gif
ADDED
Binary file
|
tags/3.0/images/favicon.png
ADDED
Binary file
|
tags/3.0/images/logo.png
ADDED
Binary file
|
tags/3.0/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/3.0/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/3.0/includes/remove-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
<!--
|
15 |
+
<div>
|
16 |
+
<div class="messages revechat_success">REVE Chat
|
17 |
+
is already installed.</div>
|
18 |
+
|
19 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
20 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
21 |
+
<input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
|
22 |
+
</div>
|
23 |
+
</div> -->
|
tags/3.0/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/3.0/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/3.0/js/revechat-admin.js
ADDED
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
$('#edit-name').focus();
|
19 |
+
}
|
20 |
+
else if ($('#has_revechat_account').is(':checked'))
|
21 |
+
{
|
22 |
+
$('#revechat_new_account').hide();
|
23 |
+
$('#revechat_already_have').show();
|
24 |
+
$('#edit-revechat-account-email').focus();
|
25 |
+
}
|
26 |
+
};
|
27 |
+
toggleForms();
|
28 |
+
|
29 |
+
$('#revechat_choose_form input').click(toggleForms);
|
30 |
+
},
|
31 |
+
|
32 |
+
bindFormSubmit: function () {
|
33 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
34 |
+
{
|
35 |
+
|
36 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
37 |
+
$('#revechat_aid').val(0);
|
38 |
+
$('#revechat-admin-settings-form').submit();
|
39 |
+
}
|
40 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
41 |
+
{
|
42 |
+
return ReveChat.alreadyHaveAccountForm();
|
43 |
+
}
|
44 |
+
else
|
45 |
+
{
|
46 |
+
return ReveChat.newLicenseForm();
|
47 |
+
}
|
48 |
+
|
49 |
+
});
|
50 |
+
},
|
51 |
+
|
52 |
+
alreadyHaveAccountForm: function()
|
53 |
+
{
|
54 |
+
|
55 |
+
if(this.validEmail())
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
var login = $.trim($('#edit-revechat-account-email').val());
|
60 |
+
if(!login.length)
|
61 |
+
{
|
62 |
+
$('#edit-revechat-account-email').focus();
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
66 |
+
|
67 |
+
ReveChat.signIn($('#edit-revechat-account-email').val());
|
68 |
+
return false;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
else
|
72 |
+
{
|
73 |
+
$('#edit-revechat-account-email').focus();
|
74 |
+
return false;
|
75 |
+
}
|
76 |
+
return true;
|
77 |
+
},
|
78 |
+
signIn: function (email) {
|
79 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
80 |
+
$.getJSON(signInUrl,
|
81 |
+
function(response)
|
82 |
+
{
|
83 |
+
if (response.error)
|
84 |
+
{
|
85 |
+
alert('Incorrect REVE Chat login');
|
86 |
+
$('.ajax_message').removeClass('wait');
|
87 |
+
$('#edit-revechat-account-email').focus();
|
88 |
+
return false;
|
89 |
+
}
|
90 |
+
else
|
91 |
+
{
|
92 |
+
$('#revechat_aid').val(response.data.account_id);
|
93 |
+
$('#revechat-admin-settings-form').submit();
|
94 |
+
}
|
95 |
+
});
|
96 |
+
},
|
97 |
+
newLicenseForm: function()
|
98 |
+
{
|
99 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
100 |
+
{
|
101 |
+
return true;
|
102 |
+
}
|
103 |
+
|
104 |
+
if(this.validateNewLicenseForm())
|
105 |
+
{
|
106 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
107 |
+
ReveChat.createLicense();
|
108 |
+
}
|
109 |
+
return false;
|
110 |
+
},
|
111 |
+
createLicense: function()
|
112 |
+
{
|
113 |
+
|
114 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
115 |
+
|
116 |
+
var firstName = $.trim($('#edit-firstname').val());
|
117 |
+
var lastName = $.trim($('#edit-lastname').val());
|
118 |
+
var email = $.trim($('#edit-email').val());
|
119 |
+
var password = $.trim($('#edit-accountpassword').val());
|
120 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
121 |
+
|
122 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
123 |
+
|
124 |
+
$.ajax({
|
125 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
126 |
+
type:'POST',
|
127 |
+
url:signUpUrl,
|
128 |
+
dataType: 'json',
|
129 |
+
cache:false,
|
130 |
+
success: function(response) {
|
131 |
+
if(response.status == 'error')
|
132 |
+
{
|
133 |
+
$('.ajax_message').removeClass('wait');
|
134 |
+
alert(response.message);
|
135 |
+
return false;
|
136 |
+
}
|
137 |
+
else if(response.status == 'success')
|
138 |
+
{
|
139 |
+
$('#edit-revechat-account-email').val(email);
|
140 |
+
ReveChat.signIn(email);
|
141 |
+
return false;
|
142 |
+
}
|
143 |
+
}
|
144 |
+
});
|
145 |
+
},
|
146 |
+
validEmail: function()
|
147 |
+
{
|
148 |
+
if($('#edit-submit').val() != 'Disconnect')
|
149 |
+
{
|
150 |
+
if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i.test($('#edit-revechat-account-email').val()) == false)
|
151 |
+
{
|
152 |
+
alert ('Please enter a valid email address.');
|
153 |
+
$('.ajax_message').removeClass('wait');
|
154 |
+
$('#edit-email').focus();
|
155 |
+
return false;
|
156 |
+
}
|
157 |
+
}
|
158 |
+
return true;
|
159 |
+
},
|
160 |
+
|
161 |
+
validateNewLicenseForm: function()
|
162 |
+
{
|
163 |
+
|
164 |
+
var firstName = $.trim($('#edit-firstname').val());
|
165 |
+
var lastName = $.trim($('#edit-lastname').val());
|
166 |
+
var email = $.trim($('#edit-email').val());
|
167 |
+
var password = $.trim($('#edit-accountpassword').val());
|
168 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
if (!firstName.length)
|
173 |
+
{
|
174 |
+
alert('Please provide your first name.');
|
175 |
+
$('.ajax_message').removeClass('wait');
|
176 |
+
$('#edit-firstname').focus();
|
177 |
+
return false;
|
178 |
+
}
|
179 |
+
|
180 |
+
if (!lastName.length)
|
181 |
+
{
|
182 |
+
alert('Please provide your last name.');
|
183 |
+
$('.ajax_message').removeClass('wait');
|
184 |
+
$('#edit-lastname').focus();
|
185 |
+
return false;
|
186 |
+
}
|
187 |
+
|
188 |
+
if (!ReveChat.isValidEmailAddress(email))
|
189 |
+
{
|
190 |
+
alert('Please provide your valid email address.');
|
191 |
+
$('.ajax_message').removeClass('wait');
|
192 |
+
$('#edit-email').focus();
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
if(password.length < 6){
|
197 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
198 |
+
$('.ajax_message').removeClass('wait');
|
199 |
+
$('#edit-accountpassword').focus();
|
200 |
+
return false;
|
201 |
+
}
|
202 |
+
|
203 |
+
if(!rePassword.length || password.length < 6){
|
204 |
+
alert('Please retype your password.');
|
205 |
+
$('.ajax_message').removeClass('wait');
|
206 |
+
$('#edit-retypepassword').focus();
|
207 |
+
return false;
|
208 |
+
}
|
209 |
+
|
210 |
+
if(password != rePassword){
|
211 |
+
alert('Password does not match the confirm password.');
|
212 |
+
$('.ajax_message').removeClass('wait');
|
213 |
+
return false;
|
214 |
+
}
|
215 |
+
|
216 |
+
|
217 |
+
return true;
|
218 |
+
},
|
219 |
+
isValidEmailAddress: function (emailAddress) {
|
220 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
221 |
+
return pattern.test(emailAddress);
|
222 |
+
},
|
223 |
+
}
|
224 |
+
$(document).ready(function()
|
225 |
+
{
|
226 |
+
ReveChat.init();
|
227 |
+
});
|
228 |
+
})(jQuery);
|
tags/3.0/readme.txt
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP live chat plugin for WordPress ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.1
|
6 |
+
Stable tag: 3.0
|
7 |
+
|
8 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
12 |
+
|
13 |
+
https://youtu.be/t1dykZ9Tg8U
|
14 |
+
|
15 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
16 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
17 |
+
|
18 |
+
**Key Features**
|
19 |
+
|
20 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
21 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
22 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
23 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
24 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
25 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
26 |
+
|
27 |
+
|
28 |
+
**What makes Reve Chat the best choice for live chat?**
|
29 |
+
|
30 |
+
* A simple and highly customizable Live chat solution
|
31 |
+
* User friendly interface and Dashboard
|
32 |
+
* Intuitive Chat Window
|
33 |
+
* Innovative and unique features
|
34 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
35 |
+
|
36 |
+
**Supported Language**
|
37 |
+
|
38 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
39 |
+
|
40 |
+
|
41 |
+
**Some Geeky Facts**
|
42 |
+
|
43 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
44 |
+
* Average uptime is 99.8%.
|
45 |
+
* Mobile Optimized Dashboard
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
50 |
+
|
51 |
+
|
52 |
+
== Changelog ==
|
53 |
+
|
54 |
+
|
55 |
+
= 1.2.0 =
|
56 |
+
|
57 |
+
* Feature: Add the Reve chat widget to your site!
|
58 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
59 |
+
|
60 |
+
= 2.0 =
|
61 |
+
* New Admin Menu page for REVE Chat
|
62 |
+
* New for integration
|
63 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
64 |
+
|
65 |
+
= 2.0.1 =
|
66 |
+
* Updated chat script
|
67 |
+
|
68 |
+
= 2.0.3 =
|
69 |
+
* updated the UI
|
70 |
+
|
71 |
+
= 3.0 =
|
72 |
+
* introduced new signup process
|
73 |
+
* fixed signin bug
|
74 |
+
|
75 |
+
== Screenshots ==
|
76 |
+
|
77 |
+
1. Chat window on your website - active chat
|
78 |
+
2. Account Configuration - Link Up
|
79 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
80 |
+
4. Dashboard View - Open new browser tab
|
81 |
+
5. Widget Customization from Dashboard
|
82 |
+
|
83 |
+
== Frequently Asked Questions ==
|
84 |
+
|
85 |
+
= Do I have to install any software on my server to get this working? =
|
86 |
+
|
87 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
88 |
+
|
89 |
+
= Why should I use REVE Chat? =
|
90 |
+
|
91 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
92 |
+
|
93 |
+
= Which web browsers work best with this plugin =
|
94 |
+
|
95 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
96 |
+
|
97 |
+
= I managed to install the plugin but cannot link up to REVE Chat. Why? =
|
98 |
+
|
99 |
+
Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
|
100 |
+
|
101 |
+
= How much is price of REVE Chat? =
|
102 |
+
|
103 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
104 |
+
1. Basic (Free)
|
105 |
+
2. Standard
|
106 |
+
3. Advanced
|
107 |
+
Please click here to find out more about pricing
|
108 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
109 |
+
|
110 |
+
= How can I chat with more visitors at the same time? =
|
111 |
+
|
112 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
113 |
+
|
114 |
+
= How can I take further information regarding REVE Chat? =
|
115 |
+
|
116 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
117 |
+
|
118 |
+
= Is there any demo or trial period to do some testing? =
|
119 |
+
|
120 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
121 |
+
|
122 |
+
= Can I customize the REVE Chat window? =
|
123 |
+
|
124 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
125 |
+
|
126 |
+
* Changing the colour scheme
|
127 |
+
* Changing the font size
|
128 |
+
* Chat Widget text
|
129 |
+
* Offline Widget Text
|
130 |
+
* Prechat & Post chat form
|
131 |
+
|
132 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
133 |
+
|
134 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
135 |
+
|
136 |
+
== Usage ==
|
137 |
+
|
138 |
+
= Agent management =
|
139 |
+
|
140 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
141 |
+
|
142 |
+
= How to configuring a chat operator =
|
143 |
+
|
144 |
+
Please follow the below mentioned directions to manage your agents.
|
145 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
146 |
+
* List of your agent names
|
147 |
+
* Roles assigned to each and every agent
|
148 |
+
* Email address of your agents
|
149 |
+
* Phone numbers of your agents
|
150 |
+
* Status of your agents online or offline
|
151 |
+
* Each and every agent's last login time
|
152 |
+
* Total number of concurrent chats assigned to each and every agent
|
153 |
+
|
154 |
+
|
155 |
+
= Agent creation =
|
156 |
+
|
157 |
+
To create an agent, you need to follow the below mentioned steps:
|
158 |
+
* Login to your REVE Chat dashboard
|
159 |
+
* Click on 'Agent Management'
|
160 |
+
* For adding your agent, click on the 'Create Agent' option
|
161 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
162 |
+
|
163 |
+
= Chat Conversation =
|
164 |
+
|
165 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
166 |
+
|
167 |
+
= Engaged Visitors =
|
168 |
+
|
169 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
170 |
+
|
171 |
+
= Online Agents =
|
172 |
+
|
173 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
174 |
+
|
175 |
+
= New Chat Request =
|
176 |
+
|
177 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
178 |
+
|
179 |
+
= Chat Panel =
|
180 |
+
|
181 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
182 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
183 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
184 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
185 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
186 |
+
|
187 |
+
= Online Visitors =
|
188 |
+
|
189 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
190 |
+
|
191 |
+
= Queued Visitor =
|
192 |
+
|
193 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
194 |
+
|
195 |
+
= Monitoring Panel =
|
196 |
+
|
197 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
198 |
+
|
199 |
+
<a href="https://www.revechat.com/signup/?utm_source=wordpress.org&utm_medium=integration&utm_campaign=WordpressIntegration" target="_blank">Signup for our Live Chat here</a>
|
200 |
+
|
201 |
+
== Installation ==
|
202 |
+
|
203 |
+
*Server Requirements:* PHP4 or PHP5.
|
204 |
+
|
205 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
206 |
+
|
207 |
+
= Step-by-step Guide =
|
208 |
+
* Search Plugin from Wordpress Directory
|
209 |
+
* Install REVE Chat plugin
|
210 |
+
* Copy Account ID and Tracking ID from integration page
|
211 |
+
* Paste it REVE Chat Plugins setting page
|
212 |
+
* Customize the chat widget to your preference.
|
213 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
214 |
+
|
tags/3.0/revechat.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP live chat plugin for WordPress
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 3.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'ReveChat'; // Plugin Name
|
23 |
+
$this->plugin->version = '2.0.4';
|
24 |
+
|
25 |
+
// Hooks
|
26 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
27 |
+
//add_action('admin_menu', array(&$this, 'adminPanels'));
|
28 |
+
|
29 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
30 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
31 |
+
|
32 |
+
// Add Menu Page
|
33 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
34 |
+
|
35 |
+
//enqueue scripts
|
36 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
37 |
+
} // END public function __construct
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Activate the frontendHeader
|
41 |
+
*/
|
42 |
+
public static function frontendHeader()
|
43 |
+
{
|
44 |
+
$accountId = get_option('revechat_accountid' , '');
|
45 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
46 |
+
|
47 |
+
$script = "<script type='text/javascript'>";
|
48 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
49 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
50 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
51 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
52 |
+
})(document, window);';
|
53 |
+
|
54 |
+
$script .='</script>';
|
55 |
+
|
56 |
+
echo $script ;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
} // END public static function activate
|
61 |
+
/*
|
62 |
+
* show parameter section
|
63 |
+
*/
|
64 |
+
public function registerSettings(){
|
65 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
66 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
67 |
+
}
|
68 |
+
/*
|
69 |
+
* admin panel
|
70 |
+
*/
|
71 |
+
public function adminPanels(){
|
72 |
+
//add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
|
73 |
+
// Add a new submenu under Settings:
|
74 |
+
add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
|
75 |
+
}
|
76 |
+
/*
|
77 |
+
* revechat options
|
78 |
+
*/
|
79 |
+
public function reveChatOptions(){
|
80 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
81 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
82 |
+
}
|
83 |
+
// variables for the field and option names
|
84 |
+
$accountId = 'revechat_accountid';
|
85 |
+
|
86 |
+
// Read in existing option value from database
|
87 |
+
$val_accountId = get_option( $accountId );
|
88 |
+
|
89 |
+
if( isset($_POST[ $accountId ])){
|
90 |
+
|
91 |
+
// Read in existing option value from POST
|
92 |
+
$val_accountId = $_POST[ $accountId ];
|
93 |
+
update_option( $accountId , $val_accountId );
|
94 |
+
?>
|
95 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
?>
|
99 |
+
<div class="wrap" id="revechat">
|
100 |
+
|
101 |
+
<div>
|
102 |
+
<div class="reve-chat-logo">
|
103 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
107 |
+
|
108 |
+
<?php
|
109 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
110 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
115 |
+
?>
|
116 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
117 |
+
<p class="ajax_message"></p>
|
118 |
+
</div>
|
119 |
+
<?php
|
120 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
121 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
122 |
+
?>
|
123 |
+
|
124 |
+
|
125 |
+
|
126 |
+
</form>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public function admin_menu()
|
134 |
+
{
|
135 |
+
// add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
|
136 |
+
add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Deactivate the plugin
|
142 |
+
*/
|
143 |
+
public static function deactivate()
|
144 |
+
{
|
145 |
+
delete_option('revechat_accountid');
|
146 |
+
} // END public static function deactivate
|
147 |
+
|
148 |
+
public function admin_scripts(){
|
149 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
|
150 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
151 |
+
}
|
152 |
+
|
153 |
+
function add_action_links ( $links ) {
|
154 |
+
$menu_link = array(
|
155 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
156 |
+
);
|
157 |
+
return array_merge( $links, $menu_link );
|
158 |
+
}
|
159 |
+
} // END class WP_Plugin_Revechat
|
160 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
161 |
+
$revechat = new WP_Plugin_Revechat ;
|
162 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/3.0/screenshot-1.jpg
ADDED
Binary file
|
tags/3.0/screenshot-2.jpg
ADDED
Binary file
|
tags/3.0/screenshot-3.jpg
ADDED
Binary file
|
tags/3.0/screenshot-4.jpg
ADDED
Binary file
|
tags/4.0/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/4.0/css/ajax_loader.gif
ADDED
Binary file
|
tags/4.0/images/favicon.png
ADDED
Binary file
|
tags/4.0/images/logo.png
ADDED
Binary file
|
tags/4.0/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/4.0/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
{includes → tags/4.0/includes}/remove-form.php
RENAMED
File without changes
|
tags/4.0/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/4.0/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
{js → tags/4.0/js}/revechat-admin.js
RENAMED
File without changes
|
tags/4.0/readme.txt
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP live chat plugin for WordPress ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
|
7 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
8 |
+
|
9 |
+
== Description ==
|
10 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
11 |
+
|
12 |
+
https://youtu.be/t1dykZ9Tg8U
|
13 |
+
|
14 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
15 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
16 |
+
|
17 |
+
**Key Features**
|
18 |
+
|
19 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
20 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
21 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
22 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
23 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
24 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
25 |
+
|
26 |
+
|
27 |
+
**What makes Reve Chat the best choice for live chat?**
|
28 |
+
|
29 |
+
* A simple and highly customizable Live chat solution
|
30 |
+
* User friendly interface and Dashboard
|
31 |
+
* Intuitive Chat Window
|
32 |
+
* Innovative and unique features
|
33 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
34 |
+
|
35 |
+
**Supported Language**
|
36 |
+
|
37 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
38 |
+
|
39 |
+
|
40 |
+
**Some Geeky Facts**
|
41 |
+
|
42 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
43 |
+
* Average uptime is 99.8%.
|
44 |
+
* Mobile Optimized Dashboard
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
49 |
+
|
50 |
+
|
51 |
+
== Changelog ==
|
52 |
+
|
53 |
+
|
54 |
+
= 1.2.0 =
|
55 |
+
|
56 |
+
* Feature: Add the Reve chat widget to your site!
|
57 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
58 |
+
|
59 |
+
= 2.0 =
|
60 |
+
* New Admin Menu page for REVE Chat
|
61 |
+
* New for integration
|
62 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
63 |
+
|
64 |
+
= 2.0.1 =
|
65 |
+
* Updated chat script
|
66 |
+
|
67 |
+
= 2.0.3 =
|
68 |
+
* updated the UI
|
69 |
+
|
70 |
+
= 3.0 =
|
71 |
+
* introduced new signup process
|
72 |
+
* fixed signin bug
|
73 |
+
|
74 |
+
== Screenshots ==
|
75 |
+
|
76 |
+
1. Chat window on your website - active chat
|
77 |
+
2. Account Configuration - Link Up
|
78 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
79 |
+
4. Dashboard View - Open new browser tab
|
80 |
+
5. Widget Customization from Dashboard
|
81 |
+
|
82 |
+
== Frequently Asked Questions ==
|
83 |
+
|
84 |
+
= Do I have to install any software on my server to get this working? =
|
85 |
+
|
86 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
87 |
+
|
88 |
+
= Why should I use REVE Chat? =
|
89 |
+
|
90 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
91 |
+
|
92 |
+
= Which web browsers work best with this plugin =
|
93 |
+
|
94 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
95 |
+
|
96 |
+
|
97 |
+
= How much is price of REVE Chat? =
|
98 |
+
|
99 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
100 |
+
1. Basic (Free)
|
101 |
+
2. Standard
|
102 |
+
3. Advanced
|
103 |
+
Please click here to find out more about pricing
|
104 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
105 |
+
|
106 |
+
= How can I chat with more visitors at the same time? =
|
107 |
+
|
108 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
109 |
+
|
110 |
+
= How can I take further information regarding REVE Chat? =
|
111 |
+
|
112 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
113 |
+
|
114 |
+
= Is there any demo or trial period to do some testing? =
|
115 |
+
|
116 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
117 |
+
|
118 |
+
= Can I customize the REVE Chat window? =
|
119 |
+
|
120 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
121 |
+
|
122 |
+
* Changing the colour scheme
|
123 |
+
* Changing the font size
|
124 |
+
* Chat Widget text
|
125 |
+
* Offline Widget Text
|
126 |
+
* Prechat & Post chat form
|
127 |
+
|
128 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
129 |
+
|
130 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
131 |
+
|
132 |
+
== Usage ==
|
133 |
+
|
134 |
+
= Agent management =
|
135 |
+
|
136 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
137 |
+
|
138 |
+
= How to configuring a chat operator =
|
139 |
+
|
140 |
+
Please follow the below mentioned directions to manage your agents.
|
141 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
142 |
+
* List of your agent names
|
143 |
+
* Roles assigned to each and every agent
|
144 |
+
* Email address of your agents
|
145 |
+
* Phone numbers of your agents
|
146 |
+
* Status of your agents online or offline
|
147 |
+
* Each and every agent's last login time
|
148 |
+
* Total number of concurrent chats assigned to each and every agent
|
149 |
+
|
150 |
+
|
151 |
+
= Agent creation =
|
152 |
+
|
153 |
+
To create an agent, you need to follow the below mentioned steps:
|
154 |
+
* Login to your REVE Chat dashboard
|
155 |
+
* Click on 'Agent Management'
|
156 |
+
* For adding your agent, click on the 'Create Agent' option
|
157 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
158 |
+
|
159 |
+
= Chat Conversation =
|
160 |
+
|
161 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
162 |
+
|
163 |
+
= Engaged Visitors =
|
164 |
+
|
165 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
166 |
+
|
167 |
+
= Online Agents =
|
168 |
+
|
169 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
170 |
+
|
171 |
+
= New Chat Request =
|
172 |
+
|
173 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
174 |
+
|
175 |
+
= Chat Panel =
|
176 |
+
|
177 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
178 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
179 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
180 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
181 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
182 |
+
|
183 |
+
= Online Visitors =
|
184 |
+
|
185 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
186 |
+
|
187 |
+
= Queued Visitor =
|
188 |
+
|
189 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
190 |
+
|
191 |
+
= Monitoring Panel =
|
192 |
+
|
193 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
194 |
+
|
195 |
+
<a href="https://www.revechat.com/signup/?utm_source=wordpress.org&utm_medium=integration&utm_campaign=WordpressIntegration" target="_blank">Signup for our Live Chat here</a>
|
196 |
+
|
197 |
+
== Installation ==
|
198 |
+
|
199 |
+
*Server Requirements:* PHP4 or PHP5.
|
200 |
+
|
201 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
202 |
+
|
203 |
+
= Step-by-step Guide =
|
204 |
+
* Search Plugin from Wordpress Directory
|
205 |
+
* Install REVE Chat plugin
|
206 |
+
* Go to REVE Chat plugin settings page.
|
207 |
+
* Type your email address in the input field and submit.
|
208 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
209 |
+
|
tags/4.0/revechat.php
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP live chat plugin for WordPress
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 4.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
class WP_Plugin_Revechat
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Construct the plugin object
|
16 |
+
*/
|
17 |
+
public function __construct()
|
18 |
+
{
|
19 |
+
// Plugin Details
|
20 |
+
$this->plugin = new stdClass;
|
21 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
22 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
23 |
+
|
24 |
+
// Hooks
|
25 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
26 |
+
|
27 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
28 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
29 |
+
|
30 |
+
// Add Menu Page
|
31 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
32 |
+
|
33 |
+
//enqueue scripts
|
34 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
35 |
+
|
36 |
+
} // END public function __construct
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Activate the frontendHeader
|
40 |
+
*/
|
41 |
+
public static function frontendHeader()
|
42 |
+
{
|
43 |
+
$accountId = get_option('revechat_accountid' , '');
|
44 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
45 |
+
|
46 |
+
$script = "<script type='text/javascript'>";
|
47 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
48 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
49 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
50 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
51 |
+
})(document, window);';
|
52 |
+
|
53 |
+
$script .='</script>';
|
54 |
+
|
55 |
+
echo $script ;
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
/*
|
62 |
+
* Register the settings
|
63 |
+
*/
|
64 |
+
public function registerSettings(){
|
65 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
66 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
67 |
+
}
|
68 |
+
|
69 |
+
/*
|
70 |
+
* Settings Form
|
71 |
+
*/
|
72 |
+
public function reveChatOptions(){
|
73 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
74 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
75 |
+
}
|
76 |
+
// variables for the field and option names
|
77 |
+
$accountId = 'revechat_accountid';
|
78 |
+
|
79 |
+
// Read in existing option value from database
|
80 |
+
$val_accountId = get_option( $accountId );
|
81 |
+
|
82 |
+
if( isset($_POST[ $accountId ])){
|
83 |
+
|
84 |
+
// Read in existing option value from POST
|
85 |
+
$val_accountId = $_POST[ $accountId ];
|
86 |
+
update_option( $accountId , $val_accountId );
|
87 |
+
?>
|
88 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
89 |
+
<?php
|
90 |
+
}
|
91 |
+
?>
|
92 |
+
<div class="wrap" id="revechat">
|
93 |
+
|
94 |
+
<div>
|
95 |
+
<div class="reve-chat-logo">
|
96 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
97 |
+
</div>
|
98 |
+
|
99 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
100 |
+
|
101 |
+
<?php
|
102 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
103 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
104 |
+
echo '</div>';
|
105 |
+
return;
|
106 |
+
}
|
107 |
+
|
108 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
109 |
+
?>
|
110 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
111 |
+
<p class="ajax_message"></p>
|
112 |
+
</div>
|
113 |
+
<?php
|
114 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
115 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
116 |
+
?>
|
117 |
+
|
118 |
+
</form>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
|
122 |
+
<?php
|
123 |
+
}
|
124 |
+
|
125 |
+
/**
|
126 |
+
* Add page in admin menu
|
127 |
+
*/
|
128 |
+
public function admin_menu()
|
129 |
+
{
|
130 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Deactivate the plugin
|
135 |
+
*/
|
136 |
+
|
137 |
+
public static function deactivate()
|
138 |
+
{
|
139 |
+
delete_option('revechat_accountid');
|
140 |
+
}
|
141 |
+
|
142 |
+
|
143 |
+
/**
|
144 |
+
* Enque JavaScript and Css in admin panel
|
145 |
+
*/
|
146 |
+
public function admin_scripts(){
|
147 |
+
|
148 |
+
wp_enqueue_script( 'jquery');
|
149 |
+
|
150 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
151 |
+
|
152 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
153 |
+
}
|
154 |
+
|
155 |
+
function add_action_links ( $links ) {
|
156 |
+
$menu_link = array(
|
157 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
158 |
+
);
|
159 |
+
return array_merge( $links, $menu_link );
|
160 |
+
}
|
161 |
+
}
|
162 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
163 |
+
|
164 |
+
$revechat = new WP_Plugin_Revechat();
|
165 |
+
|
166 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/4.0/screenshot-1.jpg
ADDED
Binary file
|
tags/4.0/screenshot-2.jpg
ADDED
Binary file
|
tags/4.0/screenshot-3.jpg
ADDED
Binary file
|
tags/4.0/screenshot-4.jpg
ADDED
Binary file
|
tags/4.0/screenshot-5.jpg
ADDED
Binary file
|
tags/4.0/screenshot-6.jpg
ADDED
Binary file
|
tags/4.0/screenshot-7.jpg
ADDED
Binary file
|
tags/4.0/screenshot-8.jpg
ADDED
Binary file
|
tags/4.0/screenshot-9.jpg
ADDED
Binary file
|
tags/5.0/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/5.0/css/ajax_loader.gif
ADDED
Binary file
|
tags/5.0/images/favicon.png
ADDED
Binary file
|
tags/5.0/images/logo.png
ADDED
Binary file
|
tags/5.0/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/5.0/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/5.0/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/5.0/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/5.0/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/5.0/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/5.0/readme.txt
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP live chat plugin for WordPress ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 4.0
|
7 |
+
|
8 |
+
REVE Chat is powerful and intuitive real-time customer engagement software.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display.
|
12 |
+
|
13 |
+
https://youtu.be/t1dykZ9Tg8U
|
14 |
+
|
15 |
+
In the fast paced ambience of live customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between support agents and customers have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
16 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
17 |
+
|
18 |
+
**Key Features**
|
19 |
+
|
20 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
21 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
22 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
23 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
24 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. REVE live chat software gives information to website visitors regarding their waiting time in the chat queue
|
25 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
26 |
+
|
27 |
+
|
28 |
+
**What makes Reve Chat the best choice for live chat?**
|
29 |
+
|
30 |
+
* A simple and highly customizable Live chat solution
|
31 |
+
* User friendly interface and Dashboard
|
32 |
+
* Intuitive Chat Window
|
33 |
+
* Innovative and unique features
|
34 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
35 |
+
|
36 |
+
**Supported Language**
|
37 |
+
|
38 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
39 |
+
|
40 |
+
|
41 |
+
**Some Geeky Facts**
|
42 |
+
|
43 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
44 |
+
* Average uptime is 99.8%.
|
45 |
+
* Mobile Optimized Dashboard
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
50 |
+
|
51 |
+
|
52 |
+
== Changelog ==
|
53 |
+
|
54 |
+
|
55 |
+
= 1.2.0 =
|
56 |
+
|
57 |
+
* Feature: Add the Reve chat widget to your site!
|
58 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
59 |
+
|
60 |
+
= 2.0 =
|
61 |
+
* New Admin Menu page for REVE Chat
|
62 |
+
* New for integration
|
63 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
64 |
+
|
65 |
+
= 2.0.1 =
|
66 |
+
* Updated chat script
|
67 |
+
|
68 |
+
= 2.0.3 =
|
69 |
+
* updated the UI
|
70 |
+
|
71 |
+
= 3.0 =
|
72 |
+
* introduced new signup process
|
73 |
+
* fixed signin bug
|
74 |
+
|
75 |
+
== Screenshots ==
|
76 |
+
|
77 |
+
1. Chat window on your website - active chat
|
78 |
+
2. Account Configuration - Link Up
|
79 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
80 |
+
4. Dashboard View - Open new browser tab
|
81 |
+
5. Widget Customization from Dashboard
|
82 |
+
|
83 |
+
== Frequently Asked Questions ==
|
84 |
+
|
85 |
+
= Do I have to install any software on my server to get this working? =
|
86 |
+
|
87 |
+
REVE Chat plugin need to be installed from your wordpress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
88 |
+
|
89 |
+
= Why should I use REVE Chat? =
|
90 |
+
|
91 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
92 |
+
|
93 |
+
= Which web browsers work best with this plugin =
|
94 |
+
|
95 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
96 |
+
|
97 |
+
= How much is price of REVE Chat? =
|
98 |
+
|
99 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
100 |
+
1. Basic (Free)
|
101 |
+
2. Standard
|
102 |
+
3. Advanced
|
103 |
+
Please click here to find out more about pricing
|
104 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
105 |
+
|
106 |
+
= How can I chat with more visitors at the same time? =
|
107 |
+
|
108 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
109 |
+
|
110 |
+
= How can I take further information regarding REVE Chat? =
|
111 |
+
|
112 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
113 |
+
|
114 |
+
= Is there any demo or trial period to do some testing? =
|
115 |
+
|
116 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
117 |
+
|
118 |
+
= Can I customize the REVE Chat window? =
|
119 |
+
|
120 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
121 |
+
|
122 |
+
* Changing the colour scheme
|
123 |
+
* Changing the font size
|
124 |
+
* Chat Widget text
|
125 |
+
* Offline Widget Text
|
126 |
+
* Prechat & Post chat form
|
127 |
+
|
128 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
129 |
+
|
130 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
131 |
+
|
132 |
+
== Usage ==
|
133 |
+
|
134 |
+
= Agent management =
|
135 |
+
|
136 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
137 |
+
|
138 |
+
= How to configuring a chat operator =
|
139 |
+
|
140 |
+
Please follow the below mentioned directions to manage your agents.
|
141 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
142 |
+
* List of your agent names
|
143 |
+
* Roles assigned to each and every agent
|
144 |
+
* Email address of your agents
|
145 |
+
* Phone numbers of your agents
|
146 |
+
* Status of your agents online or offline
|
147 |
+
* Each and every agent's last login time
|
148 |
+
* Total number of concurrent chats assigned to each and every agent
|
149 |
+
|
150 |
+
|
151 |
+
= Agent creation =
|
152 |
+
|
153 |
+
To create an agent, you need to follow the below mentioned steps:
|
154 |
+
* Login to your REVE Chat dashboard
|
155 |
+
* Click on 'Agent Management'
|
156 |
+
* For adding your agent, click on the 'Create Agent' option
|
157 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
158 |
+
|
159 |
+
= Chat Conversation =
|
160 |
+
|
161 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
162 |
+
|
163 |
+
= Engaged Visitors =
|
164 |
+
|
165 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
166 |
+
|
167 |
+
= Online Agents =
|
168 |
+
|
169 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
170 |
+
|
171 |
+
= New Chat Request =
|
172 |
+
|
173 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
174 |
+
|
175 |
+
= Chat Panel =
|
176 |
+
|
177 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
178 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
179 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
180 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
181 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
182 |
+
|
183 |
+
= Online Visitors =
|
184 |
+
|
185 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
186 |
+
|
187 |
+
= Queued Visitor =
|
188 |
+
|
189 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
190 |
+
|
191 |
+
= Monitoring Panel =
|
192 |
+
|
193 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
194 |
+
|
195 |
+
<a href="https://www.revechat.com/signup/?utm_source=wordpress.org&utm_medium=integration&utm_campaign=WordpressIntegration" target="_blank">Signup for our Live Chat here</a>
|
196 |
+
|
197 |
+
== Installation ==
|
198 |
+
|
199 |
+
*Server Requirements:* PHP4 or PHP5.
|
200 |
+
|
201 |
+
*Wordpress versions:* Wordpress 2.7 and up.
|
202 |
+
|
203 |
+
= Step-by-step Guide =
|
204 |
+
* Search Plugin from Wordpress Directory
|
205 |
+
* Install REVE Chat plugin
|
206 |
+
* Go to REVE Chat plugin settings page.
|
207 |
+
* Type your email address in the input field and submit.
|
208 |
+
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
|
209 |
+
|
tags/5.0/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP live chat plugin for WordPress
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/5.0/screenshot-1.jpg
ADDED
Binary file
|
tags/5.0/screenshot-2.jpg
ADDED
Binary file
|
tags/5.0/screenshot-3.jpg
ADDED
Binary file
|
tags/5.0/screenshot-4.jpg
ADDED
Binary file
|
tags/5.0/screenshot-5.jpg
ADDED
Binary file
|
tags/5.0/screenshot-6.jpg
ADDED
Binary file
|
tags/5.0/screenshot-7.jpg
ADDED
Binary file
|
tags/5.0/screenshot-8.jpg
ADDED
Binary file
|
tags/5.0/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.0/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.0/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.0/images/favicon.png
ADDED
Binary file
|
tags/6.1.0/images/logo.png
ADDED
Binary file
|
tags/6.1.0/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.0/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.0/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.0/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.0/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.0/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1.0/readme.txt
ADDED
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc, revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.0
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
REVE Chat is a live chat support software plugin. It lets you monitor and chat with visitors on your Wordpress site to personally guide and help your visitors, while they go through the various sections of your website.
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
Live chat customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between live support agents and visitors have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
18 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
19 |
+
|
20 |
+
https://youtu.be/t1dykZ9Tg8U
|
21 |
+
|
22 |
+
**Live Chat benefits**
|
23 |
+
|
24 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. Our live chat plugins enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
25 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
26 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
27 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
28 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. Our live chat software gives information to website visitors regarding their waiting time in the chat queue
|
29 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
30 |
+
|
31 |
+
|
32 |
+
**What makes Reve Chat the best choice for live chat?**
|
33 |
+
|
34 |
+
* A simple and highly customizable Live chat solution
|
35 |
+
* User friendly interface and Dashboard
|
36 |
+
* Intuitive Chat Window
|
37 |
+
* Innovative and unique features
|
38 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
39 |
+
|
40 |
+
**Supported Language**
|
41 |
+
|
42 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
43 |
+
|
44 |
+
|
45 |
+
**Some Geeky Facts**
|
46 |
+
|
47 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
48 |
+
* Average uptime is 99.8%.
|
49 |
+
* Mobile Optimized Dashboard
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
54 |
+
|
55 |
+
|
56 |
+
= Support =
|
57 |
+
|
58 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
59 |
+
|
60 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
== Changelog ==
|
65 |
+
|
66 |
+
|
67 |
+
= 1.2.0 =
|
68 |
+
|
69 |
+
* Feature: Add the Reve chat widget to your site!
|
70 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
71 |
+
|
72 |
+
= 2.0 =
|
73 |
+
* New Admin Menu page for REVE Chat
|
74 |
+
* New for integration
|
75 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
76 |
+
|
77 |
+
= 2.0.1 =
|
78 |
+
* Updated chat script
|
79 |
+
|
80 |
+
= 2.0.3 =
|
81 |
+
* updated the UI
|
82 |
+
|
83 |
+
= 3.0 =
|
84 |
+
* introduced new signup process
|
85 |
+
* fixed signin bug
|
86 |
+
|
87 |
+
== Screenshots ==
|
88 |
+
|
89 |
+
1. Chat window on your website - active chat
|
90 |
+
2. Account Configuration - Link Up
|
91 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
92 |
+
4. Dashboard View - Open new browser tab
|
93 |
+
5. Widget Customization from Dashboard
|
94 |
+
|
95 |
+
== Frequently Asked Questions ==
|
96 |
+
|
97 |
+
= Do I have to install any software on my server to get this working? =
|
98 |
+
|
99 |
+
REVE Chat support plugin need to be installed from your wordpress panel. It is a cloud based live chat software plugin hence it would only activate the script when you install the chat plugin.
|
100 |
+
|
101 |
+
= Why should I use REVE Chat? =
|
102 |
+
|
103 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
104 |
+
|
105 |
+
= Which web browsers work best with this plugin =
|
106 |
+
|
107 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
108 |
+
|
109 |
+
= How much is price of REVE Chat? =
|
110 |
+
|
111 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
112 |
+
1. Basic (Free)
|
113 |
+
2. Standard
|
114 |
+
3. Advanced
|
115 |
+
Please click here to find out more about pricing
|
116 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
117 |
+
|
118 |
+
= How can I chat with more visitors at the same time? =
|
119 |
+
|
120 |
+
REVE Chat plugin allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
121 |
+
|
122 |
+
= How can I take further information regarding REVE Chat? =
|
123 |
+
|
124 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
125 |
+
|
126 |
+
= Is there any demo or trial period to do some testing? =
|
127 |
+
|
128 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
129 |
+
|
130 |
+
= Can I customize the REVE Chat window? =
|
131 |
+
|
132 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
133 |
+
|
134 |
+
* Changing the colour scheme
|
135 |
+
* Changing the font size
|
136 |
+
* Chat Widget text
|
137 |
+
* Offline Widget Text
|
138 |
+
* Prechat & Post chat form
|
139 |
+
|
140 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
141 |
+
|
142 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
143 |
+
|
144 |
+
== Usage ==
|
145 |
+
|
146 |
+
= Agent management =
|
147 |
+
|
148 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
149 |
+
|
150 |
+
= How to configuring a chat operator =
|
151 |
+
|
152 |
+
Please follow the below mentioned directions to manage your agents.
|
153 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
154 |
+
* List of your agent names
|
155 |
+
* Roles assigned to each and every agent
|
156 |
+
* Email address of your agents
|
157 |
+
* Phone numbers of your agents
|
158 |
+
* Status of your agents online or offline
|
159 |
+
* Each and every agent's last login time
|
160 |
+
* Total number of concurrent chats assigned to each and every agent
|
161 |
+
|
162 |
+
|
163 |
+
= Agent creation =
|
164 |
+
|
165 |
+
To create an agent, you need to follow the below mentioned steps:
|
166 |
+
* Login to your REVE Chat dashboard
|
167 |
+
* Click on 'Agent Management'
|
168 |
+
* For adding your agent, click on the 'Create Agent' option
|
169 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
170 |
+
|
171 |
+
= Chat Conversation =
|
172 |
+
|
173 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
174 |
+
|
175 |
+
= Engaged Visitors =
|
176 |
+
|
177 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
178 |
+
|
179 |
+
= Online Agents =
|
180 |
+
|
181 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
182 |
+
|
183 |
+
= New Chat Request =
|
184 |
+
|
185 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
186 |
+
|
187 |
+
= Chat Panel =
|
188 |
+
|
189 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
190 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
191 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
192 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
193 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
194 |
+
|
195 |
+
= Online Visitors =
|
196 |
+
|
197 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
198 |
+
|
199 |
+
= Queued Visitor =
|
200 |
+
|
201 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
202 |
+
|
203 |
+
= Monitoring Panel =
|
204 |
+
|
205 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
206 |
+
|
207 |
+
<a href="https://www.revechat.com/signup/?utm_source=wordpress.org&utm_medium=integration&utm_campaign=WordpressIntegration" target="_blank">Signup for our Live Chat here</a>
|
208 |
+
|
209 |
+
== Installation ==
|
210 |
+
|
211 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
212 |
+
|
213 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
214 |
+
* or Install the plugin from the WordPress directory and activate it.
|
215 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
216 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
217 |
+
* Start chatting with your visitors! :)
|
218 |
+
|
219 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
revechat.php → tags/6.1.0/revechat.php
RENAMED
File without changes
|
tags/6.1.0/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.0/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.1/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.1/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.1/images/favicon.png
ADDED
Binary file
|
tags/6.1.1/images/logo.png
ADDED
Binary file
|
tags/6.1.1/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.1/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.1/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.1/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.1/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.1/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1.1/readme.txt
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.1
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
==Description ==
|
12 |
+
REVE Chat is a multi-channel cloud based live chat software that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
|
13 |
+
|
14 |
+
REVE Chat also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
|
15 |
+
|
16 |
+
|
17 |
+
https://youtu.be/t1dykZ9Tg8U
|
18 |
+
|
19 |
+
|
20 |
+
**Live Chat Key Features-**
|
21 |
+
* **Voice/ Video Chat:** Talk to your customers using voice/ video chat right inside your web or mobile apps with click to call solution.
|
22 |
+
* **Co-browsing:** Provide real time assistance and remote support to your website visitors and customers screen in real time.
|
23 |
+
* **Facebook Messenger:** Chat with your Facebook customers using REVE Chat from single dashboard.
|
24 |
+
* **Viber Messaging:** Chat with your customers on Viber messaging using your public account from single dashboard.
|
25 |
+
* **Screen sharing:** Support your website visitors in real time and help them to navigate the website with screen sharing.
|
26 |
+
* **Real-time Visitor Analytics:** Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
|
27 |
+
* **Department Management:** Improve customer response time by routing your customer queries to the right department.
|
28 |
+
* **Queuing:** Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
|
29 |
+
* **Auto Triggers:** Send automatic invitations to your website visitors based on certain time, ULR or location.
|
30 |
+
* **Chat Monitoring:** Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
|
31 |
+
|
32 |
+
|
33 |
+
**Live Chat Benefits-**
|
34 |
+
|
35 |
+
|
36 |
+
Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
|
37 |
+
* Get complete overview and insights about your customer interactions across multiple channels
|
38 |
+
* Offer your visitors instant assistance and increase your sales conversions
|
39 |
+
* Reduce cost of service by managing multiple customers simultaneously.
|
40 |
+
* Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
|
41 |
+
* Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
|
42 |
+
|
43 |
+
|
44 |
+
**What makes Reve Chat the best choice for live chat?**
|
45 |
+
|
46 |
+
* A simple and highly customizable Live chat solution
|
47 |
+
* User friendly interface and Dashboard
|
48 |
+
* Intuitive Chat Window
|
49 |
+
* Innovative and unique features
|
50 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
51 |
+
|
52 |
+
|
53 |
+
**Supported Language**
|
54 |
+
|
55 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
56 |
+
|
57 |
+
|
58 |
+
**Some Geeky Facts**
|
59 |
+
|
60 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
61 |
+
* Average uptime is 99.8%.
|
62 |
+
* Mobile Optimized Dashboard
|
63 |
+
* Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
64 |
+
|
65 |
+
|
66 |
+
= Support =
|
67 |
+
|
68 |
+
|
69 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
70 |
+
|
71 |
+
|
72 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
== Changelog ==
|
77 |
+
|
78 |
+
|
79 |
+
= 1.2.0 =
|
80 |
+
|
81 |
+
* Feature: Add the Reve chat widget to your site!
|
82 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
83 |
+
|
84 |
+
= 2.0 =
|
85 |
+
* New Admin Menu page for REVE Chat
|
86 |
+
* New for integration
|
87 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
88 |
+
|
89 |
+
= 2.0.1 =
|
90 |
+
* Updated chat script
|
91 |
+
|
92 |
+
= 2.0.3 =
|
93 |
+
* updated the UI
|
94 |
+
|
95 |
+
= 3.0 =
|
96 |
+
* introduced new signup process
|
97 |
+
* fixed signin bug
|
98 |
+
|
99 |
+
== Screenshots ==
|
100 |
+
|
101 |
+
1. Chat window on your website - active chat
|
102 |
+
2. Account Configuration - Link Up
|
103 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
104 |
+
4. Dashboard View - Open new browser tab
|
105 |
+
5. Widget Customization from Dashboard
|
106 |
+
|
107 |
+
|
108 |
+
== Installation ==
|
109 |
+
|
110 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
111 |
+
|
112 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
113 |
+
* or Install the plugin from the WordPress directory and activate it.
|
114 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
115 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
116 |
+
* Start chatting with your visitors! :)
|
117 |
+
|
118 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
119 |
+
|
120 |
+
== Frequently Asked Questions ==
|
121 |
+
|
122 |
+
|
123 |
+
= Do I have to install any software on my server to get this working? =
|
124 |
+
REVE live chat plugin need to be installed from your WordPress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
125 |
+
|
126 |
+
= Why should I use REVE Chat? =
|
127 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
128 |
+
|
129 |
+
= Which web browsers work best with this plugin? =
|
130 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
131 |
+
|
132 |
+
= How much is price of REVE Chat? =
|
133 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
134 |
+
1. Basic (Free)
|
135 |
+
2. Standard
|
136 |
+
3. Advanced
|
137 |
+
Please click here to find out more about pricing.
|
138 |
+
The live chat support plugin is completely free to install. However, if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
139 |
+
|
140 |
+
= How can I chat with more visitors at the same time? =
|
141 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website.
|
142 |
+
|
143 |
+
= How can I take further information regarding REVE Chat? =
|
144 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
145 |
+
|
146 |
+
= Is there any demo or trial period to do some testing? =
|
147 |
+
Yes, definitely you can use all the features of REVE Chat for 14days in the trial period.
|
148 |
+
|
149 |
+
= Can I customize the REVE Chat window? =
|
150 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
151 |
+
* Changing the color scheme
|
152 |
+
* Changing the font size
|
153 |
+
* Chat Widget text
|
154 |
+
* Offline Widget Text
|
155 |
+
* Pre chat & Post chat form
|
156 |
+
|
157 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
158 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
159 |
+
|
160 |
+
|
161 |
+
= Contributors & Developers =
|
162 |
+
|
163 |
+
“REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
|
164 |
+
|
165 |
+
|
tags/6.1.1/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1.1/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.1/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.2/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.2/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.2/images/favicon.png
ADDED
Binary file
|
tags/6.1.2/images/logo.png
ADDED
Binary file
|
tags/6.1.2/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.2/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.2/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.2/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.2/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.2/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1.2/readme.txt
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.2
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
==Description ==
|
12 |
+
REVE Chat is a multi-channel cloud based live chat software that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
|
13 |
+
|
14 |
+
REVE Chat also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
|
15 |
+
|
16 |
+
|
17 |
+
https://youtu.be/t1dykZ9Tg8U
|
18 |
+
|
19 |
+
|
20 |
+
**Live Chat Key Features-**
|
21 |
+
* **Voice/ Video Chat:** Talk to your customers using voice/ video chat right inside your web or mobile apps with click to call solution.
|
22 |
+
* **Co-browsing:** Provide real time assistance and remote support to your website visitors and customers screen in real time.
|
23 |
+
* **Facebook Messenger:** Chat with your Facebook customers using REVE Chat from single dashboard.
|
24 |
+
* **Viber Messaging:** Chat with your customers on Viber messaging using your public account from single dashboard.
|
25 |
+
* **Screen sharing:** Support your website visitors in real time and help them to navigate the website with screen sharing.
|
26 |
+
* **Real-time Visitor Analytics:** Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
|
27 |
+
* **Department Management:** Improve customer response time by routing your customer queries to the right department.
|
28 |
+
* **Queuing:** Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
|
29 |
+
* **Auto Triggers:** Send automatic invitations to your website visitors based on certain time, ULR or location.
|
30 |
+
* **Chat Monitoring:** Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
|
31 |
+
|
32 |
+
|
33 |
+
**Live Chat Benefits-**
|
34 |
+
|
35 |
+
|
36 |
+
Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
|
37 |
+
* Get complete overview and insights about your customer interactions across multiple channels
|
38 |
+
* Offer your visitors instant assistance and increase your sales conversions
|
39 |
+
* Reduce cost of service by managing multiple customers simultaneously.
|
40 |
+
* Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
|
41 |
+
* Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
|
42 |
+
|
43 |
+
|
44 |
+
**What makes Reve Chat the best choice for live chat?**
|
45 |
+
|
46 |
+
* A simple and highly customizable Live chat solution
|
47 |
+
* User friendly interface and Dashboard
|
48 |
+
* Intuitive Chat Window
|
49 |
+
* Innovative and unique features
|
50 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
51 |
+
|
52 |
+
|
53 |
+
**Supported Language**
|
54 |
+
|
55 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
56 |
+
|
57 |
+
|
58 |
+
**Some Geeky Facts**
|
59 |
+
|
60 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
61 |
+
* Average uptime is 99.8%.
|
62 |
+
* Mobile Optimized Dashboard
|
63 |
+
* Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
64 |
+
|
65 |
+
|
66 |
+
= Support =
|
67 |
+
|
68 |
+
|
69 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
70 |
+
|
71 |
+
|
72 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
== Changelog ==
|
77 |
+
|
78 |
+
|
79 |
+
= 1.2.0 =
|
80 |
+
|
81 |
+
* Feature: Add the Reve chat widget to your site!
|
82 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
83 |
+
|
84 |
+
= 2.0 =
|
85 |
+
* New Admin Menu page for REVE Chat
|
86 |
+
* New for integration
|
87 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
88 |
+
|
89 |
+
= 2.0.1 =
|
90 |
+
* Updated chat script
|
91 |
+
|
92 |
+
= 2.0.3 =
|
93 |
+
* updated the UI
|
94 |
+
|
95 |
+
= 3.0 =
|
96 |
+
* introduced new signup process
|
97 |
+
* fixed signin bug
|
98 |
+
|
99 |
+
== Screenshots ==
|
100 |
+
|
101 |
+
1. Chat window on your website - active chat
|
102 |
+
2. Account Configuration - Link Up
|
103 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
104 |
+
4. Dashboard View - Open new browser tab
|
105 |
+
5. Widget Customization from Dashboard
|
106 |
+
|
107 |
+
|
108 |
+
== Installation ==
|
109 |
+
|
110 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
111 |
+
|
112 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
113 |
+
* or Install the plugin from the WordPress directory and activate it.
|
114 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
115 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
116 |
+
* Start chatting with your visitors! :)
|
117 |
+
|
118 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
119 |
+
|
120 |
+
== Frequently Asked Questions ==
|
121 |
+
|
122 |
+
|
123 |
+
= Do I have to install any software on my server to get this working? =
|
124 |
+
REVE live chat plugin need to be installed from your WordPress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
125 |
+
|
126 |
+
= Why should I use REVE Chat? =
|
127 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
128 |
+
|
129 |
+
= Which web browsers work best with this plugin? =
|
130 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
131 |
+
|
132 |
+
= How much is price of REVE Chat? =
|
133 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
134 |
+
1. Basic (Free)
|
135 |
+
2. Standard
|
136 |
+
3. Advanced
|
137 |
+
Please click here to find out more about pricing.
|
138 |
+
The live chat support plugin is completely free to install. However, if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
139 |
+
|
140 |
+
= How can I chat with more visitors at the same time? =
|
141 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website.
|
142 |
+
|
143 |
+
= How can I take further information regarding REVE Chat? =
|
144 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
145 |
+
|
146 |
+
= Is there any demo or trial period to do some testing? =
|
147 |
+
Yes, definitely you can use all the features of REVE Chat for 14days in the trial period.
|
148 |
+
|
149 |
+
= Can I customize the REVE Chat window? =
|
150 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
151 |
+
* Changing the color scheme
|
152 |
+
* Changing the font size
|
153 |
+
* Chat Widget text
|
154 |
+
* Offline Widget Text
|
155 |
+
* Pre chat & Post chat form
|
156 |
+
|
157 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
158 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
159 |
+
|
160 |
+
|
161 |
+
= Contributors & Developers =
|
162 |
+
|
163 |
+
“REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
|
164 |
+
|
165 |
+
|
tags/6.1.2/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1.2/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.2/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.3/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.3/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.3/images/favicon.png
ADDED
Binary file
|
tags/6.1.3/images/logo.png
ADDED
Binary file
|
tags/6.1.3/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.3/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.3/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.3/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.3/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.3/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1.3/readme.txt
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.3
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
==Description ==
|
12 |
+
REVE Chat is a multi-channel cloud based live chat software that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
|
13 |
+
|
14 |
+
REVE Chat also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
|
15 |
+
|
16 |
+
|
17 |
+
https://youtu.be/t1dykZ9Tg8U
|
18 |
+
|
19 |
+
|
20 |
+
**Live Chat Key Features-**
|
21 |
+
**Voice/ Video Chat:** Talk to your customers using voice/ video chat right inside your web or mobile apps with click to call solution.
|
22 |
+
|
23 |
+
**Co-browsing:** Provide real time assistance and remote support to your website visitors and customers screen in real time.
|
24 |
+
|
25 |
+
**Facebook Messenger:** Chat with your Facebook customers using REVE Chat from single dashboard.
|
26 |
+
|
27 |
+
**Viber Messaging:** Chat with your customers on Viber messaging using your public account from single dashboard.
|
28 |
+
|
29 |
+
**Screen sharing:** Support your website visitors in real time and help them to navigate the website with screen sharing.
|
30 |
+
|
31 |
+
**Real-time Visitor Analytics:** Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
|
32 |
+
|
33 |
+
**Department Management:** Improve customer response time by routing your customer queries to the right department.
|
34 |
+
|
35 |
+
**Queuing:** Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
|
36 |
+
|
37 |
+
**Auto Triggers:** Send automatic invitations to your website visitors based on certain time, ULR or location.
|
38 |
+
|
39 |
+
**Chat Monitoring:** Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
|
40 |
+
|
41 |
+
|
42 |
+
**Live Chat Benefits-**
|
43 |
+
|
44 |
+
|
45 |
+
Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
|
46 |
+
Get complete overview and insights about your customer interactions across multiple channels
|
47 |
+
|
48 |
+
Offer your visitors instant assistance and increase your sales conversions
|
49 |
+
|
50 |
+
Reduce cost of service by managing multiple customers simultaneously.
|
51 |
+
|
52 |
+
Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
|
53 |
+
|
54 |
+
Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
|
55 |
+
|
56 |
+
|
57 |
+
**What makes Reve Chat the best choice for live chat?**
|
58 |
+
|
59 |
+
* A simple and highly customizable Live chat solution
|
60 |
+
* User friendly interface and Dashboard
|
61 |
+
* Intuitive Chat Window
|
62 |
+
* Innovative and unique features
|
63 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
64 |
+
|
65 |
+
|
66 |
+
**Supported Language**
|
67 |
+
|
68 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
69 |
+
|
70 |
+
|
71 |
+
**Some Geeky Facts**
|
72 |
+
|
73 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
74 |
+
* Average uptime is 99.8%.
|
75 |
+
* Mobile Optimized Dashboard
|
76 |
+
* Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
77 |
+
|
78 |
+
|
79 |
+
= Support =
|
80 |
+
|
81 |
+
|
82 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
83 |
+
|
84 |
+
|
85 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
== Changelog ==
|
90 |
+
|
91 |
+
|
92 |
+
= 1.2.0 =
|
93 |
+
|
94 |
+
* Feature: Add the Reve chat widget to your site!
|
95 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
96 |
+
|
97 |
+
= 2.0 =
|
98 |
+
* New Admin Menu page for REVE Chat
|
99 |
+
* New for integration
|
100 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
101 |
+
|
102 |
+
= 2.0.1 =
|
103 |
+
* Updated chat script
|
104 |
+
|
105 |
+
= 2.0.3 =
|
106 |
+
* updated the UI
|
107 |
+
|
108 |
+
= 3.0 =
|
109 |
+
* introduced new signup process
|
110 |
+
* fixed signin bug
|
111 |
+
|
112 |
+
== Screenshots ==
|
113 |
+
|
114 |
+
1. Chat window on your website - active chat
|
115 |
+
2. Account Configuration - Link Up
|
116 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
117 |
+
4. Dashboard View - Open new browser tab
|
118 |
+
5. Widget Customization from Dashboard
|
119 |
+
|
120 |
+
|
121 |
+
== Installation ==
|
122 |
+
|
123 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
124 |
+
|
125 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
126 |
+
* or Install the plugin from the WordPress directory and activate it.
|
127 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
128 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
129 |
+
* Start chatting with your visitors! :)
|
130 |
+
|
131 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
132 |
+
|
133 |
+
== Frequently Asked Questions ==
|
134 |
+
|
135 |
+
|
136 |
+
= Do I have to install any software on my server to get this working? =
|
137 |
+
REVE live chat plugin need to be installed from your WordPress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
138 |
+
|
139 |
+
= Why should I use REVE Chat? =
|
140 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
141 |
+
|
142 |
+
= Which web browsers work best with this plugin? =
|
143 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
144 |
+
|
145 |
+
= How much is price of REVE Chat? =
|
146 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
147 |
+
1. Basic (Free)
|
148 |
+
2. Standard
|
149 |
+
3. Advanced
|
150 |
+
Please click here to find out more about pricing.
|
151 |
+
The live chat support plugin is completely free to install. However, if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
152 |
+
|
153 |
+
= How can I chat with more visitors at the same time? =
|
154 |
+
REVE Chat allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website.
|
155 |
+
|
156 |
+
= How can I take further information regarding REVE Chat? =
|
157 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
158 |
+
|
159 |
+
= Is there any demo or trial period to do some testing? =
|
160 |
+
Yes, definitely you can use all the features of REVE Chat for 14days in the trial period.
|
161 |
+
|
162 |
+
= Can I customize the REVE Chat window? =
|
163 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
164 |
+
* Changing the color scheme
|
165 |
+
* Changing the font size
|
166 |
+
* Chat Widget text
|
167 |
+
* Offline Widget Text
|
168 |
+
* Pre chat & Post chat form
|
169 |
+
|
170 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
171 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
172 |
+
|
173 |
+
|
174 |
+
= Contributors & Developers =
|
175 |
+
|
176 |
+
“REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
|
177 |
+
|
178 |
+
|
tags/6.1.3/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1.3/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.3/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.5/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.5/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.5/images/favicon.png
ADDED
Binary file
|
tags/6.1.5/images/logo.png
ADDED
Binary file
|
tags/6.1.5/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.5/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.5/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.5/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.5/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.5/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1.5/readme.txt
ADDED
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.5
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
==Description ==
|
12 |
+
REVE Chat is a multi-channel cloud based live chat software plugin that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
|
13 |
+
|
14 |
+
REVE Chat WP live chat plugin for WordPress also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
|
15 |
+
|
16 |
+
|
17 |
+
https://youtu.be/t1dykZ9Tg8U
|
18 |
+
|
19 |
+
|
20 |
+
**Live Chat Key Features-**
|
21 |
+
**Voice/ Video Chat:** With live chat for WordPress, Business can Talk to your customers using voice/ video chat plubin right inside your web or mobile apps with click to call solution.
|
22 |
+
|
23 |
+
**Co-browsing:** Using live chat and WordPress together, Provide real time assistance and remote support to your website visitors and customers screen in real time.
|
24 |
+
|
25 |
+
**Facebook Messenger:** Using live chat and facebook together,Chat with your Facebook customers using REVE Chat from single dashboard.
|
26 |
+
|
27 |
+
**Viber Messaging:** Using live chat and viber together,Chat with your customers on Viber messaging using your public account from single dashboard.
|
28 |
+
|
29 |
+
**Screen sharing:** With the REVE Chat chat plugin for WordPress, Support your website visitors in real time and help them to navigate the website with screen sharing.
|
30 |
+
|
31 |
+
**Real-time Visitor Analytics:** With the REVE Chat chat plugin for WordPress, Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
|
32 |
+
|
33 |
+
**Department Management:** With the REVE Chat chat plugin for WordPress, Improve customer response time by routing your customer queries to the right department.
|
34 |
+
|
35 |
+
**Queuing:** With the REVE Chat chat plugin for WordPress, Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
|
36 |
+
|
37 |
+
**Auto Triggers:** With the REVE Chat chat plugin for WordPress, Send automatic invitations to your website visitors based on certain time, ULR or location.
|
38 |
+
|
39 |
+
**Chat Monitoring:** With the REVE Chat chat plugin for WordPress, Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
|
40 |
+
|
41 |
+
**Mobile live chat applications:** - mobile apps for iOS and Android will help you chat with customers wherever you are.
|
42 |
+
|
43 |
+
|
44 |
+
**Live Chat Benefits-**
|
45 |
+
|
46 |
+
|
47 |
+
Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
|
48 |
+
|
49 |
+
Get complete overview and insights about your customer interactions across multiple channels
|
50 |
+
|
51 |
+
Offer your visitors instant assistance and increase your sales conversions
|
52 |
+
|
53 |
+
Reduce cost of service by managing multiple customers simultaneously.
|
54 |
+
|
55 |
+
Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
|
56 |
+
|
57 |
+
Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
|
58 |
+
|
59 |
+
|
60 |
+
**What makes Reve Chat the best choice for live chat?**
|
61 |
+
|
62 |
+
* A simple and highly customizable Live chat solution
|
63 |
+
* User friendly interface and Dashboard
|
64 |
+
* Intuitive Chat Window
|
65 |
+
* Innovative and unique features
|
66 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
67 |
+
|
68 |
+
|
69 |
+
**Supported Language**
|
70 |
+
|
71 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
72 |
+
|
73 |
+
|
74 |
+
**Some Geeky Facts**
|
75 |
+
|
76 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
77 |
+
* Average uptime is 99.8%.
|
78 |
+
* Mobile Optimized Dashboard
|
79 |
+
* Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
80 |
+
|
81 |
+
|
82 |
+
= Support =
|
83 |
+
|
84 |
+
|
85 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
86 |
+
|
87 |
+
|
88 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
== Changelog ==
|
93 |
+
|
94 |
+
|
95 |
+
= 1.2.0 =
|
96 |
+
|
97 |
+
* Feature: Add the Reve chat widget to your site!
|
98 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
99 |
+
|
100 |
+
= 2.0 =
|
101 |
+
* New Admin Menu page for REVE Chat
|
102 |
+
* New for integration
|
103 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
104 |
+
|
105 |
+
= 2.0.1 =
|
106 |
+
* Updated chat script
|
107 |
+
|
108 |
+
= 2.0.3 =
|
109 |
+
* updated the UI
|
110 |
+
|
111 |
+
= 3.0 =
|
112 |
+
* introduced new signup process
|
113 |
+
* fixed signin bug
|
114 |
+
|
115 |
+
== Screenshots ==
|
116 |
+
|
117 |
+
1. Chat window on your website - active chat
|
118 |
+
2. Account Configuration - Link Up
|
119 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
120 |
+
4. Dashboard View - Open new browser tab
|
121 |
+
5. Widget Customization from Dashboard
|
122 |
+
|
123 |
+
|
124 |
+
== Installation ==
|
125 |
+
|
126 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
127 |
+
|
128 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
129 |
+
* or Install the plugin from the WordPress directory and activate it.
|
130 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
131 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
132 |
+
* Start chatting with your visitors! :)
|
133 |
+
|
134 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
135 |
+
|
136 |
+
== Frequently Asked Questions ==
|
137 |
+
|
138 |
+
|
139 |
+
= Do I have to install any software on my server to get working the chat plugin? =
|
140 |
+
REVE live chat plugin need to be installed from your WordPress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
141 |
+
|
142 |
+
= Why should I use REVE Chat live chat support? =
|
143 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
144 |
+
|
145 |
+
= Which web browsers work best with this chat plugin? =
|
146 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
147 |
+
|
148 |
+
= How much is price of REVE Chat web chat plugin? =
|
149 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
150 |
+
1. Basic (Free)
|
151 |
+
2. Standard
|
152 |
+
3. Advanced
|
153 |
+
Please click here to find out more about pricing.
|
154 |
+
The live chat support plugin is completely free to install. However, if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
155 |
+
|
156 |
+
= How can I chat with more visitors at the same time? =
|
157 |
+
REVE Chat web chat plugin allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website.
|
158 |
+
|
159 |
+
= How can I take further information regarding REVE Chat live chat support plugin? =
|
160 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
161 |
+
|
162 |
+
= Is there any demo or trial period to do some testing? =
|
163 |
+
Yes, definitely you can use all the features of REVE Chat live chat plugin for 14days in the trial period.
|
164 |
+
|
165 |
+
= Can I customize the REVE Chat window? =
|
166 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
167 |
+
* Changing the color scheme
|
168 |
+
* Changing the font size
|
169 |
+
* Chat Widget text
|
170 |
+
* Offline Widget Text
|
171 |
+
* Pre chat & Post chat form
|
172 |
+
|
173 |
+
= Can I add REVE Chat plugin on more than one website at the same time? =
|
174 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
175 |
+
|
176 |
+
|
177 |
+
= Contributors & Developers =
|
178 |
+
|
179 |
+
“REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
|
180 |
+
|
181 |
+
|
tags/6.1.5/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1.5/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.5/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.6/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.6/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.6/images/favicon.png
ADDED
Binary file
|
tags/6.1.6/images/logo.png
ADDED
Binary file
|
tags/6.1.6/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.6/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.6/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.6/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.6/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.6/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1.6/readme.txt
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.6
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
==Description ==
|
12 |
+
REVE Chat is a multi-channel cloud based live chat software plugin that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
|
13 |
+
|
14 |
+
REVE Chat WP live chat plugin for WordPress also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
|
15 |
+
|
16 |
+
|
17 |
+
https://youtu.be/t1dykZ9Tg8U
|
18 |
+
|
19 |
+
|
20 |
+
**Live Chat Key Features-**
|
21 |
+
**Voice/ Video Chat:** With live chat for WordPress, Business can Talk to your customers using voice/ video chat plubin right inside your web or mobile apps with click to call solution.
|
22 |
+
|
23 |
+
**Co-browsing:** Using live chat and WordPress together, Provide real time assistance and remote support to your website visitors and customers screen in real time.
|
24 |
+
|
25 |
+
**Facebook Messenger:** Using live chat and facebook together,Chat with your Facebook customers using REVE Chat from single dashboard.
|
26 |
+
|
27 |
+
**Viber Messaging:** Using live chat and viber together,Chat with your customers on Viber messaging using your public account from single dashboard.
|
28 |
+
|
29 |
+
**Screen sharing:** With the REVE Chat chat plugin for WordPress, Support your website visitors in real time and help them to navigate the website with screen sharing.
|
30 |
+
|
31 |
+
**Real-time Visitor Analytics:** With the REVE Chat chat plugin for WordPress, Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
|
32 |
+
|
33 |
+
**Department Management:** With the REVE Chat chat plugin for WordPress, Improve customer response time by routing your customer queries to the right department.
|
34 |
+
|
35 |
+
**Queuing:** With the REVE Chat chat plugin for WordPress, Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
|
36 |
+
|
37 |
+
**Auto Triggers:** With the REVE Chat chat plugin for WordPress, Send automatic invitations to your website visitors based on certain time, ULR or location.
|
38 |
+
|
39 |
+
**Chat Monitoring:** With the REVE Chat chat plugin for WordPress, Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
|
40 |
+
|
41 |
+
**Mobile live chat applications:** - mobile apps for iOS and Android will help you chat with customers wherever you are.
|
42 |
+
|
43 |
+
|
44 |
+
**Live Chat Benefits-**
|
45 |
+
|
46 |
+
|
47 |
+
Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
|
48 |
+
|
49 |
+
Get complete overview and insights about your customer interactions across multiple channels
|
50 |
+
|
51 |
+
Offer your visitors instant assistance and increase your sales conversions
|
52 |
+
|
53 |
+
Reduce cost of service by managing multiple customers simultaneously.
|
54 |
+
|
55 |
+
Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
|
56 |
+
|
57 |
+
Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
|
58 |
+
|
59 |
+
|
60 |
+
== What is live chat for WordPress? ==
|
61 |
+
|
62 |
+
If you have a website, and you are serious about your business then using live chat will be best. Live chat plugin for WordPress adds a live chat widget to the bottom of your website that allows visitors to chat to you in real time.
|
63 |
+
|
64 |
+
== Usage ==
|
65 |
+
|
66 |
+
With the REVE chat chat plugin for WordPress, you can add live chat to every page of your website, including the checkout in no time. To answer chats, chat agents have to be logged into one of our dashboard - from web dashboard or mobile apps. There are also applications for mobile devices - iPhone and Android.
|
67 |
+
|
68 |
+
|
69 |
+
**What makes Reve Chat the best choice for live chat?**
|
70 |
+
|
71 |
+
* A simple and highly customizable Live chat solution
|
72 |
+
* User friendly interface and Dashboard
|
73 |
+
* Intuitive Chat Window
|
74 |
+
* Innovative and unique features
|
75 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
76 |
+
|
77 |
+
|
78 |
+
**Supported Language**
|
79 |
+
|
80 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
81 |
+
|
82 |
+
|
83 |
+
**Some Geeky Facts**
|
84 |
+
|
85 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
86 |
+
* Average uptime is 99.8%.
|
87 |
+
* Mobile Optimized Dashboard
|
88 |
+
* Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
89 |
+
|
90 |
+
|
91 |
+
= Support =
|
92 |
+
|
93 |
+
|
94 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
95 |
+
|
96 |
+
|
97 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
== Changelog ==
|
102 |
+
|
103 |
+
|
104 |
+
= 1.2.0 =
|
105 |
+
|
106 |
+
* Feature: Add the Reve chat widget to your site!
|
107 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
108 |
+
|
109 |
+
= 2.0 =
|
110 |
+
* New Admin Menu page for REVE Chat
|
111 |
+
* New for integration
|
112 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
113 |
+
|
114 |
+
= 2.0.1 =
|
115 |
+
* Updated chat script
|
116 |
+
|
117 |
+
= 2.0.3 =
|
118 |
+
* updated the UI
|
119 |
+
|
120 |
+
= 3.0 =
|
121 |
+
* introduced new signup process
|
122 |
+
* fixed signin bug
|
123 |
+
|
124 |
+
== Screenshots ==
|
125 |
+
|
126 |
+
1. Chat window on your website - active chat
|
127 |
+
2. Account Configuration - Link Up
|
128 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
129 |
+
4. Dashboard View - Open new browser tab
|
130 |
+
5. Widget Customization from Dashboard
|
131 |
+
|
132 |
+
|
133 |
+
== Installation ==
|
134 |
+
|
135 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
136 |
+
|
137 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
138 |
+
* or Install the plugin from the WordPress directory and activate it.
|
139 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
140 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
141 |
+
* Start chatting with your visitors! :)
|
142 |
+
|
143 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
144 |
+
|
145 |
+
== Frequently Asked Questions ==
|
146 |
+
|
147 |
+
|
148 |
+
= Do I have to install any software on my server to get working the chat plugin? =
|
149 |
+
REVE live chat plugin need to be installed from your WordPress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
150 |
+
|
151 |
+
= Why should I use REVE Chat live chat support? =
|
152 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
153 |
+
|
154 |
+
= Which web browsers work best with this chat plugin? =
|
155 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
156 |
+
|
157 |
+
= How much is price of REVE Chat web chat plugin? =
|
158 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
159 |
+
1. Basic (Free)
|
160 |
+
2. Standard
|
161 |
+
3. Advanced
|
162 |
+
Please click here to find out more about pricing.
|
163 |
+
The live chat support plugin is completely free to install. However, if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
164 |
+
|
165 |
+
= How can I chat with more visitors at the same time? =
|
166 |
+
REVE Chat web chat plugin allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website.
|
167 |
+
|
168 |
+
= How can I take further information regarding REVE Chat live chat support plugin? =
|
169 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
170 |
+
|
171 |
+
= Is there any demo or trial period to do some testing? =
|
172 |
+
Yes, definitely you can use all the features of REVE Chat live chat plugin for 14days in the trial period.
|
173 |
+
|
174 |
+
= Can I customize the REVE Chat window? =
|
175 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
176 |
+
* Changing the color scheme
|
177 |
+
* Changing the font size
|
178 |
+
* Chat Widget text
|
179 |
+
* Offline Widget Text
|
180 |
+
* Pre chat & Post chat form
|
181 |
+
|
182 |
+
= Can I add REVE Chat plugin on more than one website at the same time? =
|
183 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
184 |
+
|
185 |
+
|
186 |
+
= Contributors & Developers =
|
187 |
+
|
188 |
+
“REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
|
189 |
+
|
190 |
+
|
tags/6.1.6/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1.6/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.6/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1.7/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1.7/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1.7/images/favicon.png
ADDED
Binary file
|
tags/6.1.7/images/logo.png
ADDED
Binary file
|
tags/6.1.7/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1.7/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1.7/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1.7/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1.7/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1.7/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
readme.txt → tags/6.1.7/readme.txt
RENAMED
File without changes
|
tags/6.1.7/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1.7/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1.7/screenshot-9.jpg
ADDED
Binary file
|
tags/6.1/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
tags/6.1/css/ajax_loader.gif
ADDED
Binary file
|
tags/6.1/images/favicon.png
ADDED
Binary file
|
tags/6.1/images/logo.png
ADDED
Binary file
|
tags/6.1/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
tags/6.1/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
tags/6.1/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
tags/6.1/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
tags/6.1/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
tags/6.1/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
tags/6.1/readme.txt
ADDED
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc, revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
REVE Chat is a live chat support software plugin. It lets you monitor and chat with visitors on your Wordpress site to personally guide and help your visitors, while they go through the various sections of your website.
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
Live chat customer support, the efficient usage of valuable time is the main key to both happy customers and professional management. Traditionally interactions between live support agents and visitors have been restricted to one-on-one supports over phones or emails. Live chat for customer support has now become the alternative that today's multitasking and net savvy generation is looking for. It offers quick response in real time and higher customer satisfaction which can generate more conversions. In the era of automated customer assistance systems, the chance to chat with a person in real time through your website is a distinct feature. Now just like a sales person in the shop, talk to the visitors of your website in real-time.
|
18 |
+
REVE Chat is powerful and intuitive real-time customer engagement software. It puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use. So place this customizable REVE Chat widget to your business and start getting sales conversion and higher customer satisfaction.
|
19 |
+
|
20 |
+
https://youtu.be/t1dykZ9Tg8U
|
21 |
+
|
22 |
+
**Live Chat benefits**
|
23 |
+
|
24 |
+
* **Real-time Visitor Info:** Agent as well as Admin can see real time visitor information. Our live chat plugins enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
25 |
+
* **Proactive Chat:** Proactive chat enables agents to initiate a Chat request from their Chat Window. Moreover Trigger based proactive chat automatically sends customized chat alerts for the visitors on the website.
|
26 |
+
* **Chat Monitoring:** Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents
|
27 |
+
* **Click to Call:** Click to call is a powerful solution that can be implemented on REVE Chat to offer real-time voice assistance to online customers. It allows visitor and agent to initiate Voice and Video Call from their Chat window.
|
28 |
+
* **Queuing:** With this chat software handle chat requests efficiently when all your agents are busy. Our live chat software gives information to website visitors regarding their waiting time in the chat queue
|
29 |
+
* **Facebook Integration:** REVE Chat allows you to engage with your potential customers through your company Facebook page. Facebook is very effective tool for business. Smart use of social media increases sales, retention and customer satisfaction. REVE Chat Facebook app makes it easier than ever to engage online visitors. Facebook integration lets customers reach you directly on your Facebook fan page, whether or not you are online, increasing customer happiness and organic marketing and outreach.
|
30 |
+
|
31 |
+
|
32 |
+
**What makes Reve Chat the best choice for live chat?**
|
33 |
+
|
34 |
+
* A simple and highly customizable Live chat solution
|
35 |
+
* User friendly interface and Dashboard
|
36 |
+
* Intuitive Chat Window
|
37 |
+
* Innovative and unique features
|
38 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
39 |
+
|
40 |
+
**Supported Language**
|
41 |
+
|
42 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
43 |
+
|
44 |
+
|
45 |
+
**Some Geeky Facts**
|
46 |
+
|
47 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
48 |
+
* Average uptime is 99.8%.
|
49 |
+
* Mobile Optimized Dashboard
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
54 |
+
|
55 |
+
|
56 |
+
= Support =
|
57 |
+
|
58 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
59 |
+
|
60 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
== Changelog ==
|
65 |
+
|
66 |
+
|
67 |
+
= 1.2.0 =
|
68 |
+
|
69 |
+
* Feature: Add the Reve chat widget to your site!
|
70 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
71 |
+
|
72 |
+
= 2.0 =
|
73 |
+
* New Admin Menu page for REVE Chat
|
74 |
+
* New for integration
|
75 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
76 |
+
|
77 |
+
= 2.0.1 =
|
78 |
+
* Updated chat script
|
79 |
+
|
80 |
+
= 2.0.3 =
|
81 |
+
* updated the UI
|
82 |
+
|
83 |
+
= 3.0 =
|
84 |
+
* introduced new signup process
|
85 |
+
* fixed signin bug
|
86 |
+
|
87 |
+
== Screenshots ==
|
88 |
+
|
89 |
+
1. Chat window on your website - active chat
|
90 |
+
2. Account Configuration - Link Up
|
91 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
92 |
+
4. Dashboard View - Open new browser tab
|
93 |
+
5. Widget Customization from Dashboard
|
94 |
+
|
95 |
+
== Frequently Asked Questions ==
|
96 |
+
|
97 |
+
= Do I have to install any software on my server to get this working? =
|
98 |
+
|
99 |
+
REVE Chat support plugin need to be installed from your wordpress panel. It is a cloud based live chat software plugin hence it would only activate the script when you install the chat plugin.
|
100 |
+
|
101 |
+
= Why should I use REVE Chat? =
|
102 |
+
|
103 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
104 |
+
|
105 |
+
= Which web browsers work best with this plugin =
|
106 |
+
|
107 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
108 |
+
|
109 |
+
= How much is price of REVE Chat? =
|
110 |
+
|
111 |
+
REVE Chat plugin in free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
112 |
+
1. Basic (Free)
|
113 |
+
2. Standard
|
114 |
+
3. Advanced
|
115 |
+
Please click here to find out more about pricing
|
116 |
+
The plugin is completely free to install. However if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
117 |
+
|
118 |
+
= How can I chat with more visitors at the same time? =
|
119 |
+
|
120 |
+
REVE Chat plugin allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website
|
121 |
+
|
122 |
+
= How can I take further information regarding REVE Chat? =
|
123 |
+
|
124 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
125 |
+
|
126 |
+
= Is there any demo or trial period to do some testing? =
|
127 |
+
|
128 |
+
Yes, defiantly you can use all the features of REVE Chat for 14days in the trial period.
|
129 |
+
|
130 |
+
= Can I customize the REVE Chat window? =
|
131 |
+
|
132 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
133 |
+
|
134 |
+
* Changing the colour scheme
|
135 |
+
* Changing the font size
|
136 |
+
* Chat Widget text
|
137 |
+
* Offline Widget Text
|
138 |
+
* Prechat & Post chat form
|
139 |
+
|
140 |
+
= Can I add REVE Chat on more than one website at the same time? =
|
141 |
+
|
142 |
+
Yes, there is no limit on websites for the paid plans. However our free Basic package has limited features and it can be used only on one website.
|
143 |
+
|
144 |
+
== Usage ==
|
145 |
+
|
146 |
+
= Agent management =
|
147 |
+
|
148 |
+
From the dashboard you to keep a track on your agents with its special agent management feature. Here you can add your agents and see all the details like status, last login time, total no of assigned concurrent chat of each and every agent etc. In real time which will help you to manage your support service more efficiently
|
149 |
+
|
150 |
+
= How to configuring a chat operator =
|
151 |
+
|
152 |
+
Please follow the below mentioned directions to manage your agents.
|
153 |
+
* After logging in to your REVE Chat dash board, click on 'Agent Management' option. Here you will get the below mentioned information:
|
154 |
+
* List of your agent names
|
155 |
+
* Roles assigned to each and every agent
|
156 |
+
* Email address of your agents
|
157 |
+
* Phone numbers of your agents
|
158 |
+
* Status of your agents online or offline
|
159 |
+
* Each and every agent's last login time
|
160 |
+
* Total number of concurrent chats assigned to each and every agent
|
161 |
+
|
162 |
+
|
163 |
+
= Agent creation =
|
164 |
+
|
165 |
+
To create an agent, you need to follow the below mentioned steps:
|
166 |
+
* Login to your REVE Chat dashboard
|
167 |
+
* Click on 'Agent Management'
|
168 |
+
* For adding your agent, click on the 'Create Agent' option
|
169 |
+
* After that you need to fill up a from mentioning the email address, password, role which you want to assign to the agent, total no of concurrent chats you want to assign to that agent, the agent's first and last name, designation and contact no. After that click on the 'Submit' button
|
170 |
+
|
171 |
+
= Chat Conversation =
|
172 |
+
|
173 |
+
In the conversation box agent can directly engage with visitor. Each message is accompanied by the name of the person who sent that message and a timestamp so you can easily follow the conversation
|
174 |
+
|
175 |
+
= Engaged Visitors =
|
176 |
+
|
177 |
+
In the top left side corner of the panel Chat operator can see all of his on-going chats.
|
178 |
+
|
179 |
+
= Online Agents =
|
180 |
+
|
181 |
+
Chat operator can chat with other operators from the same Chat Window. At the left corner there is a menu called Online Agents. In that menu all the logged in operators name will be shown. By clicking one operator name you can start conversation with him.
|
182 |
+
|
183 |
+
= New Chat Request =
|
184 |
+
|
185 |
+
Agents can see new chat requests from website visitors on the left side corner of their dashboard.
|
186 |
+
|
187 |
+
= Chat Panel =
|
188 |
+
|
189 |
+
The central position is for running conversation. Agent will type from the messaging field and also share file by clicking attachment file. There are some other fields in the chat panel.
|
190 |
+
* History: Agent can see all the previous chat conversations of that particular visitors.
|
191 |
+
* Chat Transfer: Agent can easily transfer a chat to other agent. This transfer chat option is available in the chat window itself. Agent can click on it and select to whom he wants to transfer the chat. The new chat agent can take over the current live chat conversation without breaking the chat session
|
192 |
+
* Visitor Info: Agent can see real time visitor information. It enables you to track the website visitor's country, city, appropriate location, IP address, ISP (Internet Service Provider), total time spent in your website, and referral website
|
193 |
+
* Map: During the chat session chat operator can see the visitor real time location map.
|
194 |
+
|
195 |
+
= Online Visitors =
|
196 |
+
|
197 |
+
In the online visitor list agent can see all the web visitors who are currently viewing your websites. You can see their current viewing page, city name and visiting time. Besides you can also send a proactive chat request to the visitor to know whether they need any sort of help or not.
|
198 |
+
|
199 |
+
= Queued Visitor =
|
200 |
+
|
201 |
+
Queued Visitor list will show who is the visitors is waiting for Live Chat. It gives information to your website visitors regarding their waiting time in chat queue and sets accurate response time expectations.
|
202 |
+
|
203 |
+
= Monitoring Panel =
|
204 |
+
|
205 |
+
Admin can monitor which agents are chatting and the detailed chat conversations between your website visitors and agents in real-time. Admin can also whisper the agent if they give any wrong information. Here you can monitor the chat conversation between agents and website visitors and among your agents.
|
206 |
+
|
207 |
+
<a href="https://www.revechat.com/signup/?utm_source=wordpress.org&utm_medium=integration&utm_campaign=WordpressIntegration" target="_blank">Signup for our Live Chat here</a>
|
208 |
+
|
209 |
+
== Installation ==
|
210 |
+
|
211 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
212 |
+
|
213 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
214 |
+
* or Install the plugin from the WordPress directory and activate it.
|
215 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
216 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
217 |
+
* Start chatting with your visitors! :)
|
218 |
+
|
219 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
tags/6.1/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
tags/6.1/screenshot-1.jpg
ADDED
Binary file
|
tags/6.1/screenshot-2.jpg
ADDED
Binary file
|
tags/6.1/screenshot-3.jpg
ADDED
Binary file
|
tags/6.1/screenshot-4.jpg
ADDED
Binary file
|
tags/6.1/screenshot-5.jpg
ADDED
Binary file
|
tags/6.1/screenshot-6.jpg
ADDED
Binary file
|
tags/6.1/screenshot-7.jpg
ADDED
Binary file
|
tags/6.1/screenshot-8.jpg
ADDED
Binary file
|
tags/6.1/screenshot-9.jpg
ADDED
Binary file
|
trunk/css/admin-styles.css
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#revechat ul#revechat_choose_form{}
|
2 |
+
#revechat ul#revechat_choose_form li{
|
3 |
+
list-style: none;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#revechat ul#revechat_choose_form li label{
|
7 |
+
display: inline-block;
|
8 |
+
}
|
9 |
+
#revechat .revechat_email_error{
|
10 |
+
color: red;
|
11 |
+
}
|
12 |
+
#revechat .ajax_message {
|
13 |
+
display: none;
|
14 |
+
background: url(ajax_loader.gif) no-repeat 24px 51%;
|
15 |
+
padding: 0;
|
16 |
+
margin-top: 1em;
|
17 |
+
}
|
18 |
+
#revechat .ajax_message.wait,
|
19 |
+
#revechat .ajax_message.message
|
20 |
+
{
|
21 |
+
display: block;
|
22 |
+
font-size: 1.2em;
|
23 |
+
padding: 20px;
|
24 |
+
box-shadow: 2px 2px 2px rgba(0,0,0,.2);
|
25 |
+
}
|
26 |
+
#revechat .ajax_message.wait {
|
27 |
+
text-indent: 28px;
|
28 |
+
background-color: #fff;
|
29 |
+
}
|
30 |
+
#revechat .ajax_message.message {
|
31 |
+
background-image: none;
|
32 |
+
text-indent: 0px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#revechat .ajax_message.message.alert{
|
36 |
+
background-color: #f2dede;
|
37 |
+
border-color: #ebccd1;
|
38 |
+
color: #a94442;
|
39 |
+
padding: 20px;
|
40 |
+
}
|
41 |
+
#revechat .ajax_message.message.success{
|
42 |
+
background-color: #dff0d8;
|
43 |
+
border: 1px solid #dff0d8;
|
44 |
+
color: #3c763d;
|
45 |
+
padding: 20px;
|
46 |
+
}
|
47 |
+
#revechat .revechat_success_message{
|
48 |
+
background: #ffffff;
|
49 |
+
padding: 50px;
|
50 |
+
height: auto;
|
51 |
+
font-size: 1.5em;
|
52 |
+
border-bottom: 5px solid #F16915;
|
53 |
+
-webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
54 |
+
-moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
55 |
+
box-shadow: 0px 0px 6px rgba(0,0,0,.3);
|
56 |
+
}
|
57 |
+
#revechat .revechat_success_message h3{
|
58 |
+
font-weight: bold;
|
59 |
+
border-bottom: 1px solid #B1B4B9;
|
60 |
+
padding-bottom: 20px;
|
61 |
+
line-height: 2em;
|
62 |
+
}
|
63 |
+
#revechat .messages.revechat_success{
|
64 |
+
background-color: #dff0d8;
|
65 |
+
border: 1px solid #bee99a;
|
66 |
+
color: #3c763d;
|
67 |
+
padding: 20px;
|
68 |
+
margin-bottom: 30px;
|
69 |
+
font-weight: 600;
|
70 |
+
}
|
71 |
+
#revechat .form-submit{
|
72 |
+
background: #FF5800 none repeat scroll 0 0;
|
73 |
+
border-color: #bd4302 #ab3c02 #ab3c02;
|
74 |
+
-webkit-box-shadow: 0 1px 0 #ab3c02;
|
75 |
+
box-shadow: 0 1px 0 #ab3c02;
|
76 |
+
color: #fff;
|
77 |
+
text-decoration: none;
|
78 |
+
text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
|
79 |
+
}
|
80 |
+
#revechat .box {
|
81 |
+
background: #ffffff;
|
82 |
+
border: 1px solid #e5e5e5;
|
83 |
+
padding: 20px;
|
84 |
+
margin-bottom: 50px;
|
85 |
+
}
|
86 |
+
#revechat #revechat-admin-settings-form {
|
87 |
+
padding: 18px;
|
88 |
+
}
|
89 |
+
#revechat fieldset {
|
90 |
+
border: 1px solid #c0c0c0;
|
91 |
+
margin-top: 20px;
|
92 |
+
}
|
93 |
+
#revechat #revechat_already_have > h3 {
|
94 |
+
margin-top: 19px;
|
95 |
+
}
|
96 |
+
#revechat ul#revechat_choose_form li {
|
97 |
+
display: block;
|
98 |
+
list-style: outside none none;
|
99 |
+
padding-left: 20px;
|
100 |
+
}
|
101 |
+
|
102 |
+
#revechat .form-item > label {
|
103 |
+
display: table;
|
104 |
+
margin-bottom: 11px;
|
105 |
+
margin-top: 20px;
|
106 |
+
}
|
107 |
+
#revechat input.form-submit{
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
trunk/css/ajax_loader.gif
ADDED
Binary file
|
trunk/images/favicon.png
ADDED
Binary file
|
trunk/images/logo.png
ADDED
Binary file
|
trunk/includes/choose-form.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="edit-choose-form" class="box">
|
2 |
+
<h3>Do you already have a REVE Chat account?</h3>
|
3 |
+
<ul id="revechat_choose_form">
|
4 |
+
<li>
|
5 |
+
<input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
|
6 |
+
<label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
|
7 |
+
</li>
|
8 |
+
<li>
|
9 |
+
<input type="radio" id="new_revechat_account" name="revechat_choose_form">
|
10 |
+
<label for="new_revechat_account">No, I want to create one</label>
|
11 |
+
</li>
|
12 |
+
</ul>
|
13 |
+
</div><!-- Edit Choose Form -->
|
trunk/includes/login-form.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_already_have" class="box">
|
2 |
+
<h3>Account Details</h3>
|
3 |
+
<table class="form-table">
|
4 |
+
<tbody>
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-revechat-account-email">
|
8 |
+
<?php
|
9 |
+
_e("REVE Chat login email");
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email" placeholder="Enter your email address">
|
15 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
|
16 |
+
</td>
|
17 |
+
</tr>
|
18 |
+
</tbody>
|
19 |
+
</table>
|
20 |
+
<p class="submit">
|
21 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
|
22 |
+
</p>
|
23 |
+
</div><!-- revechat_already_have -->
|
trunk/includes/remove-form.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="box">
|
2 |
+
<h3>REVE Chat has been installed.</h3>
|
3 |
+
<p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
|
4 |
+
<p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
|
5 |
+
|
6 |
+
<div id="edit-actions" class="form-actions form-wrapper">
|
7 |
+
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
|
8 |
+
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
|
9 |
+
</div>
|
10 |
+
</div>
|
trunk/includes/signup-form.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="revechat_new_account" class="box">
|
2 |
+
|
3 |
+
<h3>Create a new REVE Chat account</h3>
|
4 |
+
<table class="form-table">
|
5 |
+
<tr>
|
6 |
+
<th>
|
7 |
+
<label for="edit-firstname">
|
8 |
+
<?php
|
9 |
+
_e("First Name")
|
10 |
+
?>
|
11 |
+
</label>
|
12 |
+
</th>
|
13 |
+
<td>
|
14 |
+
<input type="text" class="regular-text" name="firstName" id="edit-firstname" placeholder="First Name">
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
|
19 |
+
<tr>
|
20 |
+
<th>
|
21 |
+
<label for="edit-lastname">
|
22 |
+
<?php
|
23 |
+
_e("Last Name")
|
24 |
+
?>
|
25 |
+
</label>
|
26 |
+
</th>
|
27 |
+
<td>
|
28 |
+
<input type="text" class="regular-text" name="firstName" id="edit-lastname" placeholder="Last Name">
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr>
|
33 |
+
<th>
|
34 |
+
<label for="edit-email">
|
35 |
+
<?php
|
36 |
+
_e('Email Address')
|
37 |
+
?>
|
38 |
+
</label>
|
39 |
+
|
40 |
+
</th>
|
41 |
+
<td>
|
42 |
+
<input type="text" class="regular-text" name="email" id="edit-email" placeholder="Email address">
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
|
46 |
+
<tr>
|
47 |
+
<th>
|
48 |
+
<label for="edit-accountpassword">
|
49 |
+
<?php
|
50 |
+
_e('Password')
|
51 |
+
?>
|
52 |
+
</label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<input type="password" class="regular-text" name="edit-accountpassword" id="edit-accountpassword" placeholder="Password">
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
|
59 |
+
<tr>
|
60 |
+
<th>
|
61 |
+
<label for="edit-retypepassword">
|
62 |
+
<?php
|
63 |
+
_e('Confirm your password')
|
64 |
+
?>
|
65 |
+
</label>
|
66 |
+
</th>
|
67 |
+
<td>
|
68 |
+
<input type="password" class="regular-text" name="edit-retypepassword" id="edit-retypepassword" placeholder="Confirm your password">
|
69 |
+
</td>
|
70 |
+
</tr>
|
71 |
+
</table>
|
72 |
+
<p class="submit">
|
73 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Create Account') ?>" />
|
74 |
+
</p>
|
75 |
+
</div>
|
trunk/index.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!DOCTYPE html><title></title>
|
trunk/js/revechat-admin.js
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
(function($){
|
3 |
+
var baseUrl = 'https://dashboard.revechat.com/';
|
4 |
+
var ReveChat ={
|
5 |
+
init: function () {
|
6 |
+
this.toggleForms();
|
7 |
+
this.bindFormSubmit();
|
8 |
+
},
|
9 |
+
|
10 |
+
toggleForms: function ()
|
11 |
+
{
|
12 |
+
var toggleForms = function ()
|
13 |
+
{
|
14 |
+
if ($('#new_revechat_account').is(':checked'))
|
15 |
+
{
|
16 |
+
$('#revechat_already_have').hide();
|
17 |
+
$('#revechat_new_account').show();
|
18 |
+
}
|
19 |
+
else if ($('#has_revechat_account').is(':checked'))
|
20 |
+
{
|
21 |
+
$('#revechat_new_account').hide();
|
22 |
+
$('#revechat_already_have').show();
|
23 |
+
$('#edit-revechat-account-email').focus();
|
24 |
+
}
|
25 |
+
};
|
26 |
+
toggleForms();
|
27 |
+
|
28 |
+
$('#revechat_choose_form input').click(toggleForms);
|
29 |
+
},
|
30 |
+
|
31 |
+
bindFormSubmit: function () {
|
32 |
+
$('#revechat-admin-settings-form').submit(function(e)
|
33 |
+
{
|
34 |
+
|
35 |
+
if($('#edit-submit').val() == 'Disconnect'){
|
36 |
+
$('#revechat_aid').val(0);
|
37 |
+
$('#revechat-admin-settings-form').submit();
|
38 |
+
}
|
39 |
+
if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
|
40 |
+
{
|
41 |
+
return ReveChat.alreadyHaveAccountForm();
|
42 |
+
}
|
43 |
+
else
|
44 |
+
{
|
45 |
+
return ReveChat.newLicenseForm();
|
46 |
+
}
|
47 |
+
|
48 |
+
});
|
49 |
+
},
|
50 |
+
|
51 |
+
alreadyHaveAccountForm: function()
|
52 |
+
{
|
53 |
+
var email = $.trim($('#edit-revechat-account-email').val());
|
54 |
+
|
55 |
+
if(ReveChat.isValidEmailAddress(email))
|
56 |
+
{
|
57 |
+
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
|
58 |
+
{
|
59 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait…');
|
60 |
+
|
61 |
+
ReveChat.signIn(email);
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else
|
66 |
+
{
|
67 |
+
alert('Please provide a valid email address');
|
68 |
+
$('#edit-revechat-account-email').focus();
|
69 |
+
return false;
|
70 |
+
}
|
71 |
+
return true;
|
72 |
+
},
|
73 |
+
signIn: function (email) {
|
74 |
+
var signInUrl = baseUrl +'/license/adminId/'+email+'/?callback=?';
|
75 |
+
$.getJSON(signInUrl,
|
76 |
+
function(response)
|
77 |
+
{
|
78 |
+
if (response.error)
|
79 |
+
{
|
80 |
+
alert('Incorrect REVE Chat login');
|
81 |
+
$('.ajax_message').removeClass('wait');
|
82 |
+
$('#edit-revechat-account-email').focus();
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
$('#revechat_aid').val(response.data.account_id);
|
88 |
+
$('#revechat-admin-settings-form').submit();
|
89 |
+
}
|
90 |
+
});
|
91 |
+
},
|
92 |
+
newLicenseForm: function()
|
93 |
+
{
|
94 |
+
if (parseInt(($('#revechat_aid').val()) > 0))
|
95 |
+
{
|
96 |
+
return true;
|
97 |
+
}
|
98 |
+
|
99 |
+
if(this.validateNewLicenseForm())
|
100 |
+
{
|
101 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
|
102 |
+
ReveChat.createLicense();
|
103 |
+
}
|
104 |
+
return false;
|
105 |
+
},
|
106 |
+
createLicense: function()
|
107 |
+
{
|
108 |
+
|
109 |
+
$('.ajax_message').removeClass('message').addClass('wait').html('Creating new account…');
|
110 |
+
|
111 |
+
var firstName = $.trim($('#edit-firstname').val());
|
112 |
+
var lastName = $.trim($('#edit-lastname').val());
|
113 |
+
var email = $.trim($('#edit-email').val());
|
114 |
+
var password = $.trim($('#edit-accountpassword').val());
|
115 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
116 |
+
|
117 |
+
var signUpUrl = baseUrl + 'revechat/cms/api/signup.do';
|
118 |
+
|
119 |
+
$.ajax({
|
120 |
+
data: { 'firstname':firstName, 'lastname':lastName, 'mailAddr':email, 'password':password, 'utm_source':'cms', 'utm_content':'wordpress', 'referrer':'https://wordpress.org/plugins/' },
|
121 |
+
type:'POST',
|
122 |
+
url:signUpUrl,
|
123 |
+
dataType: 'json',
|
124 |
+
cache:false,
|
125 |
+
success: function(response) {
|
126 |
+
if(response.status == 'error')
|
127 |
+
{
|
128 |
+
$('.ajax_message').removeClass('wait');
|
129 |
+
alert(response.message);
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
else if(response.status == 'success')
|
133 |
+
{
|
134 |
+
$('#edit-revechat-account-email').val(email);
|
135 |
+
ReveChat.signIn(email);
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
});
|
140 |
+
},
|
141 |
+
validateNewLicenseForm: function()
|
142 |
+
{
|
143 |
+
|
144 |
+
var firstName = $.trim($('#edit-firstname').val());
|
145 |
+
var lastName = $.trim($('#edit-lastname').val());
|
146 |
+
var email = $.trim($('#edit-email').val());
|
147 |
+
var password = $.trim($('#edit-accountpassword').val());
|
148 |
+
var rePassword = $.trim($('#edit-retypepassword').val());
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
if (!firstName.length)
|
153 |
+
{
|
154 |
+
alert('Please provide your first name.');
|
155 |
+
$('.ajax_message').removeClass('wait');
|
156 |
+
$('#edit-firstname').focus();
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
if (!lastName.length)
|
161 |
+
{
|
162 |
+
alert('Please provide your last name.');
|
163 |
+
$('.ajax_message').removeClass('wait');
|
164 |
+
$('#edit-lastname').focus();
|
165 |
+
return false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if (!ReveChat.isValidEmailAddress(email))
|
169 |
+
{
|
170 |
+
alert('Please provide your valid email address.');
|
171 |
+
$('.ajax_message').removeClass('wait');
|
172 |
+
$('#edit-email').focus();
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
|
176 |
+
if(password.length < 6){
|
177 |
+
alert('Please provide your password. The password must be at least 6 characters long.')
|
178 |
+
$('.ajax_message').removeClass('wait');
|
179 |
+
$('#edit-accountpassword').focus();
|
180 |
+
return false;
|
181 |
+
}
|
182 |
+
|
183 |
+
if(!rePassword.length || password.length < 6){
|
184 |
+
alert('Please retype your password.');
|
185 |
+
$('.ajax_message').removeClass('wait');
|
186 |
+
$('#edit-retypepassword').focus();
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
if(password != rePassword){
|
191 |
+
alert('Password does not match the confirm password.');
|
192 |
+
$('.ajax_message').removeClass('wait');
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
return true;
|
198 |
+
},
|
199 |
+
isValidEmailAddress: function (emailAddress) {
|
200 |
+
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
|
201 |
+
return pattern.test(emailAddress);
|
202 |
+
},
|
203 |
+
}
|
204 |
+
$(document).ready(function()
|
205 |
+
{
|
206 |
+
ReveChat.init();
|
207 |
+
});
|
208 |
+
})(jQuery);
|
trunk/readme.txt
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== REVE Chat - WP Live Chat Support plugin ===
|
2 |
+
Contributors: revechat
|
3 |
+
Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
|
4 |
+
Requires at least: 2.7
|
5 |
+
Tested up to: 4.9.4
|
6 |
+
Stable tag: 6.1.8
|
7 |
+
|
8 |
+
Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
|
9 |
+
|
10 |
+
|
11 |
+
==Description ==
|
12 |
+
REVE Chat is a multi-channel cloud based live chat software plugin that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
|
13 |
+
|
14 |
+
REVE Chat WP live chat plugin for WordPress also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
|
15 |
+
|
16 |
+
|
17 |
+
https://youtu.be/t1dykZ9Tg8U
|
18 |
+
|
19 |
+
|
20 |
+
**Live Chat Key Features-**
|
21 |
+
**Voice/ Video Chat:** With live chat for WordPress, Business can Talk to your customers using voice/ video chat plubin right inside your web or mobile apps with click to call solution.
|
22 |
+
|
23 |
+
**Co-browsing:** Using live chat and WordPress together, Provide real time assistance and remote support to your website visitors and customers screen in real time.
|
24 |
+
|
25 |
+
**Facebook Messenger:** Using live chat and facebook together,Chat with your Facebook customers using REVE Chat from single dashboard.
|
26 |
+
|
27 |
+
**Viber Messaging:** Using live chat and viber together,Chat with your customers on Viber messaging using your public account from single dashboard.
|
28 |
+
|
29 |
+
**Screen sharing:** With the REVE Chat chat plugin for WordPress, Support your website visitors in real time and help them to navigate the website with screen sharing.
|
30 |
+
|
31 |
+
**Real-time Visitor Analytics:** With the REVE Chat chat plugin for WordPress, Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
|
32 |
+
|
33 |
+
**Department Management:** With the REVE Chat chat plugin for WordPress, Improve customer response time by routing your customer queries to the right department.
|
34 |
+
|
35 |
+
**Queuing:** With the REVE Chat chat plugin for WordPress, Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
|
36 |
+
|
37 |
+
**Auto Triggers:** With the REVE Chat chat plugin for WordPress, Send automatic invitations to your website visitors based on certain time, ULR or location.
|
38 |
+
|
39 |
+
**Chat Monitoring:** With the REVE Chat chat plugin for WordPress, Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
|
40 |
+
|
41 |
+
**Mobile live chat applications:** - mobile apps for iOS and Android will help you chat with customers wherever you are.
|
42 |
+
|
43 |
+
|
44 |
+
**Live Chat Benefits-**
|
45 |
+
|
46 |
+
|
47 |
+
Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
|
48 |
+
|
49 |
+
Get complete overview and insights about your customer interactions across multiple channels
|
50 |
+
|
51 |
+
Offer your visitors instant assistance and increase your sales conversions
|
52 |
+
|
53 |
+
Reduce cost of service by managing multiple customers simultaneously.
|
54 |
+
|
55 |
+
Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
|
56 |
+
|
57 |
+
Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
|
58 |
+
|
59 |
+
|
60 |
+
== What is live chat for WordPress? ==
|
61 |
+
|
62 |
+
If you have a website, and you are serious about your business then using live chat will be best. Live chat plugin for WordPress adds a live chat widget to the bottom of your website that allows visitors to chat to you in real time.
|
63 |
+
|
64 |
+
== Usage ==
|
65 |
+
|
66 |
+
With REVE chat plugin for WordPress, you can add live chat to every page of your website. To answer chats, chat agents have to be logged into our dashboard – from web dashboard or mobile apps. There are also applications for mobile devices – iPhone and Android.
|
67 |
+
|
68 |
+
|
69 |
+
**What makes Reve Chat the best choice for live chat?**
|
70 |
+
|
71 |
+
* A simple and highly customizable Live chat solution
|
72 |
+
* User friendly interface and Dashboard
|
73 |
+
* Intuitive Chat Window
|
74 |
+
* Innovative and unique features
|
75 |
+
* 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
|
76 |
+
|
77 |
+
|
78 |
+
**Supported Language**
|
79 |
+
|
80 |
+
* Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
|
81 |
+
|
82 |
+
|
83 |
+
**Some Geeky Facts**
|
84 |
+
|
85 |
+
* Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
|
86 |
+
* Average uptime is 99.8%.
|
87 |
+
* Mobile Optimized Dashboard
|
88 |
+
* Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
|
89 |
+
|
90 |
+
|
91 |
+
= Support =
|
92 |
+
|
93 |
+
|
94 |
+
REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
|
95 |
+
|
96 |
+
|
97 |
+
Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
== Changelog ==
|
102 |
+
|
103 |
+
|
104 |
+
= 1.2.0 =
|
105 |
+
|
106 |
+
* Feature: Add the Reve chat widget to your site!
|
107 |
+
* Feature: Customize look and feel of the widget, including themes and color!
|
108 |
+
|
109 |
+
= 2.0 =
|
110 |
+
* New Admin Menu page for REVE Chat
|
111 |
+
* New for integration
|
112 |
+
* Added link of settings page to display on the plugins page (beside the activate/deactivate links).
|
113 |
+
|
114 |
+
= 2.0.1 =
|
115 |
+
* Updated chat script
|
116 |
+
|
117 |
+
= 2.0.3 =
|
118 |
+
* updated the UI
|
119 |
+
|
120 |
+
= 3.0 =
|
121 |
+
* introduced new signup process
|
122 |
+
* fixed signin bug
|
123 |
+
|
124 |
+
== Screenshots ==
|
125 |
+
|
126 |
+
1. Chat window on your website - active chat
|
127 |
+
2. Account Configuration - Link Up
|
128 |
+
3. Account Configuration - Linked Up with Launch Dashboard
|
129 |
+
4. Dashboard View - Open new browser tab
|
130 |
+
5. Widget Customization from Dashboard
|
131 |
+
|
132 |
+
|
133 |
+
== Installation ==
|
134 |
+
|
135 |
+
Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
|
136 |
+
|
137 |
+
* Clone this repository into your plugins directory or download the zip file and unzip on your plugins directory
|
138 |
+
* or Install the plugin from the WordPress directory and activate it.
|
139 |
+
* Go to `Settings`, then to the 'revechat' sub menu, and login to your reve chat account to select a widget.
|
140 |
+
* Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
|
141 |
+
* Start chatting with your visitors! :)
|
142 |
+
|
143 |
+
Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
|
144 |
+
|
145 |
+
== Frequently Asked Questions ==
|
146 |
+
|
147 |
+
|
148 |
+
= Do I have to install any software on my server to get working the chat plugin? =
|
149 |
+
REVE live chat plugin need to be installed from your WordPress panel. It is a cloud based live chat software hence it would only activate the script when you install the plugin.
|
150 |
+
|
151 |
+
= Why should I use REVE Chat live chat support? =
|
152 |
+
REVE chat is a complete online sales and support tool to engage your website visitors. With advanced features such as Click to call, Facebook Chat Integration, Queuing, Chat Monitoring and others, REVE Chat provides full insights to communicate with your visitors to become your loyal customers.
|
153 |
+
|
154 |
+
= Which web browsers work best with this chat plugin? =
|
155 |
+
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
|
156 |
+
|
157 |
+
= How much is price of REVE Chat web chat plugin? =
|
158 |
+
REVE Chat plugin is free to install and it offers a complete 14 days free trial to understand its all features. REVE Chat offers 3 packages
|
159 |
+
1. Standard
|
160 |
+
2. Advanced
|
161 |
+
3. Enterprise
|
162 |
+
Please click here to find out more about pricing.
|
163 |
+
The live chat support plugin is completely free to install. However, if you want to use Standard and Advanced REVE Chat package then you have to purchase the package.
|
164 |
+
|
165 |
+
= How can I chat with more visitors at the same time? =
|
166 |
+
REVE Chat web chat plugin allows unlimited concurrent chats for the paid plans. Hence you can chat with as many visitors as you want at the same time. REVE Chat also allows you to proactively chat with your website visitors before they leave your website.
|
167 |
+
|
168 |
+
= How can I take further information regarding REVE Chat live chat support plugin? =
|
169 |
+
You can find out more at our site at http://www.revechat.com or at support@revechat.com and we will help you with installation.
|
170 |
+
|
171 |
+
= Is there any demo or trial period to do some testing? =
|
172 |
+
Yes, definitely you can use all the features of REVE Chat live chat plugin for 14days in the trial period.
|
173 |
+
|
174 |
+
= Can I customize the REVE Chat window? =
|
175 |
+
Yes, REVE Chat window is customizable. Some of the things which you can change in the chat window include:
|
176 |
+
* Changing the color scheme
|
177 |
+
* Changing the font size
|
178 |
+
* Chat Widget text
|
179 |
+
* Offline Widget Text
|
180 |
+
* Pre chat & Post chat form
|
181 |
+
|
182 |
+
= Can I add REVE Chat plugin on more than one website at the same time? =
|
183 |
+
Yes, this live chat plugin can be added on more than one website at the same time for Advanced & Enterprise package.
|
184 |
+
|
185 |
+
|
186 |
+
= Contributors & Developers =
|
187 |
+
|
188 |
+
“REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
|
189 |
+
|
190 |
+
|
trunk/revechat.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: REVE Chat - WP Live Chat Support plugin
|
4 |
+
Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
|
5 |
+
Version: 5.0
|
6 |
+
Author: REVE Chat
|
7 |
+
Author URI: www.revechat.com
|
8 |
+
License: GPL2
|
9 |
+
*/
|
10 |
+
if(!class_exists('WP_Plugin_Revechat'))
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Core class which interacts with
|
14 |
+
* WordPress hooks and filters
|
15 |
+
*/
|
16 |
+
class WP_Plugin_Revechat
|
17 |
+
{
|
18 |
+
/**
|
19 |
+
* Constructor method of the plugin object.
|
20 |
+
* This method initialize the stdClass,
|
21 |
+
* defines plugin name, plugin display name etc.
|
22 |
+
*
|
23 |
+
* This method also calls necessary wodpress hooks and filters.
|
24 |
+
* for more about hooks please visit @link [https://developer.wordpress.org/reference/functions/add_action/]
|
25 |
+
* for more information on filters @link [https://developer.wordpress.org/reference/functions/add_filter/]
|
26 |
+
*/
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
// Plugin Details
|
30 |
+
$this->plugin = new stdClass;
|
31 |
+
$this->plugin->name = 'revechat'; // Plugin Folder
|
32 |
+
$this->plugin->displayName = 'REVE Chat'; // Plugin Name
|
33 |
+
|
34 |
+
// Hooks
|
35 |
+
add_action('admin_init', array(&$this, 'registerSettings'));
|
36 |
+
|
37 |
+
add_action('wp_head', array(&$this, 'frontendHeader'));
|
38 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
|
39 |
+
|
40 |
+
// Add Menu Page
|
41 |
+
add_action('admin_menu',array($this,'admin_menu'));
|
42 |
+
|
43 |
+
//enqueue scripts
|
44 |
+
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
|
45 |
+
|
46 |
+
} // END public function __construct
|
47 |
+
|
48 |
+
/**
|
49 |
+
* REVE Chat widget script.
|
50 |
+
*
|
51 |
+
* This script will be rendered in frontend of the site.
|
52 |
+
* This funtion is called when wp_head action triggered.
|
53 |
+
* The wp_head action hook is triggered within the <head></head> section of the user's template
|
54 |
+
* by the wp_head() function. Although this is theme-dependent,
|
55 |
+
* it is one of the most essential theme hooks, so it is widely supported.
|
56 |
+
*
|
57 |
+
*/
|
58 |
+
public static function frontendHeader()
|
59 |
+
{
|
60 |
+
$accountId = get_option('revechat_accountid' , '');
|
61 |
+
if( (isset($accountId) && !empty($accountId)) ) {
|
62 |
+
|
63 |
+
$script = "<script type='text/javascript'>";
|
64 |
+
$script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
|
65 |
+
r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
|
66 |
+
rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
|
67 |
+
var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
|
68 |
+
})(document, window);';
|
69 |
+
|
70 |
+
$script .='</script>';
|
71 |
+
|
72 |
+
echo $script ;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Register a setting and its data.
|
80 |
+
* refer to @link [https://developer.wordpress.org/reference/functions/register_setting/]
|
81 |
+
* for more information about register setting
|
82 |
+
*/
|
83 |
+
public function registerSettings(){
|
84 |
+
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
|
85 |
+
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Render the settings form
|
90 |
+
*/
|
91 |
+
public function reveChatOptions(){
|
92 |
+
if ( !current_user_can( 'manage_options' ) ) {
|
93 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
94 |
+
}
|
95 |
+
// variables for the field and option names
|
96 |
+
$accountId = 'revechat_accountid';
|
97 |
+
|
98 |
+
// Read in existing option value from database
|
99 |
+
$val_accountId = get_option( $accountId );
|
100 |
+
|
101 |
+
if( isset($_POST[ $accountId ])){
|
102 |
+
|
103 |
+
// Read in existing option value from POST
|
104 |
+
$val_accountId = $_POST[ $accountId ];
|
105 |
+
update_option( $accountId , $val_accountId );
|
106 |
+
?>
|
107 |
+
<div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="wrap" id="revechat">
|
112 |
+
|
113 |
+
<div>
|
114 |
+
<div class="reve-chat-logo">
|
115 |
+
<img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<form name="form1" id="revechat-admin-settings-form" method="post" action="">
|
119 |
+
|
120 |
+
<?php
|
121 |
+
if(isset($val_accountId) && $val_accountId != 0){
|
122 |
+
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
|
123 |
+
echo '</div>';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
|
128 |
+
?>
|
129 |
+
<div class="form-item form-type-item" id="edit-ajax-message">
|
130 |
+
<p class="ajax_message"></p>
|
131 |
+
</div>
|
132 |
+
<?php
|
133 |
+
require (plugin_dir_path( __FILE__ )."includes/login-form.php");
|
134 |
+
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
|
135 |
+
?>
|
136 |
+
|
137 |
+
</form>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Add page in admin menu
|
146 |
+
* This method takes a capability which will be used to determine whether or not a page is included in the menu.
|
147 |
+
* this method which is hooked in to handle the output of the page also check that the user has the required
|
148 |
+
* capability as well.
|
149 |
+
*/
|
150 |
+
public function admin_menu()
|
151 |
+
{
|
152 |
+
add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Triggers when the user deactivate/uninstall the plugin.
|
157 |
+
* this method simply delete all the data of this
|
158 |
+
* plugin from database.
|
159 |
+
*/
|
160 |
+
|
161 |
+
public static function deactivate()
|
162 |
+
{
|
163 |
+
delete_option('revechat_accountid');
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Load necessary JavaScript and CSS library
|
169 |
+
* in admin panel.
|
170 |
+
*/
|
171 |
+
public function admin_scripts(){
|
172 |
+
|
173 |
+
wp_enqueue_script( 'jquery');
|
174 |
+
|
175 |
+
wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
|
176 |
+
|
177 |
+
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
|
182 |
+
*
|
183 |
+
* @param $links
|
184 |
+
* @return array
|
185 |
+
*/
|
186 |
+
function add_action_links ( $links ) {
|
187 |
+
$menu_link = array(
|
188 |
+
'<a href="' . admin_url( 'admin.php?page=revechatsettings' ) . '">Settings</a>',
|
189 |
+
);
|
190 |
+
return array_merge( $links, $menu_link );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
} // END if(!class_exists('WP_Plugin_Revechat'))
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Initialize the core class
|
197 |
+
*/
|
198 |
+
$revechat = new WP_Plugin_Revechat();
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Register the deactivation hook.
|
202 |
+
*/
|
203 |
+
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
|
trunk/screenshot-1.jpg
ADDED
Binary file
|
trunk/screenshot-2.jpg
ADDED
Binary file
|
trunk/screenshot-3.jpg
ADDED
Binary file
|
trunk/screenshot-4.jpg
ADDED
Binary file
|
trunk/screenshot-5.jpg
ADDED
Binary file
|
trunk/screenshot-6.jpg
ADDED
Binary file
|
trunk/screenshot-7.jpg
ADDED
Binary file
|
trunk/screenshot-8.jpg
ADDED
Binary file
|
trunk/screenshot-9.jpg
ADDED
Binary file
|