WP Live Chat Support - Version 4.0.0

Version Description

  • Overhauled the live chat Ajax calls to be less resource intensive
  • Fixed many localization strings
  • Added Feedback Page
  • Added Welcome Page
  • Fixed Visitor pending forever - Now Shown a message that admin is away
  • Fixed many small bugs
  • Added Multiple Live Chat Agents support (Add On)
Download this release

Release Info

Developer WP-LiveChat
Plugin Icon 128x128 WP Live Chat Support
Version 4.0.0
Comparing to
See all releases

Code changes from version 3.08 to 4.0.0

ajax.php CHANGED
@@ -1,7 +1,12 @@
1
  <?php
2
 
 
 
 
 
 
3
  ini_set('html_errors', 0);
4
- define('SHORTINIT', true);
5
 
6
 
7
  //$absolute_path = __FILE__;
@@ -12,15 +17,28 @@ define('SHORTINIT', true);
12
 
13
  // changed the path to wp-load to get from post
14
 
15
- require_once( $_POST['wplc_wp_load_url'] );
 
 
 
 
 
 
 
 
 
16
 
17
 
18
- require( ABSPATH . WPINC . '/l10n.php' );
19
 
20
- require( ABSPATH . WPINC . '/link-template.php' );
21
 
22
 
23
 
 
 
 
 
24
 
25
 
26
  global $wpdb;
@@ -39,6 +57,7 @@ require_once("functions.php");
39
 
40
 
41
 
 
42
  // stuff goes here
43
 
44
 
@@ -47,146 +66,214 @@ $check = 1;
47
 
48
  if ($check == 1) {
49
 
50
-
51
-
52
-
53
-
54
- // standard callbacks
55
-
56
- if ($_POST['action'] == "wplc_start_chat") {
57
-
58
- if ($_POST['cid']) {
59
-
60
- if ($_POST['name'] && $_POST['email']) {
61
-
62
- echo wplc_user_initiate_chat($_POST['name'],$_POST['email'],$_POST['cid']); // echo the chat session id
63
-
64
- } else {
65
-
66
- echo "error2";
67
-
68
-
69
  }
 
 
70
 
71
- } else {
72
-
73
- if ($_POST['name'] && $_POST['email']) {
74
-
75
- echo wplc_user_initiate_chat($_POST['name'],$_POST['email']); // echo the chat session id
76
-
77
  } else {
78
-
79
- echo "error2";
80
-
81
  }
82
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
-
85
  }
86
-
87
- if ($_POST['action'] == "wplc_relay_stage") {
88
-
89
-
90
-
91
- if ($_POST['stage'] == "1") { // chat window is displayed to user
92
-
93
- echo wplc_log_user_on_page("user".time(),"no email set");
94
-
95
- }
96
-
97
- else if ($_POST['stage'] == "2") { // user still hasnt opened chat window but is now on another page
98
-
99
- echo wplc_update_user_on_page($_POST['cid']);
100
-
101
-
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
103
-
104
- }
105
-
106
- if ($_POST['action'] == "wplc_update_admin_chat") {
107
-
108
- wplc_list_chats();
109
-
110
- }
111
-
112
- if ($_POST['action'] == "wplc_update_admin_status") {
113
-
114
- wplc_update_chat_statuses();
115
-
116
  }
117
-
118
  if ($_POST['action'] == "wplc_admin_accept_chat") {
119
-
120
  wplc_admin_accept_chat($_POST['cid']);
121
-
122
- }
123
-
124
- if ($_POST['action'] == "wplc_update_admin_chat_boxes") {
125
-
126
- echo wplc_return_admin_chat_messages($_POST['cid']);
127
-
128
- wplc_mark_as_read_admin_chat_messages($_POST['cid']);
129
-
130
  }
131
-
132
- if ($_POST['action'] == "wplc_update_admin_return_chat_status") {
133
-
134
- echo wplc_return_chat_status($_POST['cid']);
135
-
136
  }
137
-
138
-
139
-
140
  if ($_POST['action'] == "wplc_admin_send_msg") {
141
-
142
  $chat_id = $_POST['cid'];
143
-
144
  $chat_msg = $_POST['msg'];
145
-
146
  $wplc_rec_msg = wplc_record_chat_msg("2",$chat_id,$chat_msg);
147
-
148
  if ($wplc_rec_msg) {
149
-
150
  echo 'sent';
151
-
152
  } else {
153
-
154
  echo "There was an error sending your chat message. Please contact support";
155
-
156
  }
157
-
158
  }
159
-
160
-
161
- if ($_POST['action'] == "wplc_admin_close_chat") {
162
- $chat_id = $_POST['cid'];
163
- wplc_change_chat_status($chat_id,1);
164
- echo 'done';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  }
 
166
 
167
-
168
-
169
-
170
- // user
171
-
172
-
173
- if ($_POST['action'] == "wplc_user_awaiting_chat") {
174
- $chat_id = $_POST['id'];
175
- echo wplc_return_chat_status($chat_id);
176
  }
 
177
  if ($_POST['action'] == "wplc_user_minimize_chat") {
178
  $chat_id = $_POST['cid'];
179
- wplc_change_chat_status($_POST['cid'],2);
180
- }
181
- if ($_POST['action'] == "wplc_user_close_chat") {
182
- $chat_id = $_POST['cid'];
183
- wplc_change_chat_status($_POST['cid'],1);
184
  }
185
  if ($_POST['action'] == "wplc_user_maximize_chat") {
186
  $chat_id = $_POST['cid'];
187
  wplc_change_chat_status($_POST['cid'],3);
188
  }
189
-
190
  if ($_POST['action'] == "wplc_user_send_msg") {
191
  $chat_id = $_POST['cid'];
192
  $chat_msg = $_POST['msg'];
@@ -197,22 +284,20 @@ if ($check == 1) {
197
  echo "There was an error sending your chat message. Please contact support";
198
  }
199
  }
200
-
201
- if ($_POST['action'] == "wplc_update_user_chat_boxes") {
202
- echo wplc_return_user_chat_messages($_POST['cid']);
203
- wplc_mark_as_read_user_chat_messages($_POST['cid']);
204
- }
205
- if ($_POST['action'] == "wplc_update_user_chat_status") {
206
- echo wplc_return_chat_status($_POST['cid']);
207
- }
208
-
209
- if ($_POST['action'] == "wplc_user_reactivate_chat") {
210
- wplc_change_chat_status($_POST['cid'],3);
211
- echo wplc_return_chat_messages($_POST['cid']);
212
-
 
213
  }
214
-
215
  }
216
- function untrailingslashit($string) {
217
- return rtrim($string, '/');
218
- }
1
  <?php
2
 
3
+ header('Access-Control-Allow-Origin: *');
4
+ header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
5
+ header('Access-Control-Max-Age: 604800');
6
+ header('Access-Control-Allow-Headers: x-requested-with');
7
+
8
  ini_set('html_errors', 0);
9
+ define('SHORTINIT', true);
10
 
11
 
12
  //$absolute_path = __FILE__;
17
 
18
  // changed the path to wp-load to get from post
19
 
20
+ require_once( '../../../wp-load.php' );
21
+
22
+ function untrailingslashit($string) {
23
+ return rtrim($string, '/');
24
+ }
25
+
26
+
27
+ define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
28
+
29
+
30
 
31
 
32
+ require_once( ABSPATH . WPINC . '/l10n.php' );
33
 
34
+ require_once( ABSPATH . WPINC . '/link-template.php' );
35
 
36
 
37
 
38
+ $plugin_dir = basename(dirname(__FILE__))."/languages/";
39
+ load_plugin_textdomain( 'wplivechat', false, $plugin_dir );
40
+
41
+
42
 
43
 
44
  global $wpdb;
57
 
58
 
59
 
60
+
61
  // stuff goes here
62
 
63
 
66
 
67
  if ($check == 1) {
68
 
69
+ if($_POST['action'] == 'wplc_admin_long_poll'){
70
+ set_time_limit(120);
71
+ //sleep(6);
72
+ $i = 1;
73
+ while($i <= 90){
74
+
75
+ // update chats if they have timed out every 10 seconds
76
+ if($i %10 == 0) {
77
+ wplc_update_chat_statuses();
 
 
 
 
 
 
 
 
 
 
78
  }
79
+
80
+
81
 
82
+
83
+
84
+ if($_POST['wplc_update_admin_chat_table'] == 'false'){
85
+ $old_chat_data = false;
 
 
86
  } else {
87
+ $old_chat_data = $_POST['wplc_update_admin_chat_table'];
 
 
88
  }
89
+
90
+ $pending = wplc_check_pending_chats();
91
+ $new_chat_data = wplc_list_chats();
92
+
93
+ if(stripslashes($new_chat_data) !== stripslashes($old_chat_data)){
94
+ $array['old_chat_data'] = $old_chat_data;
95
+ $array['wplc_update_admin_chat_table'] = $new_chat_data;
96
+ $array['pending'] = $pending;
97
+ $array['action'] = "wplc_update_admin_chat";
98
+
99
+ }
100
+
101
+ if(isset($array)){
102
+ echo json_encode($array);
103
+ break;
104
+ }
105
+ sleep(1);
106
+ $i++;
107
  }
 
108
  }
109
+ if($_POST['action'] == "wplc_admin_long_poll_chat"){
110
+ set_time_limit(120);
111
+ $i = 1;
112
+ $array = array();
113
+ while($i <= 90){
114
+ if(isset($_POST['action_2']) && $_POST['action_2'] == "wplc_long_poll_check_user_opened_chat"){
115
+ $chat_status = wplc_return_chat_status($_POST['cid']);
116
+ if($chat_status == 3){
117
+ $array['action'] = "wplc_user_open_chat";
118
+ }
119
+ } else {
120
+ $new_chat_status = wplc_return_chat_status($_POST['cid']);
121
+ if($new_chat_status != $_POST['chat_status']){
122
+ $array['chat_status'] = $new_chat_status;
123
+ $array['action'] = "wplc_update_chat_status";
124
+ }
125
+ $new_chat_message = wplc_return_admin_chat_messages($_POST['cid']);
126
+ if($new_chat_message){
127
+
128
+ $array['chat_message'] = $new_chat_message;
129
+ $array['action'] = "wplc_new_chat_message";
130
+ }
131
+ }
132
+ if($array){
133
+ echo json_encode($array);
134
+ break;
135
+ }
136
+ sleep(1);
137
+ $i++;
138
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
 
140
  if ($_POST['action'] == "wplc_admin_accept_chat") {
 
141
  wplc_admin_accept_chat($_POST['cid']);
 
 
 
 
 
 
 
 
 
142
  }
143
+ if ($_POST['action'] == "wplc_admin_close_chat") {
144
+ $chat_id = $_POST['cid'];
145
+ wplc_change_chat_status($chat_id,1);
146
+ echo 'done';
 
147
  }
 
 
 
148
  if ($_POST['action'] == "wplc_admin_send_msg") {
 
149
  $chat_id = $_POST['cid'];
 
150
  $chat_msg = $_POST['msg'];
 
151
  $wplc_rec_msg = wplc_record_chat_msg("2",$chat_id,$chat_msg);
 
152
  if ($wplc_rec_msg) {
 
153
  echo 'sent';
 
154
  } else {
 
155
  echo "There was an error sending your chat message. Please contact support";
 
156
  }
 
157
  }
158
+
159
+
160
+
161
+
162
+ //User Ajax
163
+
164
+ if($_POST['action'] == 'wplc_call_to_server_visitor'){
165
+ set_time_limit(120);
166
+ $i = 1;
167
+ $array = array("check" => false);
168
+
169
+ while($i <= 90){
170
+
171
+ if($_POST['cid'] == null){
172
+ $user = "user".time();
173
+ $email = "no email set";
174
+ $cid = wplc_log_user_on_page($user,$email);
175
+ $array['cid'] = $cid;
176
+ $array['status'] = wplc_return_chat_status($cid);
177
+ $array['wplc_name'] = $user;
178
+ $array['wplc_email'] = $email;
179
+ $array['check'] = true;
180
+
181
+ } else {
182
+ $new_status = wplc_return_chat_status($_POST['cid']);
183
+ $array['wplc_name'] = $_POST['wplc_name'];
184
+ $array['wplc_email'] = $_POST['wplc_email'];
185
+ $array['cid'] = $_POST['cid'];
186
+ if($new_status == $_POST['status']){ // if status matches do the following
187
+ if($_POST['status'] != 2){
188
+ wplc_update_user_on_page($_POST['cid'], $_POST['status']);
189
+ }
190
+ if ($_POST['status'] == 0){ // browsing - user tried to chat but admin didn't answer so turn back to browsing
191
+ wplc_update_user_on_page($_POST['cid'], 5);
192
+ $array['status'] = 5;
193
+ $array['check'] = true;
194
+ } else if($_POST['status'] == 3){
195
+ //wplc_update_user_on_page($_POST['cid'], 3);
196
+ $messages = wplc_return_user_chat_messages($_POST['cid']);
197
+ if ($messages){
198
+ wplc_mark_as_read_user_chat_messages($_POST['cid']);
199
+ $array['status'] = 3;
200
+ $array['data'] = $messages;
201
+ $array['check'] = true;
202
+ }
203
+ }
204
+
205
+ } else { // statuses do not match
206
+ $array['status'] = $new_status;
207
+ if($new_status == 1){ // completed
208
+ wplc_update_user_on_page($_POST['cid'], 8);
209
+ $array['check'] = true;
210
+ $array['status'] = 8;
211
+ $array['data'] = __("Admin has closed and ended the chat","wplivechat");
212
+ }
213
+ else if($new_status == 2){ // pending
214
+ $array['check'] = true;
215
+ $array['wplc_name'] = wplc_return_chat_name($_POST['cid']);
216
+ $array['wplc_email'] = wplc_return_chat_email($_POST['cid']);
217
+ }
218
+ else if($new_status == 3){ // active
219
+ $array['data'] = null;
220
+ $array['check'] = true;
221
+ if($_POST['status'] == 5){
222
+ $messages = wplc_return_chat_messages($_POST['cid']);
223
+ if ($messages){
224
+ $array['data'] = $messages;
225
+ }
226
+ }
227
+ }
228
+ else if($new_status == 7){ // timed out
229
+ wplc_update_user_on_page($_POST['cid'], 5);
230
+ }
231
+ else if($new_status == 9){ // user closed chat without inputting or starting a chat
232
+ $array['check'] = true;
233
+ }
234
+ else if($new_status == 0){ // no answer from admin
235
+ $array['data'] = __('There is No Answer. Please Try Again Later', 'wplivechat');
236
+ $array['check'] = true;
237
+ }
238
+ else if($new_status == 10){ // minimized active chat
239
+ $array['check'] = true;
240
+ if($_POST['status'] == 5){
241
+ $messages = wplc_return_chat_messages($_POST['cid']);
242
+ if ($messages){
243
+ $array['data'] = $messages;
244
+ }
245
+ }
246
+ }
247
+ }
248
+
249
+ }
250
+ if($array['check'] == true){
251
+ echo json_encode($array);
252
+ break;
253
+ }
254
+ sleep(1);
255
+ $i++;
256
+ }
257
  }
258
+
259
 
260
+ if ($_POST['action'] == "wplc_user_close_chat") {
261
+ if($_POST['status'] == 5){
262
+ wplc_change_chat_status($_POST['cid'],9);
263
+ } else if($_POST['status'] == 3){
264
+ wplc_change_chat_status($_POST['cid'],8);
265
+ }
 
 
 
266
  }
267
+
268
  if ($_POST['action'] == "wplc_user_minimize_chat") {
269
  $chat_id = $_POST['cid'];
270
+ wplc_change_chat_status($_POST['cid'],10);
 
 
 
 
271
  }
272
  if ($_POST['action'] == "wplc_user_maximize_chat") {
273
  $chat_id = $_POST['cid'];
274
  wplc_change_chat_status($_POST['cid'],3);
275
  }
276
+
277
  if ($_POST['action'] == "wplc_user_send_msg") {
278
  $chat_id = $_POST['cid'];
279
  $chat_msg = $_POST['msg'];
284
  echo "There was an error sending your chat message. Please contact support";
285
  }
286
  }
287
+ if ($_POST['action'] == "wplc_start_chat") {
288
+ if (isset($_POST['cid'])) {
289
+ if ($_POST['name'] && $_POST['email']) {
290
+ echo wplc_user_initiate_chat($_POST['name'],$_POST['email'],$_POST['cid']); // echo the chat session id
291
+ } else {
292
+ echo "error2";
293
+ }
294
+ } else {
295
+ if ($_POST['name'] && $_POST['email']) {
296
+ echo wplc_user_initiate_chat($_POST['name'],$_POST['email']); // echo the chat session id
297
+ } else {
298
+ echo "error2";
299
+ }
300
+ }
301
  }
 
302
  }
303
+
 
 
css/wplcstyle.css CHANGED
@@ -120,7 +120,7 @@
120
  font-size: 13px;
121
  display: block;
122
  width: 212px;
123
- overflow: auto;
124
  text-align: center;
125
  margin: 0 auto;
126
  }
@@ -170,6 +170,9 @@
170
  -moz-box-sizing: border-box;
171
  box-sizing: border-box;
172
  height: inherit;
 
 
 
173
  }
174
  .wplc-user-message{
175
  display: inline-block;
120
  font-size: 13px;
121
  display: block;
122
  width: 212px;
123
+ overflow: hidden;
124
  text-align: center;
125
  margin: 0 auto;
126
  }
170
  -moz-box-sizing: border-box;
171
  box-sizing: border-box;
172
  height: inherit;
173
+ background-image: none;
174
+ filter:none;
175
+ text-shadow: none;
176
  }
177
  .wplc-user-message{
178
  display: inline-block;
functions.php CHANGED
@@ -22,7 +22,7 @@ function wplc_log_user_on_page($name,$email) {
22
  return $lastid;
23
 
24
  }
25
- function wplc_update_user_on_page($cid) {
26
  global $wpdb;
27
  global $wplc_tblname_chats;
28
 
@@ -33,7 +33,7 @@ function wplc_update_user_on_page($cid) {
33
  `url` = '".$_SERVER['HTTP_REFERER']."',
34
  `last_active_timestamp` = '".date("Y-m-d H:i:s")."',
35
  `ip` = '".$_SERVER['REMOTE_ADDR']."',
36
- `status` = '5'
37
 
38
  WHERE `id` = '$cid'
39
  LIMIT 1
@@ -107,12 +107,28 @@ function wplc_return_chat_name($cid) {
107
  return $result->name;
108
  }
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
  function wplc_list_chats() {
112
 
113
  global $wpdb;
114
  global $wplc_tblname_chats;
115
-
 
116
  $results = $wpdb->get_results(
117
  "
118
  SELECT *
@@ -122,27 +138,25 @@ function wplc_list_chats() {
122
 
123
  "
124
  );
125
- echo "
126
-
127
-
128
- <table class=\"wp-list-table widefat fixed \" cellspacing=\"0\">
129
- <thead>
130
- <tr>
131
- <th scope='col' id='wplc_id_colum' class='manage-column column-id sortable desc' style=''><span>".__("IP","wplivechat")."</span></th>
132
- <th scope='col' id='wplc_name_colum' class='manage-column column-name_title sortable desc' style=''><span>".__("Name","wplivechat")."</span></th>
133
- <th scope='col' id='wplc_email_colum' class='manage-column column-email' style=\"\">".__("Email","wplivechat")."</th>
134
- <th scope='col' id='wplc_url_colum' class='manage-column column-url' style=\"\">".__("URL","wplivechat")."</th>
135
- <th scope='col' id='wplc_status_colum' class='manage-column column-status' style=\"\">".__("Status","wplivechat")."</th>
136
- <th scope='col' id='wplc_action_colum' class='manage-column column-action sortable desc' style=\"\"><span>".__("Action","wplivechat")."</span></th>
137
- </tr>
138
- </thead>
139
- <tbody id=\"the-list\" class='list:wp_list_text_link'>
140
- ";
141
 
142
  if (!$results) {
143
- echo "<tr><td></td><td>".__("No chat sessions available at the moment","wplivechat")."</td></tr>";
144
  }
145
  else {
 
146
  foreach ($results as $result) {
147
  unset($trstyle);
148
  unset($actions);
@@ -150,30 +164,29 @@ function wplc_list_chats() {
150
 
151
  if ($result->status == 2) {
152
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
153
- $actions = "<a href=\"#\" onclick=\"window.open('$url', 'mywindow".$result->id."', 'location=no,status=1,scrollbars=1,width=500,height=650');return false;\">Accept Chat</a>";
154
  $trstyle = "style='background-color:#FFFBE4; height:30px;'";
155
  }
156
  if ($result->status == 3) {
157
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
158
- $actions = "<a href=\"#\" onclick=\"window.open('$url', 'mywindow".$result->id."', 'location=no,status=1,scrollbars=1,width=500,height=650');return false;\">Open Chat Window</a>";
159
  $trstyle = "style='background-color:#F7FCFE; height:30px;'";
160
  }
161
-
162
-
163
- echo "<tr id=\"record_".$result->id."\" $trstyle>";
164
- echo "<td class='chat_id column-chat_d'>".$result->ip."</td>";
165
- echo "<td class='chat_name column_chat_name' id='chat_name_".$result->id."'><img src=\"http://www.gravatar.com/avatar/".md5($result->email)."?s=40\" /> ".$result->name."</td>";
166
- echo "<td class='chat_email column_chat_email' id='chat_email_".$result->id."'>".$result->email."</td>";
167
- echo "<td class='chat_name column_chat_url' id='chat_url_".$result->id."'>".$result->url."</td>";
168
- echo "<td class='chat_status column_chat_status' id='chat_status_".$result->id."'><strong>".wplc_return_status($result->status)."</strong></td>";if ($wplc_c>1) { $actions = wplc_get_msg(); }
169
- echo "<td class='chat_action column-chat_action' id='chat_action_".$result->id."'>$actions</td>";
170
- echo "</tr>";
171
 
172
  }
173
  }
174
- echo "</table><br /><br />";
175
-
176
-
177
  }
178
 
179
 
@@ -207,8 +220,6 @@ function wplc_return_user_chat_messages($cid) {
207
  $image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
208
  }
209
  }
210
-
211
-
212
  $msg_hist .= "<span class='wplc-admin-message'>$image <strong>$from</strong>:<hr/> $msg</span><br /><div class='wplc-clear-float-message'></div>";
213
 
214
  }
@@ -247,6 +258,7 @@ function wplc_return_chat_messages($cid) {
247
  LIMIT 0, 100
248
  "
249
  );
 
250
  foreach ($results as $result) {
251
  $from = $result->from;
252
  $msg = $result->msg;
@@ -320,11 +332,13 @@ function wplc_return_admin_chat_messages($cid) {
320
 
321
  "
322
  );
 
323
  $msg_hist = "";
324
  foreach ($results as $result) {
 
325
  $id = $result->id;
326
  $from = $result->from;
327
-
328
  $msg = stripslashes($result->msg);
329
  //$timestamp = strtotime($result->timestamp);
330
  //$timeshow = date("H:i",$timestamp);
@@ -336,35 +350,20 @@ function wplc_return_admin_chat_messages($cid) {
336
 
337
 
338
  }
339
- function wplc_mark_as_read_admin_chat_messages($cid) {
340
  global $wpdb;
341
  global $wplc_tblname_msgs;
342
- $results = $wpdb->get_results(
 
343
  "
344
- SELECT *
345
- FROM $wplc_tblname_msgs
346
- WHERE `chat_sess_id` = '$cid' AND `status` = '0' AND `originates` = '2'
347
- ORDER BY `timestamp` DESC
348
 
349
- "
350
  );
351
 
352
-
353
- foreach ($results as $result) {
354
- $id = $result->id;
355
- $check = $wpdb->query(
356
- "
357
- UPDATE $wplc_tblname_msgs
358
- SET `status` = 1
359
- WHERE `id` = '$id'
360
- LIMIT 1
361
-
362
- "
363
- );
364
- }
365
- return "ok";
366
-
367
-
368
  }
369
 
370
 
@@ -391,22 +390,28 @@ function wplc_return_chat_status($cid) {
391
 
392
  function wplc_return_status($status) {
393
  if ($status == 1) {
394
- return "complete";
395
  }
396
  if ($status == 2) {
397
- return "pending";
398
  }
399
  if ($status == 3) {
400
- return "active";
401
  }
402
  if ($status == 4) {
403
- return "deleted";
404
  }
405
  if ($status == 5) {
406
- return "browsing";
407
  }
408
  if ($status == 6) {
409
- return "requesting chat";
 
 
 
 
 
 
410
  }
411
 
412
  }
@@ -468,7 +473,7 @@ function wplc_update_chat_statuses() {
468
  "
469
  SELECT *
470
  FROM $wplc_tblname_chats
471
- WHERE `status` = '2' OR `status` = '3' OR `status` = '5'
472
  "
473
  );
474
  foreach ($results as $result) {
@@ -480,7 +485,7 @@ function wplc_update_chat_statuses() {
480
  }
481
  }
482
  else if ($result->status == 3) {
483
- if ((time() - $timestamp) >= 600) { // 10 minute max
484
  wplc_change_chat_status($id,1);
485
  }
486
  }
@@ -488,6 +493,47 @@ function wplc_update_chat_statuses() {
488
  if ((time() - $timestamp) >= 120) { // 2 minute timeout
489
  wplc_change_chat_status($id,7); // 7 - timedout
490
  }
 
 
 
 
 
 
 
 
491
  }
492
  }
493
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  return $lastid;
23
 
24
  }
25
+ function wplc_update_user_on_page($cid, $status = 5) {
26
  global $wpdb;
27
  global $wplc_tblname_chats;
28
 
33
  `url` = '".$_SERVER['HTTP_REFERER']."',
34
  `last_active_timestamp` = '".date("Y-m-d H:i:s")."',
35
  `ip` = '".$_SERVER['REMOTE_ADDR']."',
36
+ `status` = '$status'
37
 
38
  WHERE `id` = '$cid'
39
  LIMIT 1
107
  return $result->name;
108
  }
109
 
110
+ }
111
+ function wplc_return_chat_email($cid) {
112
+ global $wpdb;
113
+ global $wplc_tblname_chats;
114
+ $results = $wpdb->get_results(
115
+ "
116
+ SELECT *
117
+ FROM $wplc_tblname_chats
118
+ WHERE `id` = '$cid'
119
+ "
120
+ );
121
+ foreach ($results as $result) {
122
+ return $result->email;
123
+ }
124
+
125
  }
126
  function wplc_list_chats() {
127
 
128
  global $wpdb;
129
  global $wplc_tblname_chats;
130
+ $status = 3;
131
+ $wplc_c = 0;
132
  $results = $wpdb->get_results(
133
  "
134
  SELECT *
138
 
139
  "
140
  );
141
+
142
+ $table = "<table class=\"wp-list-table widefat fixed \" cellspacing=\"0\">"
143
+ . "<thead>"
144
+ . "<tr>"
145
+ . "<th scope='col' id='wplc_id_colum' class='manage-column column-id sortable desc' style=''><span>".__("IP","wplivechat")."</span></th>"
146
+ . "<th scope='col' id='wplc_name_colum' class='manage-column column-name_title sortable desc' style=''><span>".__("Name","wplivechat")."</span></th>"
147
+ . "<th scope='col' id='wplc_email_colum' class='manage-column column-email' style=\"\">".__("Email","wplivechat")."</th>"
148
+ . "<th scope='col' id='wplc_url_colum' class='manage-column column-url' style=\"\">".__("URL","wplivechat")."</th>"
149
+ . "<th scope='col' id='wplc_status_colum' class='manage-column column-status' style=\"\">".__("Status","wplivechat")."</th>"
150
+ . "<th scope='col' id='wplc_action_colum' class='manage-column column-action sortable desc' style=\"\"><span>".__("Action","wplivechat")."</span></th>"
151
+ . "</tr>"
152
+ . "</thead>"
153
+ . "<tbody id=\"the-list\" class='list:wp_list_text_link'>";
 
 
 
154
 
155
  if (!$results) {
156
+ $table .= "<tr><td></td><td>".__("No chat sessions available at the moment","wplivechat")."</td></tr>";
157
  }
158
  else {
159
+
160
  foreach ($results as $result) {
161
  unset($trstyle);
162
  unset($actions);
164
 
165
  if ($result->status == 2) {
166
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
167
+ $actions = "<a href=\"".$url."\" class=\"wplc_open_chat\" window-title=\"WP-Live-Chat-".$result->id."\">Accept Chat</a>";
168
  $trstyle = "style='background-color:#FFFBE4; height:30px;'";
169
  }
170
  if ($result->status == 3) {
171
  $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$result->id);
172
+ $actions = "<a href=\"".$url."\" class=\"wplc_open_chat\" window-title=\"WP-Live-Chat-".$result->id."\">Open Chat Window</a>";
173
  $trstyle = "style='background-color:#F7FCFE; height:30px;'";
174
  }
175
+ if ($wplc_c>1) { $actions = wplc_get_msg(); }
176
+ $table .= "<tr id=\"record_".$result->id."\" $trstyle>"
177
+ . "<td class='chat_id column-chat_d'>".$result->ip."</td>"
178
+ . "<td class='chat_name column_chat_name' id='chat_name_".$result->id."'><img src=\"http://www.gravatar.com/avatar/".md5($result->email)."?s=40\" /> ".$result->name."</td>"
179
+ . "<td class='chat_email column_chat_email' id='chat_email_".$result->id."'>".$result->email."</td>"
180
+ . "<td class='chat_name column_chat_url' id='chat_url_".$result->id."'>".$result->url."</td>"
181
+ . "<td class='chat_status column_chat_status' id='chat_status_".$result->id."'><strong>".wplc_return_status($result->status)."</strong></td>"
182
+ . "<td class='chat_action column-chat_action' id='chat_action_".$result->id."'>$actions</td>"
183
+ . "</tr>";
 
184
 
185
  }
186
  }
187
+ $table .= "</table><br /><br />";
188
+
189
+ return $table;
190
  }
191
 
192
 
220
  $image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
221
  }
222
  }
 
 
223
  $msg_hist .= "<span class='wplc-admin-message'>$image <strong>$from</strong>:<hr/> $msg</span><br /><div class='wplc-clear-float-message'></div>";
224
 
225
  }
258
  LIMIT 0, 100
259
  "
260
  );
261
+ $msg_hist = "";
262
  foreach ($results as $result) {
263
  $from = $result->from;
264
  $msg = $result->msg;
332
 
333
  "
334
  );
335
+
336
  $msg_hist = "";
337
  foreach ($results as $result) {
338
+
339
  $id = $result->id;
340
  $from = $result->from;
341
+ wplc_mark_as_read_admin_chat_messages($id);
342
  $msg = stripslashes($result->msg);
343
  //$timestamp = strtotime($result->timestamp);
344
  //$timeshow = date("H:i",$timestamp);
350
 
351
 
352
  }
353
+ function wplc_mark_as_read_admin_chat_messages($mid) {
354
  global $wpdb;
355
  global $wplc_tblname_msgs;
356
+
357
+ $check = $wpdb->query(
358
  "
359
+ UPDATE $wplc_tblname_msgs
360
+ SET `status` = 1
361
+ WHERE `id` = '$mid'
362
+ LIMIT 1
363
 
364
+ "
365
  );
366
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  }
368
 
369
 
390
 
391
  function wplc_return_status($status) {
392
  if ($status == 1) {
393
+ return __("complete","wplivechat");
394
  }
395
  if ($status == 2) {
396
+ return __("pending", "wplivechat");
397
  }
398
  if ($status == 3) {
399
+ return __("active", "wplivechat");
400
  }
401
  if ($status == 4) {
402
+ return __("deleted", "wplivechat");
403
  }
404
  if ($status == 5) {
405
+ return __("browsing", "wplivechat");
406
  }
407
  if ($status == 6) {
408
+ return __("requesting chat", "wplivechat");
409
+ }
410
+ if($status == 8){
411
+ return __("Chat Ended - User still browsing", "wplivechat");
412
+ }
413
+ if($status == 9){
414
+ return __("User is browsing but doesn't want to chat", "wplivechat");
415
  }
416
 
417
  }
473
  "
474
  SELECT *
475
  FROM $wplc_tblname_chats
476
+ WHERE `status` = '2' OR `status` = '3' OR `status` = '5' or `status` = '8' or `status` = '9' or `status` = '10'
477
  "
478
  );
479
  foreach ($results as $result) {
485
  }
486
  }
487
  else if ($result->status == 3) {
488
+ if ((time() - $timestamp) >= 30) { // 30 seconds
489
  wplc_change_chat_status($id,1);
490
  }
491
  }
493
  if ((time() - $timestamp) >= 120) { // 2 minute timeout
494
  wplc_change_chat_status($id,7); // 7 - timedout
495
  }
496
+ } else if($result->status == 8){ // chat is complete but user is still browsing
497
+ if ((time() - $timestamp) >= 20) { // 20 seconds
498
+ wplc_change_chat_status($id,1); // 1 - chat is now complete
499
+ }
500
+ } else if($result->status == 9 || $result->status == 10){
501
+ if ((time() - $timestamp) >= 20) { // 20 seconds
502
+ wplc_change_chat_status($id,7); // 7 - timedout
503
+ }
504
  }
505
  }
506
  }
507
+ function wplc_check_pending_chats(){
508
+ global $wpdb;
509
+ global $wplc_tblname_chats;
510
+ $sql = "SELECT * FROM `$wplc_tblname_chats` WHERE `status` = 2";
511
+ $wpdb->query($sql);
512
+ if($wpdb->num_rows){
513
+ return true;
514
+ } else {
515
+ return false;
516
+ }
517
+ }
518
+ function wplc_get_active_and_pending_chats(){
519
+ global $wpdb;
520
+ global $wplc_tblname_chats;
521
+ $sql = "SELECT * FROM `$wplc_tblname_chats` WHERE `status` = 2 OR `status` = 3 ORDER BY `status`";
522
+ $results = $wpdb->get_results($sql);
523
+ if($results){
524
+ return $results;
525
+ } else {
526
+ return false;
527
+ }
528
+ }
529
+ function wplc_convert_array_to_string($array){
530
+ $string = "";
531
+ if($array){
532
+ foreach($array as $value){
533
+ $string.= $value->id." ;";
534
+ }
535
+ } else {
536
+ $string = false;
537
+ }
538
+ return $string;
539
+ }
includes/feedback-page.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $current_user;
3
+ get_currentuserinfo();
4
+ ?><div class="wrap">
5
+
6
+
7
+ <div id="icon-options-general" class="icon32 icon32-posts-post"><br></div><h2><?php _e("WP Live Chat Support Feedback","wplivechat") ?></h2>
8
+ <h3><?php _e("We'd love to hear your comments and/or suggestions","wplivechat"); ?></h3>
9
+ <form name="wplc_feedback" action="" method="POST">
10
+ <table width='100%'>
11
+ <tr>
12
+ <td width="250px" >
13
+ <label><?php _e("Your Name","wplivechat"); ?></label>
14
+ </td>
15
+ <td>
16
+ <input type="text" class='wplc-input' name="wplc_nl_feedback_name" value="<?php echo $current_user->user_firstname; ?>"/>
17
+ </td>
18
+ </tr>
19
+ <tr>
20
+ <td width="250px" >
21
+ <label><?php _e("Your Email","wplivechat"); ?></label>
22
+ </td>
23
+ <td>
24
+ <input type="text" class='wplc-input' name="wplc_nl_feedback_email" value="<?php echo $current_user->user_email; ?>"/>
25
+ </td>
26
+ </tr>
27
+ <tr>
28
+ <td width="250px" >
29
+ <label><?php _e("Your Website","wplivechat"); ?></label>
30
+ </td>
31
+ <td>
32
+ <input type="text" class='wplc-input' name="wplc_nl_feedback_website" value="<?php echo get_site_url(); ?>"/>
33
+ </td>
34
+ </tr>
35
+ <tr>
36
+ <td width="250px" valign='top' >
37
+ <label><?php _e("Feedback","wplivechat"); ?></label>
38
+ </td>
39
+ <td>
40
+ <textarea name="wplc_nl_feedback_feedback" cols='60' rows='10'></textarea>
41
+ </td>
42
+ </tr>
43
+ <tr>
44
+ <td width="250px" valign='top' >
45
+
46
+ </td>
47
+ <td>
48
+ <input type='submit' name='wplc_nl_send_feedback' class='button-primary' value='<?php _e("Send Feedback","wplivechat") ?>' />
49
+ </td>
50
+ </tr>
51
+ </table>
52
+
53
+ </form>
54
+
includes/settings_page.php CHANGED
@@ -20,6 +20,7 @@
20
  <li><a href="#tabs-2"><?php _e("Chat Box","wplivechat")?></a></li>
21
  <li><a href="#tabs-3"><?php _e("Offline Messages","wplivechat")?></a></li>
22
  <li><a href="#tabs-4"><?php _e("Styling","wplivechat")?></a></li>
 
23
  </ul>
24
  <div id="tabs-1">
25
  <h3><?php _e("Main Settings",'wplivechat')?></h3>
@@ -28,15 +29,15 @@
28
  <td width='200' valign='top'><?php _e("Chat enabled","wplivechat")?>:</td>
29
  <td>
30
  <select id='wplc_settings_enabled' name='wplc_settings_enabled'>
31
- <option value="1" <?php $wplc_settings_enabled[1]?>><?php _e("Yes","wplivechat")?></option>
32
- <option value="2" <?php $wplc_settings_enabled[2]?>><?php _e("No","wplivechat")?></option>
33
  </select>
34
  </td>
35
  </tr>
36
  <tr>
37
  <td width='200' valign='top'>
38
  <?php _e("Hide Chat","wplivechat")?>:
39
- <p class="description">Hides chat for 24hrs when user clicks X</p>
40
  </td>
41
  <td valign='top'>
42
  <input type="checkbox" value="true" readonly disabled/>
@@ -59,8 +60,8 @@
59
  <td width='200' valign='top'><?php _e("Chat box alignment","wplivechat")?>:</td>
60
  <td>
61
  <select id='wplc_settings_align' name='wplc_settings_align'>
62
- <option value="1" <?php $wplc_settings_align[1]?>><?php _e("Bottom left","wplivechat")?></option>
63
- <option value="2" <?php $wplc_settings_align[2]?>><?php _e("Bottom right","wplivechat")?></option>
64
  </select>
65
  </td>
66
  </tr>
@@ -204,15 +205,15 @@
204
  <tr>
205
  <td width='200' valign='top'><?php _e("First section text","wplivechat")?>:</td>
206
  <td>
207
- <input type='text' size='50' maxlength='50' class='regular-text' readonly value='Questions?' /> <br />
208
- <input type='text' size='50' maxlength='50' class='regular-text' readonly value='Chat with us' /> <br />
209
  </td>
210
  </tr>
211
  <tr>
212
  <td width='200' valign='top'><?php _e("Second section text","wplivechat") ?>:</td>
213
  <td>
214
- <input type='text' size='50' maxlength='50' class='regular-text' readonly value='Start Chat' /> <br />
215
- <input type='text' size='50' maxlength='50' class='regular-text' readonly value='Connecting you to a sales person. Please be patient.' /> <br />
216
 
217
 
218
  </td>
@@ -220,7 +221,7 @@
220
  <tr>
221
  <td width='200' valign='top'><?php _e("Reactivate chat section text","wplivechat")?>:</td>
222
  <td>
223
- <input type='text' size='50' maxlength='50' class='regular-text' readonly value='Reactivating your previous chat...' />
224
  <small>
225
  <i>
226
  <?php _e("Edit these text fields using the ","wplivechat")?>
@@ -234,6 +235,10 @@
234
  </tr>
235
  </table>
236
  </div>
 
 
 
 
237
  </div>
238
  <p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
239
  </form>
20
  <li><a href="#tabs-2"><?php _e("Chat Box","wplivechat")?></a></li>
21
  <li><a href="#tabs-3"><?php _e("Offline Messages","wplivechat")?></a></li>
22
  <li><a href="#tabs-4"><?php _e("Styling","wplivechat")?></a></li>
23
+ <li><a href="#tabs-5"><?php _e("Agents", "wplivechat") ?></a></li>
24
  </ul>
25
  <div id="tabs-1">
26
  <h3><?php _e("Main Settings",'wplivechat')?></h3>
29
  <td width='200' valign='top'><?php _e("Chat enabled","wplivechat")?>:</td>
30
  <td>
31
  <select id='wplc_settings_enabled' name='wplc_settings_enabled'>
32
+ <option value="1" <?php echo $wplc_settings_enabled[1]?>><?php _e("Yes","wplivechat")?></option>
33
+ <option value="2" <?php echo $wplc_settings_enabled[2]?>><?php _e("No","wplivechat")?></option>
34
  </select>
35
  </td>
36
  </tr>
37
  <tr>
38
  <td width='200' valign='top'>
39
  <?php _e("Hide Chat","wplivechat")?>:
40
+ <p class="description"><?php _e("Hides chat for 24hrs when user clicks X", "wplivechat") ?></p>
41
  </td>
42
  <td valign='top'>
43
  <input type="checkbox" value="true" readonly disabled/>
60
  <td width='200' valign='top'><?php _e("Chat box alignment","wplivechat")?>:</td>
61
  <td>
62
  <select id='wplc_settings_align' name='wplc_settings_align'>
63
+ <option value="1" <?php echo $wplc_settings_align[1]?>><?php _e("Bottom left","wplivechat")?></option>
64
+ <option value="2" <?php echo $wplc_settings_align[2]?>><?php _e("Bottom right","wplivechat")?></option>
65
  </select>
66
  </td>
67
  </tr>
205
  <tr>
206
  <td width='200' valign='top'><?php _e("First section text","wplivechat")?>:</td>
207
  <td>
208
+ <input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Questions?","wplivechat") ?>' /> <br />
209
+ <input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Chat with us","wplivechat") ?>' /> <br />
210
  </td>
211
  </tr>
212
  <tr>
213
  <td width='200' valign='top'><?php _e("Second section text","wplivechat") ?>:</td>
214
  <td>
215
+ <input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Start Chat","wplivechat") ?>' /> <br />
216
+ <input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Connecting you to a sales person. Please be patient.", "wplivechat") ?>' /> <br />
217
 
218
 
219
  </td>
221
  <tr>
222
  <td width='200' valign='top'><?php _e("Reactivate chat section text","wplivechat")?>:</td>
223
  <td>
224
+ <input type='text' size='50' maxlength='50' class='regular-text' readonly value='<?php _e("Reactivating your previous chat...", "wplivechat") ?>' />
225
  <small>
226
  <i>
227
  <?php _e("Edit these text fields using the ","wplivechat")?>
235
  </tr>
236
  </table>
237
  </div>
238
+ <div id="tabs-5">
239
+ <h3><?php _e("Multiple Agents", "wplivechat") ?></h3>
240
+ <p><?php _e("Get","wplivechat") ?> <a href="http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=multipleAgents"><?php _e("Multiple agent support", "wplivechat") ?></a></p>
241
+ </div>
242
  </div>
243
  <p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
244
  </form>
includes/welcome_page.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <center>
3
+ <h1 style="font-weight: 300; font-size: 50px; line-height: 50px;">
4
+ <?php _e("Welcome to ",'wplivechat'); ?>
5
+ <strong style='color: #ec822c;'>WP Live Chat Support</strong>
6
+ <small>Version 4</small>
7
+ </h1>
8
+ <div class="about-text" style="margin: 0;">Provide Instant Live Chat Support!</div>
9
+
10
+ <h2 style="font-size: 25px;">How did you find us?</h2>
11
+ <form method="post" name="wplc_find_us_form" style="font-size: 16px;">
12
+ <div style="text-align: left; width:275px;">
13
+ <input type="radio" name="wplc_find_us" id="wordpress" value='repository'>
14
+ <label for="wordpress">
15
+ <?php _e('WordPress.org plugin repository ', 'wplivechat'); ?>
16
+ </label>
17
+ <br/>
18
+ <input type='text' placeholder="<?php _e('Search Term', 'wplivechat'); ?>" name='wplc_nl_search_term' style='margin-top:5px; margin-left: 23px; width: 100% '>
19
+ <br/>
20
+ <input type="radio" name="wplc_find_us" id="search_engine" value='search_engine'>
21
+ <label for="search_engine">
22
+ <?php _e('Google or other search Engine', 'wplivechat'); ?>
23
+ </label>
24
+ <br/>
25
+ <input type="radio" name="wplc_find_us" id="friend" value='friend'>
26
+
27
+ <label for='friend'>
28
+ <?php _e('Friend recommendation', 'wplivechat'); ?>
29
+ </label>
30
+ <br/>
31
+ <input type="radio" name="wplc_find_us" id='other' value='other'>
32
+
33
+ <label for='other'>
34
+ <?php _e('Other', 'wplivechat'); ?>
35
+ </label>
36
+ <br/>
37
+
38
+ <textarea placeholder="<?php _e('Please Explain', 'wplivechat'); ?>" style='margin-top:5px; margin-left: 23px; width: 100%' name='wplc_nl_findus_other_url'></textarea>
39
+ </div>
40
+ <div>
41
+
42
+ </div>
43
+ <div>
44
+
45
+ </div>
46
+ <div style='margin-top: 20px;'>
47
+ <button name='action' value='wplc_submit_find_us' class="button-primary" style="font-size: 30px; line-height: 60px; height: 60px; margin-bottom: 10px;"><?php _e('Submit', 'wplivechat'); ?></button>
48
+ <br/>
49
+ <button name='action' value="wplc_skip_find_us" class="button"><?php _e('Skip', 'wplivechat'); ?></button>
50
+ </div>
51
+ </form>
52
+ </center>
53
+
js/wplc_u.js CHANGED
@@ -1,70 +1,188 @@
1
  /*
2
- * Cookie Stages
 
 
 
 
 
 
 
 
 
 
 
3
  *
4
- * 1 = no chat started - small box
5
- * 2 = chat window opens - enter username & email
6
- * 3 = awaiting admin to accept chat
7
- * 4 = Chat window - user and admin can now chat
8
  */
 
9
  jQuery(document).ready(function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  jQuery('[placeholder]').focus(function() {
11
  var input = jQuery(this);
12
  if (input.val() == input.attr('placeholder')) {
13
- input.val('');
14
- input.removeClass('placeholder');
15
  }
16
- }).blur(function() {
17
  var input = jQuery(this);
18
  if (input.val() == '' || input.val() == input.attr('placeholder')) {
19
- input.addClass('placeholder');
20
- input.val(input.attr('placeholder'));
21
- }
22
- }).blur();
23
-
24
-
25
-
26
- var wplc_user_auto_refresh = "";
27
- var wplc_user_auto_refresh_status = "";
28
-
29
- var wplc_check_cookie_id;
30
- var wplc_check_cookie_stage;
31
- var wplc_check_hide_cookie;
32
- var wplc_check_minimize_cookie;
33
-
34
- wplc_check_cookie_id = jQuery.cookie('wplc_cid');
35
- wplc_check_cookie_stage = jQuery.cookie('wplc_stage');
36
- wplc_check_hide_cookie = jQuery.cookie('wplc_hide');
37
- wplc_check_minimize_cookie = jQuery.cookie('wplc_minimize');
38
- //set cookie stage
39
- if(wplc_check_cookie_stage === null){
40
- jQuery.cookie('wplc_stage', 1, { expires: 1, path: '/' });
41
- wplc_check_cookie_stage = jQuery.cookie('wplc_stage');
42
- }
43
-
44
- function wplc_relay_user_stage(stage,cid) {
45
-
46
- if (cid.length) {
47
- var data = {
48
- action: 'wplc_relay_stage',
49
- security: wplc_nonce,
50
- stage: stage,
51
- cid: cid,
52
- wplc_wp_load_url: wplc_wp_load_url
53
- };
54
- } else {
55
- var data = {
56
- action: 'wplc_relay_stage',
57
- security: wplc_nonce,
58
- stage: stage,
59
- wplc_wp_load_url: wplc_wp_load_url
60
- };
61
- }
62
- jQuery.post(wplc_ajaxurl, data, function(response) {
63
- console.log(response);
64
- //console.log("wplc_relay_stage");
65
- });
66
  }
 
67
 
 
68
  /* minimize chat window */
69
  jQuery("#wp-live-chat-minimize").on("click", function() {
70
  if(jQuery("#wp-live-chat").attr("original_pos") === "right"){
@@ -78,56 +196,52 @@ jQuery(document).ready(function() {
78
  jQuery("#wp-live-chat-2").hide();
79
  jQuery("#wp-live-chat-3").hide();
80
  jQuery("#wp-live-chat-4").hide();
 
81
  jQuery("#wp-live-chat-minimize").hide();
82
  jQuery.cookie('wplc_minimize', "yes", { expires: 1, path: '/' });
83
  var data = {
84
  action: 'wplc_user_minimize_chat',
85
  security: wplc_nonce,
86
- cid: wplc_check_cookie_id
87
  };
 
88
  jQuery.post(wplc_ajaxurl, data, function(response) {
89
- //console.log("wplc_user_close_chat");
90
- });
 
91
  });
92
  /* close chat window */
93
  jQuery("#wp-live-chat-close").on("click", function() {
 
94
  jQuery("#wp-live-chat").hide();
95
  jQuery("#wp-live-chat-1").hide();
96
  jQuery("#wp-live-chat-2").hide();
97
  jQuery("#wp-live-chat-3").hide();
98
  jQuery("#wp-live-chat-4").hide();
 
99
  jQuery("#wp-live-chat-minimize").hide();
100
- jQuery.cookie('wplc_hide', wplc_hide_chat, { expires: 1, path: '/' });
101
- jQuery.cookie('wplc_cid', null, { expires: 1, path: '/' });
102
- jQuery.cookie('wplc_stage', 1, { expires: 1, path: '/' });
103
-
104
-
105
-
106
  var data = {
107
  action: 'wplc_user_close_chat',
108
  security: wplc_nonce,
109
- cid: wplc_check_cookie_id,
110
- wplc_wp_load_url: wplc_wp_load_url
111
  };
112
  jQuery.post(wplc_ajaxurl, data, function(response) {
113
- console.log(wplc_check_cookie_id);
114
- //console.log("wplc_user_close_chat");
115
- clearInterval(wplc_user_auto_refresh_status);
116
- clearInterval(wplc_user_auto_refresh);
117
-
118
  });
119
- });
120
-
121
- //open chat
122
- jQuery("#wp-live-chat-1").on("click", function() {
123
-
124
  //jQuery("#wp-live-chat-1").hide();
 
125
  jQuery("#wp-live-chat-header").css('cursor', 'all-scroll');
126
  jQuery("#wp-live-chat-1").css('cursor', 'all-scroll');
127
  jQuery.cookie('wplc_hide', "", { expires: 1, path: '/' });
128
  jQuery("#wp-live-chat-minimize").show();
129
  jQuery("#wp-live-chat-close").show();
130
-
131
  jQuery(function() {
132
  jQuery( "#wp-live-chat" ).draggable({
133
  handle: "#wp-live-chat-header",
@@ -137,53 +251,61 @@ jQuery(document).ready(function() {
137
  }
138
  });
139
  });
140
-
141
- wplc_check_cookie_stage = jQuery.cookie('wplc_stage');
142
- if (wplc_check_cookie_stage === "4") {
 
143
  jQuery("#wp-live-chat-4").show();
144
  jQuery("#wplc_chatmsg").focus();
145
  jQuery("#wp-live-chat-2").hide();
 
146
  jQuery.cookie('wplc_minimize', "", { expires: 1, path: '/' });
 
147
  var data = {
148
  action: 'wplc_user_maximize_chat',
149
  security: wplc_nonce,
150
- cid: wplc_check_cookie_id,
151
- wplc_wp_load_url: wplc_wp_load_url
152
  };
153
  jQuery.post(wplc_ajaxurl, data, function(response) {
 
154
  //log("user maximized chat success");
155
  });
156
  }
157
- /*else if (wplc_check_cookie_stage === "2") {
158
- var data = {
159
- action: 'wplc_user_maximize_chat',
160
- security: wplc_nonce,
161
- cid: wplc_check_cookie_id
162
- };
163
- jQuery.post(wplc_ajaxurl, data, function(response) {
164
- //log("user maximized chat success");
165
- });
166
-
167
- jQuery("#wp-live-chat-2").show();
168
- //
169
- //Changed this to show chat window 2 as this seemed to be the issue where the chat would be minimized
170
- //without putting email or username in and then opened again and go straight into chat
171
- //
172
- //jQuery("#wp-live-chat-4").show();
173
- //jQuery("#wplc_chatmsg").focus();
174
- //jQuery("#wp-live-chat-2").hide();
175
- } */
176
- else if (wplc_check_cookie_stage === "1" || !wplc_check_cookie_stage){
177
  if(jQuery("#wp-live-chat-2").is(":visible") === false && jQuery("#wp-live-chat-4").is(":visible") === false){
178
  jQuery("#wp-live-chat-2").show();
 
 
 
 
179
  }
180
  }
181
- else if (wplc_check_cookie_stage === "3"){
182
  jQuery("#wp-live-chat-3").show();
183
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  });
185
-
186
- var wplc_user_waiting = null;
 
 
 
 
 
187
 
188
  jQuery("#wplc_start_chat_btn").on("click", function() {
189
  var wplc_name = jQuery("#wplc_name").val();
@@ -194,65 +316,45 @@ jQuery(document).ready(function() {
194
  if (!testEmail.test(wplc_email)){
195
  alert("Please Enter a Valid Email Address"); return false;
196
  }
197
-
198
  jQuery("#wp-live-chat-2").hide();
199
  jQuery("#wp-live-chat-3").show();
200
 
201
  var date = new Date();
202
  date.setTime(date.getTime() + (2 * 60 * 1000));
203
- jQuery.cookie('wplc_stage', 3, { expires: date, path: '/' });
204
-
205
- wplc_check_cookie_id = jQuery.cookie('wplc_cid');
206
- var wplc_chat_session_id;
207
 
208
- var data = {
209
- action: 'wplc_start_chat',
210
- security: wplc_nonce,
211
- name: wplc_name,
212
- email: wplc_email,
213
- wplc_wp_load_url: wplc_wp_load_url
214
- };
 
 
 
 
 
 
 
 
 
 
 
 
215
  jQuery.post(wplc_ajaxurl, data, function(response) {
 
 
 
216
  //console.log("wplc_start_chat");
217
- wplc_chat_session_id = jQuery.trim(response);
218
- wplc_check_cookie_id = jQuery.trim(response);
219
- wplc_user_waiting = setInterval(function (){wplc_user_await_session(wplc_chat_session_id);}, 5000);
220
-
221
  });
222
  });
223
 
224
- function wplc_user_await_session(cid) {
225
- var data = {
226
- action: 'wplc_user_awaiting_chat',
227
- security: wplc_nonce,
228
- id: cid,
229
- wplc_wp_load_url: wplc_wp_load_url
230
- };
231
- jQuery.post(wplc_ajaxurl, data, function(response) {
232
- //console.log("wplc_user_awaiting_chat");
233
- if (response == "3") {
234
- clearInterval(wplc_user_waiting);
235
- var wplc_name = jQuery("#wplc_name").val();
236
- jQuery("#wplc_cid").val(cid)
237
- jQuery("#wp-live-chat-3").hide();
238
- jQuery("#wp-live-chat-4").show();
239
- jQuery("#wplc_chatmsg").focus();
240
 
241
- // chat is now active
242
- jQuery.cookie('wplc_cid', cid, { expires: 1, path: '/' });
243
- jQuery.cookie('wplc_name', wplc_name, { expires: 1, path: '/' });
244
- jQuery.cookie('wplc_stage', 4, { expires: 1, path: '/' });
245
- wplc_user_auto_refresh = setInterval(function (){wpcl_user_auto_update_chat_box(cid);}, 3500);
246
- wplc_user_auto_refresh_status = setInterval(function (){wpcl_user_auto_update_chat_status(wplc_check_cookie_id);}, 3500);
247
 
248
- } else if(response === "0"){
249
- clearInterval(wplc_user_waiting);
250
- jQuery.cookie('wplc_stage', 1, { expires: 1, path: '/' });
251
-
252
- }
253
- });
254
- return;
255
- }
256
  jQuery("#wplc_chatmsg").keyup(function(event){
257
  if(event.keyCode == 13){
258
  jQuery("#wplc_send_msg").trigger("click");
@@ -275,129 +377,15 @@ jQuery(document).ready(function() {
275
  action: 'wplc_user_send_msg',
276
  security: wplc_nonce,
277
  cid: wplc_cid,
278
- msg: wplc_chat,
279
- wplc_wp_load_url: wplc_wp_load_url
280
  };
281
  jQuery.post(wplc_ajaxurl, data, function(response) {
282
  //console.log("wplc_user_send_msg");
283
  });
284
 
285
  });
286
- function wpcl_user_auto_update_chat_status(cid) {
287
- var data = {
288
- action: 'wplc_update_user_chat_status',
289
- cid: cid,
290
- security: wplc_nonce,
291
- wplc_wp_load_url: wplc_wp_load_url
292
- };
293
- jQuery.post(wplc_ajaxurl, data, function(response) {
294
- if (response === "1") {
295
- jQuery("#wplc_chatbox").append("The chat has been ended by the operator.<br />");
296
- var height = jQuery('#wplc_chatbox')[0].scrollHeight;
297
- jQuery('#wplc_chatbox').scrollTop(height);
298
- jQuery.cookie('wplc_stage', '1', { path: '/' } );
299
- jQuery.cookie('wplc_hide', null, { path: '/' } );
300
- jQuery.cookie('wplc_cid', null, { path: '/' } );
301
- clearInterval(wplc_user_auto_refresh_status);
302
- jQuery("#wp-live-chat-minimize").hide();
303
- document.getElementById('wplc_chatmsg').disabled = true;
304
- }
305
- //console.log("wplc_update_user_chat_response "+response);
306
- });
307
-
308
-
309
- }
310
-
311
- function wpcl_user_auto_update_chat_box(cid) {
312
- var data = {
313
- action: 'wplc_update_user_chat_boxes',
314
- cid: cid,
315
- security: wplc_nonce,
316
- wplc_wp_load_url: wplc_wp_load_url
317
- };
318
- jQuery.post(wplc_ajaxurl, data, function(response) {
319
- //console.log("wplc_update_user_chat_boxes");
320
- jQuery("#wplc_chatbox").append(response);
321
- if(response){
322
- var height = jQuery('#wplc_chatbox')[0].scrollHeight;
323
- jQuery('#wplc_chatbox').scrollTop(height);
324
- }
325
-
326
- });
327
-
328
- }
329
 
330
-
331
- // user pushed the X button, dont show chat window
332
- if (wplc_check_hide_cookie === "yes" /*&& wplc_check_cookie_stage !== '1'*/) {
333
- jQuery("#wp-live-chat").hide();
334
- }
335
- // else if (wplc_check_cookie_stage === "1") {
336
- // jQuery("#wp-live-chat").hide();
337
- // }
338
- else {
339
 
340
- // First time visitor has visited the site, show chat window and set cookie
341
- if (typeof wplc_check_cookie_id === "undefined" || wplc_check_cookie_id == null) {
342
- wplc_dc = setTimeout(function (){jQuery("#wp-live-chat").css({ "display" : "block" }); wplc_relay_user_stage(1,''); }, window.wplc_delay);
343
- }
344
- // user has been here before, show different chat windows depending on which stage of the chat funnel he/she was in
345
- else {
346
-
347
- jQuery("#wplc_cid").val(wplc_check_cookie_id);
348
-
349
-
350
-
351
- jQuery("#wp-live-chat-1").show();
352
- jQuery("#wp-live-chat-2").hide();
353
- jQuery("#wp-live-chat-3").hide();
354
- jQuery("#wp-live-chat-4").hide();
355
- jQuery("#wp-live-chat-react").show();
356
- jQuery("#wp-live-chat-minimize").show();
357
- jQuery("#wp-live-chat-close").show();
358
 
359
-
360
-
361
- jQuery("#wp-live-chat").css({ "display" : "block" });
362
-
363
-
364
-
365
-
366
- var data = {
367
- action: 'wplc_user_reactivate_chat',
368
- security: wplc_nonce,
369
- cid: wplc_check_cookie_id,
370
- wplc_wp_load_url: wplc_wp_load_url
371
- };
372
- jQuery.post(wplc_ajaxurl, data, function(response) {
373
- //console.log("wplc_user_reactivate_chat");
374
- jQuery("#wp-live-chat-react").hide();
375
- jQuery("#wp-live-chat-4").show();
376
- jQuery("#wplc_chatmsg").focus();
377
- jQuery("#wp-live-chat-close").show();
378
- jQuery("#wp-live-chat-minimize").show();
379
-
380
- jQuery("#wplc_chatbox").append(response);
381
- var height = jQuery('#wplc_chatbox')[0].scrollHeight;
382
- jQuery('#wplc_chatbox').scrollTop(height);
383
-
384
- wplc_user_auto_refresh = setInterval(function (){wpcl_user_auto_update_chat_box(wplc_check_cookie_id);}, 3500);
385
- wplc_user_auto_refresh_status = setInterval(function (){wpcl_user_auto_update_chat_status(wplc_check_cookie_id);}, 3500);
386
- // set coorect curser
387
- jQuery("#wp-live-chat-1").css('cursor', 'default');
388
- //set correct cookie
389
- jQuery.cookie('wplc_stage', 4, { expires: 1, path: '/' });
390
- //if chat was minimized
391
- if(wplc_check_minimize_cookie === 'yes'){
392
- jQuery("#wp-live-chat-1").show();
393
- jQuery("#wp-live-chat-1").css('cursor', 'pointer');
394
- jQuery("#wp-live-chat-2").hide();
395
- jQuery("#wp-live-chat-3").hide();
396
- jQuery("#wp-live-chat-4").hide();
397
- jQuery("#wp-live-chat-minimize").hide();
398
- }
399
-
400
- });
401
- }
402
- }
403
- });
1
  /*
2
+ * Cookie Status
3
+ *
4
+ * 1 - complete - user has left site
5
+ * 2 - pending - user waiting for chat to be answered by admin
6
+ * 3 - active chat - user and admin are chatting
7
+ * 4 - deleted
8
+ * 5 - browsing - no data has been inputted
9
+ * 6 - requesting chat - admin has requested a chat with user
10
+ * 7 - timed out - visitor has timed out
11
+ * 8 - complete but now browsing again
12
+ * 9 - user closed chat before starting chat
13
+ * 10 - user minimized active chat
14
  *
 
 
 
 
15
  */
16
+
17
  jQuery(document).ready(function() {
18
+
19
+
20
+ var wplc_cid;
21
+ var wplc_check_hide_cookie;
22
+ var wplc_chat_status = "";
23
+ var wplc_cookie_name = "";
24
+ var wplc_cookie_email = "";
25
+ var wplc_init_chat_box_check = true;
26
+ var wplc_cid = null;
27
+
28
+ wplc_cid = jQuery.cookie('wplc_cid');
29
+
30
+ wplc_check_hide_cookie = jQuery.cookie('wplc_hide');
31
+ wplc_check_minimize_cookie = jQuery.cookie('wplc_minimize');
32
+ wplc_chat_status = jQuery.cookie('wplc_chat_status');
33
+ wplc_cookie_name = jQuery.cookie('wplc_name');
34
+ wplc_cookie_email = jQuery.cookie('wplc_email');
35
+
36
+ // Always start on 5 - ajax will then return chat status if active
37
+ jQuery.cookie('wplc_chat_status', 5, { expires: 1, path: '/' });
38
+ wplc_chat_status = 5;
39
+
40
+
41
+
42
+ var data = {
43
+ action: 'wplc_call_to_server_visitor',
44
+ security: wplc_nonce,
45
+ cid:wplc_cid,
46
+ wplc_name: wplc_cookie_name,
47
+ wplc_email: wplc_cookie_email,
48
+ status:wplc_chat_status
49
+ };
50
+ // ajax long polling function
51
+ wplc_call_to_server_chat(data);
52
+
53
+ if(wplc_cid !== null && wplc_init_chat_box_check == true){
54
+ wplc_init_chat_box(wplc_cid,wplc_chat_status);
55
+ }
56
+
57
+ var wplc_run = true;
58
+ function wplc_call_to_server_chat(data) {
59
+ jQuery.ajax({
60
+ url: wplc_ajaxurl,
61
+ data:data,
62
+ type:"POST",
63
+ success: function(response) {
64
+ if(response){
65
+ //console.log(response);
66
+ response = JSON.parse(response);
67
+
68
+ // set vars and cookies
69
+ data['wplc_name'] = response['wplc_name'];
70
+ data['wplc_email'] = response['wplc_email'];
71
+ data['action_2'] = "";
72
+ data['cid'] = response['cid'];
73
+ jQuery.cookie('wplc_cid', response['cid'], { expires: 1, path: '/' });
74
+ jQuery.cookie('wplc_name', response['wplc_name'], { expires: 1, path: '/' });
75
+ jQuery.cookie('wplc_email', response['wplc_email'], { expires: 1, path: '/' });
76
+ wplc_cid = jQuery.trim(response['cid']);
77
+ wplc_chat_status = response['status'];
78
+ //console.log(data);
79
+
80
+ // handle response
81
+ if(data['status'] == response['status']){
82
+ if(data['status'] == 5 && wplc_init_chat_box_check == true){ // open chat box on load
83
+ wplc_init_chat_box(data['cid'], data['status']);
84
+ }
85
+ if(response['status'] == 3 && response['data'] != null){ // if active and data is returned
86
+ jQuery("#wplc_chatbox").append(response['data']);
87
+ if(response['data']){
88
+ var height = jQuery('#wplc_chatbox')[0].scrollHeight;
89
+ jQuery('#wplc_chatbox').scrollTop(height);
90
+ }
91
+ }
92
+ } else {
93
+
94
+ data['status'] = wplc_chat_status;
95
+ jQuery.cookie('wplc_chat_status', wplc_chat_status, { expires: 1, path: '/' });
96
+ if(response['status'] == 0){ // no answer from admin
97
+ jQuery("#wp-live-chat-3").hide();
98
+ jQuery("#wp-live-chat-react").show().empty().append("<center>"+response['data']+"</center>");
99
+ }
100
+ else if(response['status'] == 8){ // chat has been ended by admin
101
+ var height = jQuery('#wplc_chatbox')[0].scrollHeight;
102
+ jQuery('#wplc_chatbox').scrollTop(height);
103
+ jQuery("#wp-live-chat-minimize").hide();
104
+ document.getElementById('wplc_chatmsg').disabled = true;
105
+ jQuery("#wplc_chatbox").append("<em>"+response['data']+"</em><br />");
106
+ }
107
+ else if(response['status'] == 3 || response['status'] == 10){ // re-initialize chat
108
+ jQuery("#wplc_cid").val(wplc_cid);
109
+ if(response['status'] == 3){ // only if not minimized open aswell
110
+ open_chat();
111
+ }
112
+ if(response['data'] != null){ // append messages to chat area
113
+ jQuery("#wplc_chatbox").append(response['data']);
114
+ if(response['data']){
115
+ var height = jQuery('#wplc_chatbox')[0].scrollHeight;
116
+ jQuery('#wplc_chatbox').scrollTop(height);
117
+ }
118
+ }
119
+ }
120
+
121
+ }
122
+ }
123
+ },
124
+ error: function(jqXHR, exception) {
125
+ if (jqXHR.status == 404) {
126
+ console.log('Requested page not found. [404]');
127
+ wplc_run = false;
128
+ } else if (jqXHR.status == 500) {
129
+ console.log('Internal Server Error [500].');
130
+ wplc_run = false;
131
+ } else if (exception === 'parsererror') {
132
+ console.log('Requested JSON parse failed.');
133
+ wplc_run = false;
134
+ } else if (exception === 'abort') {
135
+ console.log('Ajax request aborted.');
136
+ wplc_run = false;
137
+ } else {
138
+ console.log('Uncaught Error.\n' + jqXHR.responseText);
139
+ wplc_run = false;
140
+ }
141
+ },
142
+ complete: function(response){
143
+ //console.log(wplc_run);
144
+ if (wplc_run) {
145
+ wplc_call_to_server_chat(data);
146
+ }
147
+ },
148
+ timeout: 120000
149
+ });
150
+ };
151
+
152
+ function wplc_init_chat_box(cid, status){
153
+
154
+ if(wplc_chat_status == 9 && wplc_check_hide_cookie == "yes"){
155
+
156
+ } else {
157
+ if(wplc_check_hide_cookie != "yes"){
158
+ wplc_dc = setTimeout(function (){
159
+ jQuery("#wp-live-chat").css({ "display" : "block" });
160
+ }, window.wplc_delay);
161
+ }
162
+
163
+ }
164
+ wplc_init_chat_box = false;
165
+ }
166
+
167
+
168
+
169
+
170
+ //placeholder text fix for IE
171
  jQuery('[placeholder]').focus(function() {
172
  var input = jQuery(this);
173
  if (input.val() == input.attr('placeholder')) {
174
+ input.val('');
175
+ input.removeClass('placeholder');
176
  }
177
+ }).blur(function() {
178
  var input = jQuery(this);
179
  if (input.val() == '' || input.val() == input.attr('placeholder')) {
180
+ input.addClass('placeholder');
181
+ input.val(input.attr('placeholder'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  }
183
+ }).blur();
184
 
185
+
186
  /* minimize chat window */
187
  jQuery("#wp-live-chat-minimize").on("click", function() {
188
  if(jQuery("#wp-live-chat").attr("original_pos") === "right"){
196
  jQuery("#wp-live-chat-2").hide();
197
  jQuery("#wp-live-chat-3").hide();
198
  jQuery("#wp-live-chat-4").hide();
199
+ jQuery("#wp-live-chat-react").hide();
200
  jQuery("#wp-live-chat-minimize").hide();
201
  jQuery.cookie('wplc_minimize', "yes", { expires: 1, path: '/' });
202
  var data = {
203
  action: 'wplc_user_minimize_chat',
204
  security: wplc_nonce,
205
+ cid: wplc_cid
206
  };
207
+
208
  jQuery.post(wplc_ajaxurl, data, function(response) {
209
+ //console.log(wplc_cid);
210
+ });
211
+
212
  });
213
  /* close chat window */
214
  jQuery("#wp-live-chat-close").on("click", function() {
215
+
216
  jQuery("#wp-live-chat").hide();
217
  jQuery("#wp-live-chat-1").hide();
218
  jQuery("#wp-live-chat-2").hide();
219
  jQuery("#wp-live-chat-3").hide();
220
  jQuery("#wp-live-chat-4").hide();
221
+ jQuery("#wp-live-chat-react").hide();
222
  jQuery("#wp-live-chat-minimize").hide();
223
+ jQuery.cookie('wplc_hide', wplc_hide_chat , { expires: 1, path: '/' });
 
 
 
 
 
224
  var data = {
225
  action: 'wplc_user_close_chat',
226
  security: wplc_nonce,
227
+ cid: wplc_cid,
228
+ status: wplc_chat_status
229
  };
230
  jQuery.post(wplc_ajaxurl, data, function(response) {
231
+ //console.log(response);
232
+
 
 
 
233
  });
234
+ });
235
+ //open chat window function
236
+
237
+ function open_chat(){
 
238
  //jQuery("#wp-live-chat-1").hide();
239
+ jQuery("#wp-live-chat-react").hide();
240
  jQuery("#wp-live-chat-header").css('cursor', 'all-scroll');
241
  jQuery("#wp-live-chat-1").css('cursor', 'all-scroll');
242
  jQuery.cookie('wplc_hide', "", { expires: 1, path: '/' });
243
  jQuery("#wp-live-chat-minimize").show();
244
  jQuery("#wp-live-chat-close").show();
 
245
  jQuery(function() {
246
  jQuery( "#wp-live-chat" ).draggable({
247
  handle: "#wp-live-chat-header",
251
  }
252
  });
253
  });
254
+
255
+ wplc_chat_status = jQuery.cookie('wplc_chat_status');
256
+
257
+ if (wplc_chat_status == 3 || wplc_chat_status == 10) {
258
  jQuery("#wp-live-chat-4").show();
259
  jQuery("#wplc_chatmsg").focus();
260
  jQuery("#wp-live-chat-2").hide();
261
+ jQuery("#wp-live-chat-3").hide();
262
  jQuery.cookie('wplc_minimize', "", { expires: 1, path: '/' });
263
+
264
  var data = {
265
  action: 'wplc_user_maximize_chat',
266
  security: wplc_nonce,
267
+ cid: wplc_cid
 
268
  };
269
  jQuery.post(wplc_ajaxurl, data, function(response) {
270
+
271
  //log("user maximized chat success");
272
  });
273
  }
274
+
275
+ else if (wplc_chat_status == 5 || wplc_chat_status == 9 || wplc_chat_status == 8){
276
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  if(jQuery("#wp-live-chat-2").is(":visible") === false && jQuery("#wp-live-chat-4").is(":visible") === false){
278
  jQuery("#wp-live-chat-2").show();
279
+ if(jQuery.cookie('wplc_email') !== "no email set"){
280
+ jQuery("#wplc_name").val(jQuery.cookie('wplc_name'));
281
+ jQuery("#wplc_email").val(jQuery.cookie('wplc_email'));
282
+ }
283
  }
284
  }
285
+ else if (wplc_chat_status == 2){
286
  jQuery("#wp-live-chat-3").show();
287
+ }
288
+ else if(wplc_chat_status == 1){
289
+ jQuery("#wp-live-chat-4").show();
290
+ jQuery("#wplc_chatbox").append("The chat has been ended by the operator.<br />");
291
+ var height = jQuery('#wplc_chatbox')[0].scrollHeight;
292
+ jQuery('#wplc_chatbox').scrollTop(height);
293
+ jQuery("#wp-live-chat-minimize").hide();
294
+ document.getElementById('wplc_chatmsg').disabled = true;
295
+ }
296
+
297
+ }
298
+ //opens chat when clicked on top bar
299
+ jQuery("#wp-live-chat-1").on("click", function() {
300
+ open_chat();
301
  });
302
+ //allows for a class to open chat window now
303
+ jQuery(".wp-live-chat-now").on("click", function() {
304
+ open_chat();
305
+ });
306
+
307
+
308
+
309
 
310
  jQuery("#wplc_start_chat_btn").on("click", function() {
311
  var wplc_name = jQuery("#wplc_name").val();
316
  if (!testEmail.test(wplc_email)){
317
  alert("Please Enter a Valid Email Address"); return false;
318
  }
 
319
  jQuery("#wp-live-chat-2").hide();
320
  jQuery("#wp-live-chat-3").show();
321
 
322
  var date = new Date();
323
  date.setTime(date.getTime() + (2 * 60 * 1000));
 
 
 
 
324
 
325
+ wplc_cid = jQuery.cookie('wplc_cid');
326
+
327
+ if (typeof wplc_cid !== "undefined" && wplc_cid !== null) { // we've already recorded a cookie for this person
328
+ var data = {
329
+ action: 'wplc_start_chat',
330
+ security: wplc_nonce,
331
+ name: wplc_name,
332
+ email: wplc_email,
333
+ cid: wplc_cid
334
+ };
335
+ } else { // no cookie recorded yet for this visitor
336
+ var data = {
337
+ action: 'wplc_start_chat',
338
+ security: wplc_nonce,
339
+ name: wplc_name,
340
+ email: wplc_email
341
+ };
342
+ }
343
+ //changed ajax url so wp_mail function will work and not stop plugin from alerting admin there is a pending chat
344
  jQuery.post(wplc_ajaxurl, data, function(response) {
345
+ jQuery.cookie('wplc_chat_status', 2, { expires: date, path: '/' });
346
+ jQuery.cookie('wplc_name', wplc_name, { path: '/' } );
347
+ jQuery.cookie('wplc_email', wplc_email, { path: '/' } );
348
  //console.log("wplc_start_chat");
349
+ wplc_cid = jQuery.trim(response);
 
 
 
350
  });
351
  });
352
 
353
+
354
+
355
+
 
 
 
 
 
 
 
 
 
 
 
 
 
356
 
 
 
 
 
 
 
357
 
 
 
 
 
 
 
 
 
358
  jQuery("#wplc_chatmsg").keyup(function(event){
359
  if(event.keyCode == 13){
360
  jQuery("#wplc_send_msg").trigger("click");
377
  action: 'wplc_user_send_msg',
378
  security: wplc_nonce,
379
  cid: wplc_cid,
380
+ msg: wplc_chat
 
381
  };
382
  jQuery.post(wplc_ajaxurl, data, function(response) {
383
  //console.log("wplc_user_send_msg");
384
  });
385
 
386
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
 
388
+
389
+ });
 
 
 
 
 
 
 
390
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/wplivechat-en_EN.mo CHANGED
Binary file
languages/wplivechat-en_EN.po CHANGED
@@ -1,338 +1,799 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: wp live chat support\n"
4
- "POT-Creation-Date: 2014-05-29 10:46+0200\n"
5
- "PO-Revision-Date: 2014-05-29 10:46+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "X-Generator: Poedit 1.5.7\n"
12
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
 
 
15
  "live-chat-support-pro\n"
16
 
17
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:25
18
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:94
 
 
 
 
 
 
 
 
 
 
 
19
  msgid "IP"
20
  msgstr ""
21
 
22
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:26
23
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:95
24
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:320
25
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:408
26
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:431
 
 
 
 
27
  msgid "Name"
28
  msgstr ""
29
 
30
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:27
31
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:96
32
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:321
33
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:412
34
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:434
 
 
 
35
  msgid "Email"
36
  msgstr ""
37
 
38
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:28
39
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:97
40
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:322
 
41
  msgid "URL"
42
  msgstr ""
43
 
44
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:29
45
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:98
46
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:323
 
47
  msgid "Status"
48
  msgstr ""
49
 
50
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:30
51
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:99
52
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:324
 
53
  msgid "Action"
54
  msgstr ""
55
 
56
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:37
57
- msgid "No visitors on-line at the moment"
 
58
  msgstr ""
59
 
60
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:46
61
- msgid "Initiate Chat"
62
  msgstr ""
63
 
64
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:106
65
- msgid "No chat sessions available at the moment"
66
  msgstr ""
67
 
68
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:128
69
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:68
70
- msgid "Name "
71
  msgstr ""
72
 
73
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:141
74
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:80
75
- msgid "Picture"
76
  msgstr ""
77
 
78
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:143
79
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:87
80
- msgid "Upload Image"
81
  msgstr ""
82
 
83
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:153
84
- msgid "Chat Delay (seconds)"
85
  msgstr ""
86
 
87
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:164
88
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:115
89
- msgid "Chat notifications"
90
  msgstr ""
91
 
92
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:167
93
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:119
94
- msgid "Alert me via email as soon as someone wants to chat"
95
  msgstr ""
96
 
97
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:167
98
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:120
99
- msgid "(while online only)"
100
  msgstr ""
101
 
102
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:176
103
- msgid "Email address"
 
 
104
  msgstr ""
105
 
106
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:179
107
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:135
108
- msgid "Email address where offline messages are delivered to"
109
  msgstr ""
110
 
111
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:191
112
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:93
113
- msgid "Logo"
114
  msgstr ""
115
 
116
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:193
117
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:100
118
- msgid "Upload Logo"
 
119
  msgstr ""
120
 
121
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:205
122
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
123
- msgid "First Section Text"
124
  msgstr ""
125
 
126
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:214
127
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
128
- msgid "Intro Text"
129
  msgstr ""
130
 
131
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:220
132
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:228
133
- msgid "Second Section Text"
134
  msgstr ""
135
 
136
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:227
137
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:235
138
- msgid "Reactivate Chat Section Text"
139
  msgstr ""
140
 
141
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:235
142
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:243
143
- msgid "User chat welcome"
144
  msgstr ""
145
 
146
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:244
147
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:252
148
- msgid "Other text"
149
  msgstr ""
150
 
151
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:257
152
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:176
153
- msgid "Offline Chat Box Title"
 
 
154
  msgstr ""
155
 
156
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:265
157
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:184
158
- msgid "Offline Text Fields"
159
  msgstr ""
160
 
161
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:319
162
- msgid "Date"
163
  msgstr ""
164
 
165
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:330
166
- msgid "No chats available at the moment"
 
167
  msgstr ""
168
 
169
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:437
170
- msgid "Message"
 
171
  msgstr ""
172
 
173
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:461
174
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:655
175
- msgid "Send"
176
  msgstr ""
177
 
178
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:520
179
- msgid "Your settings have been saved."
180
  msgstr ""
181
 
182
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:541
183
- msgid "Chat sessions"
184
  msgstr ""
185
 
186
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:559
187
- msgid ""
188
- "Please note: This window must be open in order to receive new chat "
189
- "notifications."
190
  msgstr ""
191
 
192
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:564
 
193
  msgid "Visitors on site"
194
  msgstr ""
195
 
196
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:638
197
- msgid "Attempting to open the chat window... Please be patient."
 
 
 
 
 
 
 
 
 
 
 
 
198
  msgstr ""
199
 
200
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:643
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  msgid "End chat"
202
  msgstr ""
203
 
204
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:652
205
- msgid "Press ENTER to send your message"
 
206
  msgstr ""
207
 
208
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:829
 
209
  msgid "User has minimized the chat window"
210
  msgstr ""
211
 
212
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:835
213
- msgid "User has opened the chat window"
 
214
  msgstr ""
215
 
216
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:841
 
217
  msgid "User has closed and ended the chat"
218
  msgstr ""
219
 
220
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1006
221
- msgid ""
222
- "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
223
- "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
224
  msgstr ""
225
 
226
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1011
227
- msgid "An unknown error occurred"
 
 
 
 
 
 
 
 
 
228
  msgstr ""
229
 
230
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1066
231
- msgid "Live Chat"
 
232
  msgstr ""
233
 
234
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1067
235
- msgid "Settings"
236
  msgstr ""
237
 
238
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1068
239
- msgid "History"
 
240
  msgstr ""
241
 
242
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1070
243
- msgid "Error Log"
244
  msgstr ""
245
 
246
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  msgid "WP Live Chat Support Settings"
248
  msgstr ""
249
 
250
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:24
 
251
  msgid "General Settings"
252
  msgstr ""
253
 
254
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:25
 
255
  msgid "Chat Box"
256
  msgstr ""
257
 
258
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:26
259
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:127
 
 
260
  msgid "Offline Messages"
261
  msgstr ""
262
 
263
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:27
264
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:198
 
 
265
  msgid "Styling"
266
  msgstr ""
267
 
268
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:30
 
 
 
 
 
269
  msgid "Main Settings"
270
  msgstr ""
271
 
272
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:33
 
273
  msgid "Chat enabled"
274
  msgstr ""
275
 
276
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:36
 
277
  msgid "Yes"
278
  msgstr ""
279
 
280
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:37
 
281
  msgid "No"
282
  msgstr ""
283
 
284
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:43
 
285
  msgid "Hide Chat"
286
  msgstr ""
287
 
288
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  msgid "Chat Window Settings"
290
  msgstr ""
291
 
292
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:57
 
293
  msgid "Chat box alignment"
294
  msgstr ""
295
 
296
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:60
 
297
  msgid "Bottom left"
298
  msgstr ""
299
 
300
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:61
 
301
  msgid "Bottom right"
302
  msgstr ""
303
 
304
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  msgid "Chat delay (seconds)"
306
  msgstr ""
307
 
308
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:131
 
 
 
 
 
 
 
 
 
 
 
309
  msgid "Email Address"
310
  msgstr ""
311
 
312
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  msgid "Host"
314
  msgstr ""
315
 
316
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:151
317
  msgid "Port"
318
  msgstr ""
319
 
320
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:159
321
  msgid "Username"
322
  msgstr ""
323
 
324
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:167
325
  msgid "Password"
326
  msgstr ""
327
 
328
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:201
329
- msgid "Chat box fill color"
330
  msgstr ""
331
 
332
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:207
333
- msgid "Chat box font color"
334
  msgstr ""
335
 
336
- #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:262
337
- msgid "Save Settings"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: wplc\n"
4
+ "POT-Creation-Date: 2014-06-30 15:16+0200\n"
5
+ "PO-Revision-Date: 2014-06-30 15:16+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
15
+ "live-chat-support\n"
16
+ "X-Poedit-SearchPath-1: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
17
  "live-chat-support-pro\n"
18
 
19
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax.php:209
20
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:212
21
+ msgid "Admin has closed and ended the chat"
22
+ msgstr ""
23
+
24
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/ajax.php:233
25
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/ajax-pro.php:245
26
+ msgid "There is No Answer. Please Try Again Later"
27
+ msgstr ""
28
+
29
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:145
30
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:23
31
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:100
32
  msgid "IP"
33
  msgstr ""
34
 
35
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:146
36
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:169
37
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:71
38
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:24
39
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:101
40
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
41
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:303
42
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:401
43
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:419
44
  msgid "Name"
45
  msgstr ""
46
 
47
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:147
48
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:171
49
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:25
50
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:102
51
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
52
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:304
53
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:403
54
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:420
55
  msgid "Email"
56
  msgstr ""
57
 
58
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:148
59
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:26
60
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:103
61
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:305
62
  msgid "URL"
63
  msgstr ""
64
 
65
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:149
66
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:27
67
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:104
68
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:306
69
  msgid "Status"
70
  msgstr ""
71
 
72
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:150
73
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:28
74
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:105
75
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:307
76
  msgid "Action"
77
  msgstr ""
78
 
79
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:156
80
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:111
81
+ msgid "No chat sessions available at the moment"
82
  msgstr ""
83
 
84
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:393
85
+ msgid "complete"
86
  msgstr ""
87
 
88
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:396
89
+ msgid "pending"
90
  msgstr ""
91
 
92
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:399
93
+ msgid "active"
 
94
  msgstr ""
95
 
96
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:402
97
+ msgid "deleted"
 
98
  msgstr ""
99
 
100
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:405
101
+ msgid "browsing"
 
102
  msgstr ""
103
 
104
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:408
105
+ msgid "requesting chat"
106
  msgstr ""
107
 
108
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:411
109
+ msgid "Chat Ended - User still browsing"
 
110
  msgstr ""
111
 
112
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:414
113
+ msgid "User is browsing but doesn't want to chat"
 
114
  msgstr ""
115
 
116
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/functions.php:466
117
+ msgid "Get Pro Add-on to accept more chats"
 
118
  msgstr ""
119
 
120
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:81
121
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:436
122
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1198
123
+ msgid "Live Chat"
124
  msgstr ""
125
 
126
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:82
127
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1199
128
+ msgid "Settings"
129
  msgstr ""
130
 
131
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:83
132
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1200
133
+ msgid "History"
134
  msgstr ""
135
 
136
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:84
137
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:37
138
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1201
139
+ msgid "Feedback"
140
  msgstr ""
141
 
142
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:159
143
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:208
144
+ msgid "Questions?"
145
  msgstr ""
146
 
147
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:159
148
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:209
149
+ msgid "Chat with us"
150
  msgstr ""
151
 
152
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:173
153
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:215
154
+ msgid "Start Chat"
155
  msgstr ""
156
 
157
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:180
158
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:216
159
+ msgid "Connecting you to a sales person. Please be patient."
160
  msgstr ""
161
 
162
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:183
163
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:224
164
+ msgid "Reactivating your previous chat..."
165
  msgstr ""
166
 
167
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:187
168
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:681
169
+ msgid "Press ENTER to send your message"
170
  msgstr ""
171
 
172
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:191
173
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:544
174
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:456
175
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:684
176
+ msgid "Send"
177
  msgstr ""
178
 
179
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:402
180
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:202
181
+ msgid "Dear Pro User"
182
  msgstr ""
183
 
184
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:403
185
+ msgid "You are using an outdated version of WP Live Chat Support Pro. Please"
186
  msgstr ""
187
 
188
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:403
189
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:213
190
+ msgid "update to at least version"
191
  msgstr ""
192
 
193
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:403
194
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:213
195
+ msgid "to ensure all functionality is in working order"
196
  msgstr ""
197
 
198
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:405
199
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:215
200
+ msgid "If you are having difficulty updating the plugin, please contact"
201
  msgstr ""
202
 
203
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:430
204
+ msgid "Experiencing problems with the plugin?"
205
  msgstr ""
206
 
207
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:432
208
+ msgid "Review the documentation."
209
  msgstr ""
210
 
211
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:433
212
+ msgid "Or ask a question on our"
 
 
213
  msgstr ""
214
 
215
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:455
216
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:562
217
  msgid "Visitors on site"
218
  msgstr ""
219
 
220
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
221
+ msgid "With the Pro add-on of WP Live Chat Support, you can"
222
+ msgstr ""
223
+
224
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
225
+ msgid "see who's online and initiate chats"
226
+ msgstr ""
227
+
228
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
229
+ msgid "with your online visitors with the click of a button."
230
+ msgstr ""
231
+
232
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
233
+ msgid "Buy the Pro add-on now for only $29.95 once off. Free Updates FOREVER."
234
  msgstr ""
235
 
236
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:456
237
+ msgid "Buy the Pro add-on now for only $29.95 once off. Free Updates Forever."
238
+ msgstr ""
239
+
240
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:516
241
+ msgid "Previous"
242
+ msgstr ""
243
+
244
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:516
245
+ msgid "Active"
246
+ msgstr ""
247
+
248
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:534
249
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:672
250
  msgid "End chat"
251
  msgstr ""
252
 
253
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:644
254
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:799
255
+ msgid "User has opened the chat window"
256
  msgstr ""
257
 
258
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:649
259
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:804
260
  msgid "User has minimized the chat window"
261
  msgstr ""
262
 
263
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:654
264
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:809
265
+ msgid "User has maximized the chat window"
266
  msgstr ""
267
 
268
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:659
269
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:814
270
  msgid "User has closed and ended the chat"
271
  msgstr ""
272
 
273
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:856
274
+ msgid "WP Live Chat History"
 
 
275
  msgstr ""
276
 
277
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:861
278
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:47
279
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:78
280
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:94
281
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:110
282
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:126
283
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:143
284
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:164
285
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:178
286
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:228
287
+ msgid "Pro Add-on"
288
  msgstr ""
289
 
290
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:885
291
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:514
292
+ msgid "Your settings have been saved."
293
  msgstr ""
294
 
295
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:900
296
+ msgid "Thank You for your feedback!"
297
  msgstr ""
298
 
299
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:904
300
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:917
301
+ msgid "Thank you for your feedback. We will be in touch soon"
302
  msgstr ""
303
 
304
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/wp-live-chat-support.php:921
305
+ msgid "There was a problem sending your feedback. Please log your feedback on "
306
  msgstr ""
307
 
308
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:7
309
+ msgid "WP Live Chat Support Feedback"
310
+ msgstr ""
311
+
312
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:8
313
+ msgid "We'd love to hear your comments and/or suggestions"
314
+ msgstr ""
315
+
316
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:13
317
+ msgid "Your Name"
318
+ msgstr ""
319
+
320
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:21
321
+ msgid "Your Email"
322
+ msgstr ""
323
+
324
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:29
325
+ msgid "Your Website"
326
+ msgstr ""
327
+
328
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/feedback-page.php:48
329
+ msgid "Send Feedback"
330
+ msgstr ""
331
+
332
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:6
333
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:17
334
  msgid "WP Live Chat Support Settings"
335
  msgstr ""
336
 
337
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:19
338
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:29
339
  msgid "General Settings"
340
  msgstr ""
341
 
342
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:20
343
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:30
344
  msgid "Chat Box"
345
  msgstr ""
346
 
347
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:21
348
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:153
349
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:31
350
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:141
351
  msgid "Offline Messages"
352
  msgstr ""
353
 
354
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:22
355
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:190
356
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:32
357
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:226
358
  msgid "Styling"
359
  msgstr ""
360
 
361
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:23
362
+ msgid "Agents"
363
+ msgstr ""
364
+
365
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:26
366
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:36
367
  msgid "Main Settings"
368
  msgstr ""
369
 
370
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:29
371
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:39
372
  msgid "Chat enabled"
373
  msgstr ""
374
 
375
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:32
376
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:42
377
  msgid "Yes"
378
  msgstr ""
379
 
380
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:33
381
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:43
382
  msgid "No"
383
  msgstr ""
384
 
385
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:39
386
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:49
387
  msgid "Hide Chat"
388
  msgstr ""
389
 
390
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:40
391
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:50
392
+ msgid "Hides chat for 24hrs when user clicks X"
393
+ msgstr ""
394
+
395
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:46
396
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:77
397
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:93
398
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:109
399
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:125
400
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:142
401
+ msgid "available in the"
402
+ msgstr ""
403
+
404
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:48
405
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:79
406
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:95
407
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:111
408
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:127
409
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:144
410
+ msgid "only"
411
+ msgstr ""
412
+
413
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:57
414
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:60
415
  msgid "Chat Window Settings"
416
  msgstr ""
417
 
418
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:60
419
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:63
420
  msgid "Chat box alignment"
421
  msgstr ""
422
 
423
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:63
424
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:66
425
  msgid "Bottom left"
426
  msgstr ""
427
 
428
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:64
429
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:67
430
  msgid "Bottom right"
431
  msgstr ""
432
 
433
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:87
434
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:86
435
+ msgid "Picture"
436
+ msgstr ""
437
+
438
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:90
439
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:106
440
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:94
441
+ msgid "Upload Image"
442
+ msgstr ""
443
+
444
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:103
445
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:103
446
+ msgid "Logo"
447
+ msgstr ""
448
+
449
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:119
450
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:120
451
  msgid "Chat delay (seconds)"
452
  msgstr ""
453
 
454
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:135
455
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:129
456
+ msgid "Chat notifications"
457
+ msgstr ""
458
+
459
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:139
460
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:133
461
+ msgid "Alert me via email as soon as someone wants to chat"
462
+ msgstr ""
463
+
464
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:157
465
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:145
466
  msgid "Email Address"
467
  msgstr ""
468
 
469
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:163
470
+ msgid "Get offline messages with the "
471
+ msgstr ""
472
+
473
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:172
474
+ msgid "Offline text"
475
+ msgstr ""
476
+
477
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:177
478
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:227
479
+ msgid "Edit these text fields using the "
480
+ msgstr ""
481
+
482
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:193
483
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:229
484
+ msgid "Chat box fill color"
485
+ msgstr ""
486
+
487
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:199
488
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:235
489
+ msgid "Chat box font color"
490
+ msgstr ""
491
+
492
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:206
493
+ msgid "First section text"
494
+ msgstr ""
495
+
496
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:213
497
+ msgid "Second section text"
498
+ msgstr ""
499
+
500
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:222
501
+ msgid "Reactivate chat section text"
502
+ msgstr ""
503
+
504
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:239
505
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:294
506
+ msgid "Multiple Agents"
507
+ msgstr ""
508
+
509
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
510
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:295
511
+ msgid "Get"
512
+ msgstr ""
513
+
514
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
515
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:295
516
+ msgid "Multiple agent support"
517
+ msgstr ""
518
+
519
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:240
520
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:295
521
+ msgid "for only $39.95"
522
+ msgstr ""
523
+
524
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/settings_page.php:243
525
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:299
526
+ msgid "Save Settings"
527
+ msgstr ""
528
+
529
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:4
530
+ msgid "Welcome to "
531
+ msgstr ""
532
+
533
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:15
534
+ msgid "WordPress.org plugin repository "
535
+ msgstr ""
536
+
537
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:18
538
+ msgid "Search Term"
539
+ msgstr ""
540
+
541
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:22
542
+ msgid "Google or other search Engine"
543
+ msgstr ""
544
+
545
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:28
546
+ msgid "Friend recommendation"
547
+ msgstr ""
548
+
549
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:34
550
+ msgid "Other"
551
+ msgstr ""
552
+
553
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:38
554
+ msgid "Please Explain"
555
+ msgstr ""
556
+
557
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:47
558
+ msgid "Submit"
559
+ msgstr ""
560
+
561
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support/includes/welcome_page.php:49
562
+ msgid "Skip"
563
+ msgstr ""
564
+
565
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:46
566
+ msgid "Initiate Chat"
567
+ msgstr ""
568
+
569
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:48
570
+ msgid "You must be a chat agent to initiate chats"
571
+ msgstr ""
572
+
573
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:66
574
+ msgid "No visitors on-line at the moment"
575
+ msgstr ""
576
+
577
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:125
578
+ msgid "Accept Chat"
579
+ msgstr ""
580
+
581
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:128
582
+ msgid "You must be a chat agent to answer chats"
583
+ msgstr ""
584
+
585
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:135
586
+ msgid "Open Chat Window"
587
+ msgstr ""
588
+
589
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:138
590
+ msgid "Chat has been answered by another agent"
591
+ msgstr ""
592
+
593
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:141
594
+ msgid "Chat has been Accpted By Chat Agent "
595
+ msgstr ""
596
+
597
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:170
598
+ msgid "WP Live Chat Support - Offline Message from"
599
+ msgstr ""
600
+
601
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
602
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:421
603
+ msgid "Message"
604
+ msgstr ""
605
+
606
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:171
607
+ msgid "Via WP Live Chat Support"
608
+ msgstr ""
609
+
610
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:225
611
+ msgid "Alert: Someone wants to chat with you on "
612
+ msgstr ""
613
+
614
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:226
615
+ msgid "Someone wants to chat with you on your website"
616
+ msgstr ""
617
+
618
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:226
619
+ msgid "Log in"
620
+ msgstr ""
621
+
622
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:203
623
+ msgid ""
624
+ "WP Live Chat Support Pro requires WP Live Chat Support to function. You Can "
625
+ "download the latest copy from"
626
+ msgstr ""
627
+
628
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:212
629
+ msgid "Dear User"
630
+ msgstr ""
631
+
632
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:213
633
+ msgid "You are using an outdated version of WP Live Chat Support Basic. Please"
634
+ msgstr ""
635
+
636
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:302
637
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:661
638
+ msgid "Date"
639
+ msgstr ""
640
+
641
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:313
642
+ msgid "No chats available at the moment"
643
+ msgstr ""
644
+
645
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:423
646
+ msgid "Send message"
647
+ msgstr ""
648
+
649
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:535
650
+ msgid "Chat sessions"
651
+ msgstr ""
652
+
653
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:557
654
+ msgid ""
655
+ "Please note: This window must be open in order to receive new chat "
656
+ "notifications."
657
+ msgstr ""
658
+
659
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:651
660
+ msgid "Chat with"
661
+ msgstr ""
662
+
663
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:658
664
+ msgid "Email address"
665
+ msgstr ""
666
+
667
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:659
668
+ msgid "IP Address"
669
+ msgstr ""
670
+
671
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:660
672
+ msgid "From URL"
673
+ msgstr ""
674
+
675
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:660
676
+ msgid "open"
677
+ msgstr ""
678
+
679
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:667
680
+ msgid "Attempting to open the chat window... Please be patient."
681
+ msgstr ""
682
+
683
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:735
684
+ msgid "This chat has already been answered. Please close the chat window"
685
+ msgstr ""
686
+
687
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1111
688
+ msgid ""
689
+ "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
690
+ "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
691
+ msgstr ""
692
+
693
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1116
694
+ msgid "An unknown error occurred"
695
+ msgstr ""
696
+
697
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1203
698
+ msgid "Error Log"
699
+ msgstr ""
700
+
701
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:33
702
+ msgid "Chat Agents"
703
+ msgstr ""
704
+
705
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:74
706
+ msgid "Name "
707
+ msgstr ""
708
+
709
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:96
710
+ msgid "Remove Image"
711
+ msgstr ""
712
+
713
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:97
714
+ msgid "Recomended Size 40px x 40px"
715
+ msgstr ""
716
+
717
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:111
718
+ msgid "Upload Logo"
719
+ msgstr ""
720
+
721
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:113
722
+ msgid "Remove Logo"
723
+ msgstr ""
724
+
725
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:114
726
+ msgid "Recomended Size 250px x 40px"
727
+ msgstr ""
728
+
729
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:123
730
+ msgid "how long it takes for your chat window to pop up"
731
+ msgstr ""
732
+
733
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:134
734
+ msgid "(while online only)"
735
+ msgstr ""
736
+
737
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:149
738
+ msgid "Email address where offline messages are delivered to"
739
+ msgstr ""
740
+
741
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:157
742
+ msgid "Sending Method"
743
+ msgstr ""
744
+
745
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:158
746
+ msgid "WP Mail"
747
+ msgstr ""
748
+
749
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:159
750
+ msgid "PHP Mailer"
751
+ msgstr ""
752
+
753
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:171
754
  msgid "Host"
755
  msgstr ""
756
 
757
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:179
758
  msgid "Port"
759
  msgstr ""
760
 
761
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:187
762
  msgid "Username"
763
  msgstr ""
764
 
765
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:195
766
  msgid "Password"
767
  msgstr ""
768
 
769
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:204
770
+ msgid "Offline Chat Box Title"
771
  msgstr ""
772
 
773
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:212
774
+ msgid "Offline Text Fields"
775
  msgstr ""
776
 
777
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:241
778
+ msgid "First Section Text"
779
+ msgstr ""
780
+
781
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:250
782
+ msgid "Intro Text"
783
+ msgstr ""
784
+
785
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:256
786
+ msgid "Second Section Text"
787
+ msgstr ""
788
+
789
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:263
790
+ msgid "Reactivate Chat Section Text"
791
+ msgstr ""
792
+
793
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:271
794
+ msgid "User chat welcome"
795
+ msgstr ""
796
+
797
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:280
798
+ msgid "Other text"
799
  msgstr ""
languages/wplivechat-zh_CN.mo ADDED
Binary file
languages/wplivechat-zh_CN.po ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Translate into Chinese\n"
4
+ "POT-Creation-Date: 2014-05-29 10:46+0200\n"
5
+ "PO-Revision-Date: 2014-05-29 18:49+0800\n"
6
+ "Last-Translator: janfeng <janfeng@foxmail.com>\n"
7
+ "Language-Team: janfeng <janfeng@foxmail.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
15
+ "live-chat-support-pro\n"
16
+
17
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:25
18
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:94
19
+ msgid "IP"
20
+ msgstr "网络地址"
21
+
22
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:26
23
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:95
24
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:320
25
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:408
26
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:431
27
+ msgid "Name"
28
+ msgstr "昵称"
29
+
30
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:27
31
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:96
32
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:321
33
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:412
34
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:434
35
+ msgid "Email"
36
+ msgstr "邮箱"
37
+
38
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:28
39
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:97
40
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:322
41
+ msgid "URL"
42
+ msgstr "网址"
43
+
44
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:29
45
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:98
46
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:323
47
+ msgid "Status"
48
+ msgstr "状态"
49
+
50
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:30
51
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:99
52
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:324
53
+ msgid "Action"
54
+ msgstr "动作"
55
+
56
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:37
57
+ msgid "No visitors on-line at the moment"
58
+ msgstr "目前没有访问在线"
59
+
60
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:46
61
+ msgid "Initiate Chat"
62
+ msgstr "发起聊天"
63
+
64
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:106
65
+ msgid "No chat sessions available at the moment"
66
+ msgstr "目前没有进行聊天"
67
+
68
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:128
69
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:68
70
+ msgid "Name "
71
+ msgstr "昵称"
72
+
73
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:141
74
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:80
75
+ msgid "Picture"
76
+ msgstr "图片"
77
+
78
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:143
79
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:87
80
+ msgid "Upload Image"
81
+ msgstr "上传图片"
82
+
83
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:153
84
+ msgid "Chat Delay (seconds)"
85
+ msgstr "聊天延迟(秒)"
86
+
87
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:164
88
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:115
89
+ msgid "Chat notifications"
90
+ msgstr "聊天通知"
91
+
92
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:167
93
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:119
94
+ msgid "Alert me via email as soon as someone wants to chat"
95
+ msgstr "如果有人需要聊天,通过邮箱进行通知"
96
+
97
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:167
98
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:120
99
+ msgid "(while online only)"
100
+ msgstr "(限同时在线)"
101
+
102
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:176
103
+ msgid "Email address"
104
+ msgstr "邮箱地址"
105
+
106
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:179
107
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:135
108
+ msgid "Email address where offline messages are delivered to"
109
+ msgstr "离线消息将会传送到电子邮件地址"
110
+
111
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:191
112
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:93
113
+ msgid "Logo"
114
+ msgstr "图标"
115
+
116
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:193
117
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:100
118
+ msgid "Upload Logo"
119
+ msgstr "上传图标"
120
+
121
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:205
122
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
123
+ msgid "First Section Text"
124
+ msgstr "第一段文字"
125
+
126
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:214
127
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
128
+ msgid "Intro Text"
129
+ msgstr "介绍文字"
130
+
131
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:220
132
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:228
133
+ msgid "Second Section Text"
134
+ msgstr "第二部分文字"
135
+
136
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:227
137
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:235
138
+ msgid "Reactivate Chat Section Text"
139
+ msgstr "激活文本聊天部分"
140
+
141
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:235
142
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:243
143
+ msgid "User chat welcome"
144
+ msgstr "用户聊天欢迎消息"
145
+
146
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:244
147
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:252
148
+ msgid "Other text"
149
+ msgstr "其它文字"
150
+
151
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:257
152
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:176
153
+ msgid "Offline Chat Box Title"
154
+ msgstr "离线文字"
155
+
156
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:265
157
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:184
158
+ msgid "Offline Text Fields"
159
+ msgstr "离线文字字段"
160
+
161
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:319
162
+ msgid "Date"
163
+ msgstr "时间"
164
+
165
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:330
166
+ msgid "No chats available at the moment"
167
+ msgstr "目前没有聊天记录"
168
+
169
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:437
170
+ msgid "Message"
171
+ msgstr "信息"
172
+
173
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:461
174
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:655
175
+ msgid "Send"
176
+ msgstr "发送"
177
+
178
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:520
179
+ msgid "Your settings have been saved."
180
+ msgstr "您的设置已经保存。"
181
+
182
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:541
183
+ msgid "Chat sessions"
184
+ msgstr "聊天会话"
185
+
186
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:559
187
+ msgid ""
188
+ "Please note: This window must be open in order to receive new chat "
189
+ "notifications."
190
+ msgstr "注意:聊天窗口务必是打开状态的,以便接收新的聊天通知。"
191
+
192
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:564
193
+ msgid "Visitors on site"
194
+ msgstr "网站上的访客"
195
+
196
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:638
197
+ msgid "Attempting to open the chat window... Please be patient."
198
+ msgstr "正在打开聊天窗口...请耐心等待。"
199
+
200
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:643
201
+ msgid "End chat"
202
+ msgstr "结束谈话"
203
+
204
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:652
205
+ msgid "Press ENTER to send your message"
206
+ msgstr "按回车键发送消息"
207
+
208
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:829
209
+ msgid "User has minimized the chat window"
210
+ msgstr "用户缩小聊天窗口"
211
+
212
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:835
213
+ msgid "User has opened the chat window"
214
+ msgstr "用户打开聊天窗口"
215
+
216
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:841
217
+ msgid "User has closed and ended the chat"
218
+ msgstr "用户关闭并结束聊天"
219
+
220
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1006
221
+ msgid ""
222
+ "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
223
+ "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
224
+ msgstr ""
225
+ "API请求过程中发生了意外HTTP错误。</p> <p><a href=\"?\" onclick=\"document."
226
+ "location.reload(); return false;\">重试</a>"
227
+
228
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1011
229
+ msgid "An unknown error occurred"
230
+ msgstr "发生未知错误"
231
+
232
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1066
233
+ msgid "Live Chat"
234
+ msgstr "在线聊天"
235
+
236
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1067
237
+ msgid "Settings"
238
+ msgstr "设置"
239
+
240
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1068
241
+ msgid "History"
242
+ msgstr "历史"
243
+
244
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1070
245
+ msgid "Error Log"
246
+ msgstr "错误记录"
247
+
248
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:12
249
+ msgid "WP Live Chat Support Settings"
250
+ msgstr "WP Live Chat Support 设置"
251
+
252
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:24
253
+ msgid "General Settings"
254
+ msgstr "主要设置"
255
+
256
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:25
257
+ msgid "Chat Box"
258
+ msgstr "聊天框"
259
+
260
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:26
261
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:127
262
+ msgid "Offline Messages"
263
+ msgstr "离线消息"
264
+
265
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:27
266
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:198
267
+ msgid "Styling"
268
+ msgstr "形象"
269
+
270
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:30
271
+ msgid "Main Settings"
272
+ msgstr "主要设置"
273
+
274
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:33
275
+ msgid "Chat enabled"
276
+ msgstr "启用聊天"
277
+
278
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:36
279
+ msgid "Yes"
280
+ msgstr "是"
281
+
282
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:37
283
+ msgid "No"
284
+ msgstr "否"
285
+
286
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:43
287
+ msgid "Hide Chat"
288
+ msgstr "隐藏聊天"
289
+
290
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:54
291
+ msgid "Chat Window Settings"
292
+ msgstr "聊天窗口设置"
293
+
294
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:57
295
+ msgid "Chat box alignment"
296
+ msgstr "聊天窗口对齐"
297
+
298
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:60
299
+ msgid "Bottom left"
300
+ msgstr "左下"
301
+
302
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:61
303
+ msgid "Bottom right"
304
+ msgstr "右下"
305
+
306
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:106
307
+ msgid "Chat delay (seconds)"
308
+ msgstr "聊天延迟(秒)"
309
+
310
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:131
311
+ msgid "Email Address"
312
+ msgstr "邮箱地址"
313
+
314
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:143
315
+ msgid "Host"
316
+ msgstr "主机"
317
+
318
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:151
319
+ msgid "Port"
320
+ msgstr "端口"
321
+
322
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:159
323
+ msgid "Username"
324
+ msgstr "用户名"
325
+
326
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:167
327
+ msgid "Password"
328
+ msgstr "密码"
329
+
330
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:201
331
+ msgid "Chat box fill color"
332
+ msgstr "聊天框填充颜色"
333
+
334
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:207
335
+ msgid "Chat box font color"
336
+ msgstr "聊天盒子字体颜色"
337
+
338
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:262
339
+ msgid "Save Settings"
340
+ msgstr "保存设置"
languages/wplivechat-zh_TW.mo ADDED
Binary file
languages/wplivechat-zh_TW.po ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Translate into Chinese\n"
4
+ "POT-Creation-Date: 2014-05-29 10:46+0200\n"
5
+ "PO-Revision-Date: 2014-05-29 19:15+0800\n"
6
+ "Last-Translator: janfeng <janfeng@foxmail.com>\n"
7
+ "Language-Team: janfeng <janfeng@foxmail.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
15
+ "live-chat-support-pro\n"
16
+
17
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:25
18
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:94
19
+ msgid "IP"
20
+ msgstr "網絡地址"
21
+
22
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:26
23
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:95
24
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:320
25
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:408
26
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:431
27
+ msgid "Name"
28
+ msgstr "昵稱"
29
+
30
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:27
31
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:96
32
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:321
33
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:412
34
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:434
35
+ msgid "Email"
36
+ msgstr "郵箱"
37
+
38
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:28
39
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:97
40
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:322
41
+ msgid "URL"
42
+ msgstr "網址"
43
+
44
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:29
45
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:98
46
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:323
47
+ msgid "Status"
48
+ msgstr "狀態"
49
+
50
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:30
51
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:99
52
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:324
53
+ msgid "Action"
54
+ msgstr "動作"
55
+
56
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:37
57
+ msgid "No visitors on-line at the moment"
58
+ msgstr "目前沒有訪問在線"
59
+
60
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:46
61
+ msgid "Initiate Chat"
62
+ msgstr "發起聊天"
63
+
64
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/functions-pro.php:106
65
+ msgid "No chat sessions available at the moment"
66
+ msgstr "目前沒有進行聊天"
67
+
68
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:128
69
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:68
70
+ msgid "Name "
71
+ msgstr "昵稱"
72
+
73
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:141
74
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:80
75
+ msgid "Picture"
76
+ msgstr "圖片"
77
+
78
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:143
79
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:87
80
+ msgid "Upload Image"
81
+ msgstr "上傳圖片"
82
+
83
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:153
84
+ msgid "Chat Delay (seconds)"
85
+ msgstr "聊天延遲(秒)"
86
+
87
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:164
88
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:115
89
+ msgid "Chat notifications"
90
+ msgstr "聊天通知"
91
+
92
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:167
93
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:119
94
+ msgid "Alert me via email as soon as someone wants to chat"
95
+ msgstr "如果有人需要聊天,通過郵箱進行通知"
96
+
97
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:167
98
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:120
99
+ msgid "(while online only)"
100
+ msgstr "(限同時在線)"
101
+
102
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:176
103
+ msgid "Email address"
104
+ msgstr "郵箱地址"
105
+
106
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:179
107
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:135
108
+ msgid "Email address where offline messages are delivered to"
109
+ msgstr "離線消息將會傳送到電子郵件地址"
110
+
111
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:191
112
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:93
113
+ msgid "Logo"
114
+ msgstr "圖標"
115
+
116
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:193
117
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:100
118
+ msgid "Upload Logo"
119
+ msgstr "上傳圖標"
120
+
121
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:205
122
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:213
123
+ msgid "First Section Text"
124
+ msgstr "第壹段文字"
125
+
126
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:214
127
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:222
128
+ msgid "Intro Text"
129
+ msgstr "介紹文字"
130
+
131
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:220
132
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:228
133
+ msgid "Second Section Text"
134
+ msgstr "第二部分文字"
135
+
136
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:227
137
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:235
138
+ msgid "Reactivate Chat Section Text"
139
+ msgstr "激活文本聊天部分"
140
+
141
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:235
142
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:243
143
+ msgid "User chat welcome"
144
+ msgstr "用戶聊天歡迎消息"
145
+
146
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:244
147
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:252
148
+ msgid "Other text"
149
+ msgstr "其它文字"
150
+
151
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:257
152
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:176
153
+ msgid "Offline Chat Box Title"
154
+ msgstr "離線文字"
155
+
156
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:265
157
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:184
158
+ msgid "Offline Text Fields"
159
+ msgstr "離線文字字段"
160
+
161
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:319
162
+ msgid "Date"
163
+ msgstr "時間"
164
+
165
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:330
166
+ msgid "No chats available at the moment"
167
+ msgstr "目前沒有聊天記錄"
168
+
169
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:437
170
+ msgid "Message"
171
+ msgstr "信息"
172
+
173
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:461
174
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:655
175
+ msgid "Send"
176
+ msgstr "發送"
177
+
178
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:520
179
+ msgid "Your settings have been saved."
180
+ msgstr "您的設置已經保存。"
181
+
182
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:541
183
+ msgid "Chat sessions"
184
+ msgstr "聊天會話"
185
+
186
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:559
187
+ msgid ""
188
+ "Please note: This window must be open in order to receive new chat "
189
+ "notifications."
190
+ msgstr "註意:聊天窗口務必是打開狀態的,以便接收新的聊天通知。"
191
+
192
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:564
193
+ msgid "Visitors on site"
194
+ msgstr "網站上的訪客"
195
+
196
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:638
197
+ msgid "Attempting to open the chat window... Please be patient."
198
+ msgstr "正在打開聊天窗口...請耐心等待。"
199
+
200
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:643
201
+ msgid "End chat"
202
+ msgstr "結束談話"
203
+
204
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:652
205
+ msgid "Press ENTER to send your message"
206
+ msgstr "按回車鍵發送消息"
207
+
208
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:829
209
+ msgid "User has minimized the chat window"
210
+ msgstr "用戶縮小聊天窗口"
211
+
212
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:835
213
+ msgid "User has opened the chat window"
214
+ msgstr "用戶打開聊天窗口"
215
+
216
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:841
217
+ msgid "User has closed and ended the chat"
218
+ msgstr "用戶關閉並結束聊天"
219
+
220
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1006
221
+ msgid ""
222
+ "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
223
+ "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
224
+ msgstr ""
225
+ "API請求過程中發生了意外HTTP錯誤。</p> <p><a href=\"?\" onclick=\"document."
226
+ "location.reload(); return false;\">重試</a>"
227
+
228
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1011
229
+ msgid "An unknown error occurred"
230
+ msgstr "發生未知錯誤"
231
+
232
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1066
233
+ msgid "Live Chat"
234
+ msgstr "在線聊天"
235
+
236
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1067
237
+ msgid "Settings"
238
+ msgstr "設置"
239
+
240
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1068
241
+ msgid "History"
242
+ msgstr "歷史"
243
+
244
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/wp-live-chat-support-pro.php:1070
245
+ msgid "Error Log"
246
+ msgstr "錯誤記錄"
247
+
248
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:12
249
+ msgid "WP Live Chat Support Settings"
250
+ msgstr "WP Live Chat Support 設置"
251
+
252
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:24
253
+ msgid "General Settings"
254
+ msgstr "主要設置"
255
+
256
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:25
257
+ msgid "Chat Box"
258
+ msgstr "聊天框"
259
+
260
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:26
261
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:127
262
+ msgid "Offline Messages"
263
+ msgstr "離線消息"
264
+
265
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:27
266
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:198
267
+ msgid "Styling"
268
+ msgstr "形象"
269
+
270
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:30
271
+ msgid "Main Settings"
272
+ msgstr "主要設置"
273
+
274
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:33
275
+ msgid "Chat enabled"
276
+ msgstr "啟用聊天"
277
+
278
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:36
279
+ msgid "Yes"
280
+ msgstr "是"
281
+
282
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:37
283
+ msgid "No"
284
+ msgstr "否"
285
+
286
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:43
287
+ msgid "Hide Chat"
288
+ msgstr "隱藏聊天"
289
+
290
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:54
291
+ msgid "Chat Window Settings"
292
+ msgstr "聊天窗口設置"
293
+
294
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:57
295
+ msgid "Chat box alignment"
296
+ msgstr "聊天窗口對齊"
297
+
298
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:60
299
+ msgid "Bottom left"
300
+ msgstr "左下"
301
+
302
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:61
303
+ msgid "Bottom right"
304
+ msgstr "右下"
305
+
306
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:106
307
+ msgid "Chat delay (seconds)"
308
+ msgstr "聊天延遲(秒)"
309
+
310
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:131
311
+ msgid "Email Address"
312
+ msgstr "郵箱地址"
313
+
314
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:143
315
+ msgid "Host"
316
+ msgstr "主機"
317
+
318
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:151
319
+ msgid "Port"
320
+ msgstr "端口"
321
+
322
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:159
323
+ msgid "Username"
324
+ msgstr "用戶名"
325
+
326
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:167
327
+ msgid "Password"
328
+ msgstr "密碼"
329
+
330
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:201
331
+ msgid "Chat box fill color"
332
+ msgstr "聊天框填充顏色"
333
+
334
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:207
335
+ msgid "Chat box font color"
336
+ msgstr "聊天盒子字體顏色"
337
+
338
+ #: C:\wamp\www\wordpress38\wp-content\plugins\wp-live-chat-support-pro/includes/settings_page_pro.php:262
339
+ msgid "Save Settings"
340
+ msgstr "保存設置"
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: WP-LiveChat
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, chat widget, customer help
5
- Requires at least: 3.6
6
  Tested up to: 3.9.1
7
  Stable tag: trunk
8
  License: GPLv2
@@ -36,9 +36,10 @@ The most cost effective Live Chat plugin. Chat with your visitors for free! WP L
36
  * World-class support
37
  * Fully customizable live chat experience
38
 
 
39
  Get the [WP Live Chat Support Pro Add-on](http://wp-livechat.com/purchase-pro/) for only $29.95 once off!
40
 
41
- = 5 second live chat installation =
42
 
43
  Our live chat plugin instantly gives you the ability to chat directly with potential clients and/or website visitors when they're ready to do so. Initiate a live chat with a certain visitor or wait for them to initiate a live chat with you. Increase your website conversion rates by providing real time live support.
44
 
@@ -49,7 +50,6 @@ Once the live chat plugin is activated, click on "Live Chat" in the left menu na
49
 
50
  = Coming Soon to WP Live Chat Support =
51
 
52
- * Multiple live chat operators
53
  * More advanced customization and themes
54
 
55
 
@@ -79,11 +79,21 @@ Please review the live chat documentation on [our website](http://wp-livechat.co
79
 
80
  == Upgrade Notice ==
81
 
82
- * Nothing required
83
 
84
 
85
  == Changelog ==
86
 
 
 
 
 
 
 
 
 
 
 
87
  = 3.08 =
88
 
89
  * Fixed Languages not been translated
2
  Contributors: WP-LiveChat
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, chat widget, customer help
5
+ Requires at least: 3.8
6
  Tested up to: 3.9.1
7
  Stable tag: trunk
8
  License: GPLv2
36
  * World-class support
37
  * Fully customizable live chat experience
38
 
39
+
40
  Get the [WP Live Chat Support Pro Add-on](http://wp-livechat.com/purchase-pro/) for only $29.95 once off!
41
 
42
+ = 30 second live chat installation =
43
 
44
  Our live chat plugin instantly gives you the ability to chat directly with potential clients and/or website visitors when they're ready to do so. Initiate a live chat with a certain visitor or wait for them to initiate a live chat with you. Increase your website conversion rates by providing real time live support.
45
 
50
 
51
  = Coming Soon to WP Live Chat Support =
52
 
 
53
  * More advanced customization and themes
54
 
55
 
79
 
80
  == Upgrade Notice ==
81
 
82
+ Overhauled Ajax calls to be less resource intensive in version 4. It's recommended to upgrade the WP Live Chat Support Pro Version as well.
83
 
84
 
85
  == Changelog ==
86
 
87
+ = 4.0.0 =
88
+
89
+ * Overhauled the live chat Ajax calls to be less resource intensive
90
+ * Fixed many localization strings
91
+ * Added Feedback Page
92
+ * Added Welcome Page
93
+ * Fixed Visitor pending forever - Now Shown a message that admin is away
94
+ * Fixed many small bugs
95
+ * Added Multiple Live Chat Agents support (Add On)
96
+
97
  = 3.08 =
98
 
99
  * Fixed Languages not been translated
wp-live-chat-support.php CHANGED
@@ -1,812 +1,933 @@
1
- <?php
2
- /*
3
- Plugin Name: WP Live Chat Support
4
- Plugin URI: http://www.wp-livechat.com
5
- Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
6
- Version: 3.08
7
- Author: WP-LiveChat
8
- Author URI: http://www.wp-livechat.com
9
- */
10
-
11
- error_reporting(E_ERROR);
12
- global $wplc_version;
13
- global $wplc_p_version;
14
- global $wplc_tblname;
15
- global $wpdb;
16
- global $wplc_tblname_chats;
17
- global $wplc_tblname_msgs;
18
- $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
19
- $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
20
- $wplc_version = "3.08";
21
-
22
-
23
-
24
-
25
-
26
- require_once (plugin_dir_path( __FILE__ )."functions.php");
27
- add_action('wp_ajax_wplc_admin_set_transient', 'wplc_action_callback');
28
-
29
- add_action('wp_footer', 'wplc_display_box');
30
-
31
- add_action('init','wplc_init');
32
-
33
- if (function_exists('wplc_head_pro')) {
34
- add_action('admin_head', 'wplc_head_pro');
35
- } else {
36
- add_action('admin_head', 'wplc_head_basic');
37
- }
38
-
39
-
40
- add_action('wp_enqueue_scripts', 'wplc_add_user_stylesheet' );
41
- add_action('admin_enqueue_scripts', 'wplc_add_admin_stylesheet');
42
-
43
- if(function_exists('wplc_admin_menu_pro')){
44
- add_action('admin_menu', 'wplc_admin_menu_pro');
45
- } else {
46
- add_action('admin_menu', 'wplc_admin_menu');
47
- }
48
- add_action('admin_head', 'wplc_superadmin_javascript');
49
- register_activation_hook( __FILE__, 'wplc_activate' );
50
-
51
-
52
- function wplc_init() {
53
- $plugin_dir = basename(dirname(__FILE__))."/languages/";
54
- load_plugin_textdomain( 'wplivechat', false, $plugin_dir );
55
- }
56
-
57
-
58
- function wplc_action_callback() {
59
- global $wpdb;
60
- global $wplc_tblname_chats;
61
- $check = check_ajax_referer( 'wplc', 'security' );
62
-
63
- if ($check == 1) {
64
-
65
- if ($_POST['action'] == "wplc_admin_set_transient") {
66
- set_transient("wplc_is_admin_logged_in", "1", 70 );
67
-
68
- }
69
- }
70
-
71
- die(); // this is required to return a proper result
72
-
73
- }
74
-
75
-
76
-
77
-
78
- function wplc_admin_menu() {
79
- $wplc_mainpage = add_menu_page('WP Live Chat', __('Live Chat','wplivechat'), 'manage_options', 'wplivechat-menu', 'wplc_admin_menu_layout');
80
- add_submenu_page('wplivechat-menu', __('Settings','wplivechat'), __('Settings','wplivechat'), 'manage_options' , 'wplivechat-menu-settings', 'wplc_admin_settings_layout');
81
- add_submenu_page('wplivechat-menu', __('History','wplivechat'), __('History','wplivechat'), 'manage_options' , 'wplivechat-menu-history', 'wplc_admin_history_layout');
82
- }
83
- add_action('wp_head','wplc_user_top_js');
84
- function wplc_user_top_js() {
85
- echo "<!-- DEFINING DO NOT CACHE -->";
86
- define('DONOTCACHEPAGE', true);
87
- define('DONOTCACHEDB', true);
88
- $ajax_nonce = wp_create_nonce("wplc");
89
- wp_register_script( 'wplc-user-jquery-cookie', plugins_url('/js/jquery-cookie.js', __FILE__) );
90
- wp_enqueue_script( 'wplc-user-jquery-cookie' );
91
- $wplc_settings = get_option("WPLC_SETTINGS");
92
-
93
- ?>
94
- <script type="text/javascript">
95
- <?php if (!function_exists("wplc_register_pro_version")) { ?>
96
- var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
97
- var wplc_wp_load_url = '<?php echo wplc_get_home_path(); ?>wp-load.php';
98
- <?php } ?>
99
- var wplc_nonce = '<?php echo $ajax_nonce; ?>';
100
- </script>
101
- <?php
102
-
103
-
104
- }
105
-
106
- function wplc_draw_user_box() {
107
- $wplc_settings = get_option("WPLC_SETTINGS");
108
- if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
109
-
110
-
111
- wp_register_script( 'wplc-user-script', plugins_url('/js/wplc_u.js', __FILE__) );
112
- wp_enqueue_script( 'wplc-user-script' );
113
- wp_localize_script('wplc-user-script', 'wplc_hide_chat', null);
114
- wp_enqueue_script( 'jquery' );
115
- wp_enqueue_script( 'jquery-ui-core' );
116
- wp_enqueue_script( 'jquery-ui-draggable');
117
- wplc_output_box();
118
-
119
- }
120
- function wplc_output_box() {
121
-
122
-
123
- $wplc_settings = get_option("WPLC_SETTINGS");
124
- if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
125
-
126
- if ($wplc_settings["wplc_settings_align"] == 1) { $wplc_box_align = "left:100px;"; } else { $wplc_box_align = "right:100px;"; }
127
- if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = "#".$wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "#73BE28"; }
128
- if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = "#".$wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "#FFFFFF"; }
129
-
130
- $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
131
- if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
132
- return "";
133
- }
134
- if($wplc_settings["wplc_settings_align"] == 1){
135
- $original_pos = "left";
136
- } else {
137
- $original_pos = "right";
138
- }
139
-
140
- ?>
141
- <div id="wp-live-chat" style="display:none; <?php echo $wplc_box_align; ?>;" original_pos="<?php echo $original_pos ?>">
142
-
143
-
144
- <?php if (function_exists("wplc_register_pro_version")) {
145
- wplc_pro_output_box();
146
- } else {
147
- ?>
148
- <div id="wp-live-chat-header" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;">
149
-
150
- <i id="wp-live-chat-minimize" class="fa fa-minus" style="display:none;" ></i>
151
- <i id="wp-live-chat-close" class="fa fa-times" style="display:none;" ></i>
152
-
153
- <div id="wp-live-chat-1" >
154
- <div style="display:block; ">
155
- <strong>Questions?</strong> Chat with us
156
- </div>
157
- </div>
158
- </div>
159
- <div id="wp-live-chat-2" style="display:none;">
160
-
161
- <div id="wp-live-chat-2-info">
162
- <strong>Start Live Chat</strong>
163
- </div>
164
-
165
- <input type="text" name="wplc_name" id="wplc_name" value="" placeholder="<?php _e("Name","wplivechat"); ?>" />
166
-
167
- <input type="text" name="wplc_email" id="wplc_email" value="" placeholder="<?php _e("Email","wplivechat"); ?>" />
168
-
169
- <input id="wplc_start_chat_btn" type="button" value="<?php _e("Start Chat","wplivechat"); ?>" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;"/>
170
-
171
-
172
-
173
- </div>
174
-
175
- <div id="wp-live-chat-3" style="display:none;">
176
- <p>Connecting you to a sales person. Please be patient.</p>
177
- </div>
178
- <div id="wp-live-chat-react" style="display:none;">
179
- <p>Reactivating your previous chat...</p>
180
- </div>
181
- <div id="wp-live-chat-4" style="display:none;">
182
- <div id="wplc_chatbox"></div>
183
- <p style="text-align:center; font-size:11px;">Press ENTER to send your message</p>
184
- <p>
185
- <input type="text" name="wplc_chatmsg" id="wplc_chatmsg" value="" />
186
- <input type="hidden" name="wplc_cid" id="wplc_cid" value="" />
187
- <input id="wplc_send_msg" type="button" value="<?php _e("Send","wplc"); ?>" style="display:none;" /></p>
188
- </div>
189
-
190
- </div>
191
- <?php
192
- }
193
- }
194
-
195
- function wplc_display_box() {
196
- $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
197
- if ($wplc_is_admin_logged_in != 1) { echo "<!-- wplc a-n-c -->"; }
198
- if (function_exists("wplc_register_pro_version")) { wplc_pro_draw_user_box(); } else { wplc_draw_user_box(); }
199
- }
200
-
201
-
202
-
203
- function wplc_admin_display_chat($cid) {
204
- global $wpdb;
205
- global $wplc_tblname_msgs;
206
- $results = $wpdb->get_results(
207
- "
208
- SELECT *
209
- FROM $wplc_tblname_msgs
210
- WHERE `chat_sess_id` = '$cid'
211
- ORDER BY `timestamp` DESC
212
- LIMIT 0, 100
213
- "
214
- );
215
- foreach ($results as $result) {
216
- $from = $result->from;
217
- $msg = stripslashes($result->msg);
218
- $msg_hist .= "$from: $msg<br />";
219
-
220
- }
221
- echo $msg_hist;
222
- }
223
- function wplc_admin_accept_chat($cid) {
224
- wplc_change_chat_status($cid,3);
225
- return true;
226
-
227
- }
228
- add_action('admin_head','wplc_update_chat_statuses');
229
-
230
-
231
- function wplc_superadmin_javascript() {
232
-
233
- if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu') {
234
-
235
- if (!isset($_GET['action'])) {
236
- if (function_exists("wplc_register_pro_version")) {
237
- wplc_pro_admin_javascript();
238
- } else {
239
- wplc_admin_javascript();
240
- }
241
-
242
- } // main page
243
- else if (isset($_GET['action'])) {
244
- if (function_exists("wplc_register_pro_version")) {
245
- wplc_return_pro_admin_chat_javascript($_GET['cid']);
246
- } else {
247
- wplc_return_admin_chat_javascript($_GET['cid']);
248
- }
249
-
250
- }
251
-
252
-
253
-
254
- }
255
-
256
- $ajax_nonce = wp_create_nonce("wplc");
257
- ?>
258
- <script type="text/javascript">
259
- jQuery(document).ready(function() {
260
-
261
-
262
- var wplc_set_transient = null;
263
-
264
- wplc_set_transient = setInterval(function (){wpcl_admin_set_transient();}, 60000);
265
- wpcl_admin_set_transient();
266
- function wpcl_admin_set_transient() {
267
- var data = {
268
- action: 'wplc_admin_set_transient',
269
- security: '<?php echo $ajax_nonce; ?>'
270
-
271
- };
272
- jQuery.post(ajaxurl, data, function(response) {
273
- //console.log("wplc_admin_set_transient");
274
- });
275
- }
276
-
277
-
278
-
279
-
280
-
281
- });
282
-
283
-
284
-
285
- </script>
286
- <?php
287
- }
288
- function wplc_admin_javascript() {
289
- $ajax_nonce = wp_create_nonce("wplc");
290
- ?>
291
- <script type="text/javascript">
292
- jQuery(document).ready(function() {
293
- var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
294
- var wplc_wp_load_url = '<?php echo wplc_get_home_path(); ?>wp-load.php';
295
- var wplc_autoLoad = null;
296
- var wplc_refresh_chat_area = null;
297
- var wplc_refresh_status = null;
298
-
299
-
300
-
301
-
302
- wplc_refresh_chat_area = setInterval(function (){wpcl_admin_update_chats();}, 4000);
303
- function wpcl_admin_update_chats(cid) {
304
- var data = {
305
- action: 'wplc_update_admin_chat',
306
- security: '<?php echo $ajax_nonce; ?>',
307
- wplc_wp_load_url:wplc_wp_load_url
308
- };
309
- jQuery.post(wplc_ajaxurl, data, function(response) {
310
- //console.log("wplc_update_admin_chat");
311
- jQuery("#wplc_admin_chat_area").html(response);
312
-
313
- if (response.indexOf("pending") >= 0) {
314
- var orig_title = document.getElementsByTagName("title")[0].innerHTML;
315
- document.title = "** CHAT REQUEST **";
316
- wplc_title_alerts1 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 1000);
317
- wplc_title_alerts2 = setTimeout(function (){ document.title = "** CHAT REQUEST **"; }, 1500);
318
- wplc_title_alerts3 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 2000);
319
- wplc_title_alerts4 = setTimeout(function (){ document.title = orig_title; }, 2500);
320
-
321
- document.getElementById("wplc_sound").innerHTML="<embed src='<?php echo plugins_url('/ring.wav', __FILE__); ?>' hidden=true autostart=true loop=false>";
322
- }
323
-
324
-
325
- });
326
- }
327
-
328
- wplc_refresh_status = setInterval(function (){wplc_update_statuses();}, 10000);
329
- function wplc_update_statuses() {
330
- var data = {
331
- action: 'wplc_update_admin_status',
332
- security: '<?php echo $ajax_nonce; ?>',
333
- wplc_wp_load_url:wplc_wp_load_url
334
- };
335
- jQuery.post(wplc_ajaxurl, data, function(response) {
336
- //console.log("wplc_update_admin_status");
337
- //alert(response);
338
- });
339
- };
340
-
341
-
342
- });
343
-
344
-
345
-
346
- </script>
347
- <?php
348
- }
349
-
350
-
351
-
352
- function wplc_admin_menu_layout() {
353
- if (function_exists("wplc_register_pro_version")) {
354
- global $wplc_pro_version;
355
- if ($wplc_pro_version < 3.0) {
356
- ?>
357
- <div class='error below-h1'>
358
-
359
- <p>Dear Pro User<br /></p>
360
- <p>You are using an outdated version of WP Live Chat Support Pro. Please <a href="http://wp-livechat.com/get-updated-version/" target=\"_BLANK\">update to at least version 3.0</a> to ensure all functionality is in working order.</p>
361
- <p>&nbsp;</p>
362
- <p>If you are having difficulty updating the plugin, please contact nick@wp-livechat.com</p>
363
-
364
- </div>
365
- <?php
366
- }
367
-
368
-
369
- }
370
- if (function_exists("wplc_register_pro_version")) {
371
- wplc_pro_admin_menu_layout_display();
372
- } else {
373
- wplc_admin_menu_layout_display();
374
- }
375
-
376
- }
377
-
378
- function wplc_admin_menu_layout_display() {
379
- if (!isset($_GET['action'])) {
380
-
381
- ?>
382
- <div style='float:right; display:block; width:450px; padding:10px; text-align:center; background-color: #EEE; border: 1px solid #E6DB55; margin:10px;'>
383
- <strong>Experiencing problems with the plugin?</strong>
384
- <br />
385
- <a href='http://wp-livechat.com/documentation/' title='WP Live Chat Support Documentation' target='_BLANK'>Review the documentation.</a>
386
- Or ask a question on our <a href='http://wp-livechat.com/forums/forum/support/' title='WP Live Chat Support Forum' target='_BLANK'>Support forum.</a>
387
- </div>
388
-
389
- <h1>Live Chat</h1>
390
- <div id="wplc_sound"></div>
391
-
392
-
393
-
394
-
395
- <div id="wplc_admin_chat_area">
396
-
397
- <?php if (function_exists("wplc_register_pro_version")) { wplc_list_chats_pro(); } else { wplc_list_chats(); } ?>
398
- </div>
399
- <h1>Online Visitors</h1>
400
- <p><?php _e("With the Pro add-on of WP Live Chat Support, you can","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1" title="<?php _e("see who's online and initiate chats","wplivechat"); ?>" target=\"_BLANK\"><?php _e("see who's online and initiate chats","wplivechat"); ?></a> <?php _e("with your online visitors with the click of a button.","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2" title="<?php _e("Buy the Pro add-on now for only $29.95 once off. Free Updates FOREVER.","wplivechat"); ?>" target=\"_BLANK\"><strong><?php _e("Buy the Pro add-on now for only $29.95 once off. Free Updates Forever.","wplivechat"); ?></strong></a></p>
401
- <?php
402
- }
403
- else {
404
-
405
- if ($_GET['action'] == 'ac') {
406
- wplc_change_chat_status($_GET['cid'],3);
407
- if (function_exists("wplc_register_pro_version")) { wplc_pro_draw_chat_area($_GET['cid']); } else { wplc_draw_chat_area($_GET['cid']); }
408
- }
409
- }
410
- }
411
-
412
- function wplc_draw_chat_area($cid) {
413
-
414
- global $wpdb;
415
- global $wplc_tblname_chats;
416
- $results = $wpdb->get_results(
417
- "
418
- SELECT *
419
- FROM $wplc_tblname_chats
420
- WHERE `id` = '$cid'
421
- LIMIT 1
422
- "
423
- );?>
424
- <style>
425
- .wplc-user-message{
426
- display: inline-block;
427
- padding: 5px;
428
- -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
429
- -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
430
- box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
431
- border-radius: 5px;
432
- float: left;
433
- margin-bottom: 5px;
434
- }
435
- .wplc-user-message hr , .wplc-admin-message hr{
436
- margin:0;
437
- }
438
- .wplc-clear-float-message{
439
- clear: both;
440
- }
441
-
442
- .wplc-admin-message{
443
- display: inline-block;
444
- padding: 5px;
445
- -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
446
- -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
447
- box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
448
- border-radius: 5px;
449
- float: right;
450
- margin-bottom: 5px;
451
- }
452
- </style>
453
- <?php
454
-
455
-
456
- foreach ($results as $result) {
457
- if ($result->status == 1) { $status = "Previous"; } else { $status = "Active"; }
458
-
459
- echo "<h2>$status Chat with ".$result->name."</h2>";
460
- echo "<style>#adminmenuwrap { display:none; } #adminmenuback { display:none; } #wpadminbar { display:none; } #wpfooter { display:none; } .update-nag { display:none; }</style>";
461
- echo "<div style='display:block;'>";
462
- echo "<div style='float:left; width:100px;'><img src=\"http://www.gravatar.com/avatar/".md5($result->email)."\" /></div>";
463
- echo "<div id=\"wplc_sound_update\"></div>";
464
- echo "<div style='float:left; width:350px;'>";
465
- echo "<table>";
466
- echo "<tr><td>Email address</td><td><a href='mailto:".$result->email."' title='".$result->email."'>".$result->email."</a></td></tr>";
467
- echo "<tr><td>IP Address</td><td><a href='http://www.ip-adress.com/ip_tracer/".$result->ip."' title='Whois for ".$result->ip."'>".$result->ip."</a></td></tr>";
468
- echo "<tr><td>From URL</td><td>".$result->url. " (<a href='".$result->url."' target='_BLANK'>open</a>)"."</td></tr>";
469
- echo "<tr><td>Date</td><td>".$result->timestamp."</td></tr>";
470
- echo "</table><br />";
471
- echo "</div>";
472
- echo "</div>";
473
-
474
- echo "
475
- <p style=\"display:block; width:290px; text-align:right; font-size:10px;\"><a href=\"javascript:void(0);\" class=\"wplc_admin_close_chat\" id=\"wplc_admin_close_chat\">".__("End chat","wplivechat")."</a></p>
476
- <div id='admin_chat_box'>
477
- <div id='admin_chat_box_area_".$result->id."' style='height:200px; width:290px; border:1px solid #ccc; overflow:auto; padding: 5px;'>".wplc_return_chat_messages($cid)."</div>
478
- <p>
479
- ";
480
- if ($result->status != 1) {
481
- echo "
482
- <p style=\"text-align:left; font-size:11px;\">Press ENTER to send your message</p>
483
- <input type='text' name='wplc_admin_chatmsg' id='wplc_admin_chatmsg' value='' style=\"border:1px solid #666; width:290px;\" />
484
- <input id='wplc_admin_cid' type='hidden' value='".$_GET['cid']."' />
485
- <input id='wplc_admin_send_msg' type='button' value='".__("Send","wplc")."' style=\"display:none;\" />
486
- </p>
487
- </div>
488
- ";
489
- //echo wplc_return_admin_chat_javascript($_GET['cid']);
490
- }
491
-
492
- }
493
- }
494
-
495
- function wplc_return_admin_chat_javascript($cid) {
496
- $ajax_nonce = wp_create_nonce("wplc");
497
- if(function_exists("wplc_pro_get_admin_picture")){
498
- $src = wplc_pro_get_admin_picture();
499
- if($src){
500
- $image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
501
- }
502
- }
503
- ?>
504
- <script type="text/javascript">
505
- jQuery(document).ready(function() {
506
-
507
- var wplc_image = "<?php echo $image ?>";
508
- var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
509
- var wplc_wp_load_url = '<?php echo wplc_get_home_path(); ?>wp-load.php';
510
- var wplc_nonce = '<?php echo $ajax_nonce; ?>';
511
- var wplc_gcid = '<?php echo $cid; ?>';
512
-
513
- if (jQuery('#wplc_admin_cid').length){
514
- var wplc_cid = jQuery("#wplc_admin_cid").val();
515
- var height = jQuery('#admin_chat_box_area_'+wplc_cid)[0].scrollHeight;
516
- jQuery('#admin_chat_box_area_'+wplc_cid).scrollTop(height);
517
- }
518
-
519
- jQuery(".wplc_admin_accept").on("click", function() {
520
- var cid = jQuery(this).attr("cid");
521
-
522
- var data = {
523
- action: 'wplc_admin_accept_chat',
524
- cid: cid,
525
- security: wplc_nonce,
526
- wplc_wp_load_url:wplc_wp_load_url
527
- };
528
- jQuery.post(wplc_ajaxurl, data, function(response) {
529
- //console.log("wplc_admin_accept_chat");
530
- wplc_refresh_chat_boxes[cid] = setInterval(function (){wpcl_admin_update_chat_box(cid);}, 3000);
531
- jQuery("#admin_chat_box_"+cid).show();
532
- });
533
- });
534
-
535
- jQuery("#wplc_admin_chatmsg").keyup(function(event){
536
- if(event.keyCode == 13){
537
- jQuery("#wplc_admin_send_msg").click();
538
- }
539
- });
540
- jQuery("#wplc_admin_close_chat").on("click", function() {
541
- var wplc_cid = jQuery("#wplc_admin_cid").val();
542
- var data = {
543
- action: 'wplc_admin_close_chat',
544
- security: '<?php echo $ajax_nonce; ?>',
545
- cid: wplc_cid,
546
- wplc_wp_load_url:wplc_wp_load_url
547
-
548
- };
549
- jQuery.post(wplc_ajaxurl, data, function(response) {
550
- //console.log("wplc_admin_close_chat");
551
- //console.log(response);
552
- window.close();
553
- });
554
-
555
- });
556
-
557
- jQuery("#wplc_admin_send_msg").on("click", function() {
558
- var wplc_cid = jQuery("#wplc_admin_cid").val();
559
- var wplc_chat = jQuery("#wplc_admin_chatmsg").val();
560
- var wplc_name = "a"+"d"+"m"+"i"+"n";
561
- jQuery("#wplc_admin_chatmsg").val('');
562
-
563
-
564
- jQuery("#admin_chat_box_area_"+wplc_cid).append("<span class='wplc-admin-message'>"+wplc_image+" <strong>"+wplc_name+"</strong>:<hr/>"+wplc_chat+"</span><br /><div class='wplc-clear-float-message'></div>");
565
- var height = jQuery('#admin_chat_box_area_'+wplc_cid)[0].scrollHeight;
566
- jQuery('#admin_chat_box_area_'+wplc_cid).scrollTop(height);
567
-
568
-
569
- var data = {
570
- action: 'wplc_admin_send_msg',
571
- security: wplc_nonce,
572
- cid: wplc_cid,
573
- msg: wplc_chat,
574
- wplc_wp_load_url:wplc_wp_load_url
575
- };
576
- jQuery.post(wplc_ajaxurl, data, function(response) {
577
- //console.log("wplc_admin_send_msg");
578
-
579
- });
580
-
581
-
582
- });
583
-
584
-
585
- wplc_auto_refresh = setInterval(function (){wpcl_admin_auto_update_chat_box(wplc_gcid);}, 3500);
586
- function wpcl_admin_auto_update_chat_box(cid) {
587
- current_len = jQuery("#admin_chat_box_area_"+cid).html().length;
588
-
589
-
590
- var data = {
591
- action: 'wplc_update_admin_chat_boxes',
592
- cid: cid,
593
- security: wplc_nonce,
594
- wplc_wp_load_url:wplc_wp_load_url
595
- };
596
- jQuery.post(wplc_ajaxurl, data, function(response) {
597
- //console.log("wplc_update_admin_chat_boxes");
598
- //jQuery("#admin_chat_box_area_"+cid).html(response);
599
- jQuery("#admin_chat_box_area_"+cid).append(response);
600
- new_length = jQuery("#admin_chat_box_area_"+cid).html().length;
601
- if (current_len < new_length) {
602
- document.getElementById("wplc_sound_update").innerHTML="<embed src='<?php echo plugins_url('/ding.mp3', __FILE__); ?>' hidden=true autostart=true loop=false>";
603
- }
604
-
605
- var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
606
- jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
607
- });
608
-
609
- }
610
-
611
-
612
-
613
- wplc_auto_check_status_of_chat = setInterval(function (){wpcl_admin_auto_check_status_of_chat(<?php echo $cid; ?>);}, 5000);
614
- var chat_status = 3;
615
- function wpcl_admin_auto_check_status_of_chat(cid) {
616
-
617
- var data = {
618
- action: 'wplc_update_admin_return_chat_status',
619
- cid: <?php echo $cid; ?>,
620
- security: '<?php echo $ajax_nonce; ?>',
621
- wplc_wp_load_url:wplc_wp_load_url
622
- };
623
- jQuery.post(wplc_ajaxurl, data, function(response) {
624
- //console.log("wplc_update_admin_return_chat_status");
625
- if (response == "0") { } else {
626
- if (chat_status != response) {
627
- previous_chat_status = chat_status;
628
- console.log("previous chat status: "+previous_chat_status)
629
- chat_status = response;
630
- //console.log("chat status: "+chat_status)
631
- if (chat_status == "2") {
632
- //clearInterval(wplc_auto_check_status_of_chat);
633
- //clearInterval(wplc_auto_refresh);
634
- jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has minimized the chat window","wplivechat"); ?></em><br />");
635
- var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
636
- jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
637
-
638
- }
639
- else if (previous_chat_status == "2" && chat_status == "3") {
640
- jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has opened the chat window","wplivechat"); ?></em><br />");
641
- var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
642
- jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
643
- }
644
- else if (chat_status == "1") {
645
- //clearInterval(wplc_auto_check_status_of_chat);
646
- //clearInterval(wplc_auto_refresh);
647
- jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has closed and ended the chat","wplivechat"); ?></em><br />");
648
- var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
649
- jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
650
- clearInterval(wplc_auto_check_status_of_chat);
651
- clearInterval(wplc_auto_refresh);
652
- document.getElementById('wplc_admin_chatmsg').disabled = true;
653
-
654
-
655
- }
656
-
657
- }
658
- }
659
-
660
- });
661
-
662
- }
663
-
664
-
665
-
666
- });
667
- </script>
668
- <?php
669
- }
670
- function wplc_activate() {
671
- wplc_handle_db();
672
- if (!get_option("WPLC_SETTINGS")) {
673
- add_option('WPLC_SETTINGS',array("wplc_settings_align" => "2", "wplc_settings_enabled" => "1", "wplc_settings_fill" => "73BE28", "wplc_settings_font" => "FFFFFF"));
674
- }
675
- add_option("WPLC_HIDE_CHAT","true");
676
- }
677
-
678
-
679
- function wplc_handle_db() {
680
- global $wpdb;
681
- global $wplc_version;
682
- global $wplc_tblname_chats;
683
- global $wplc_tblname_msgs;
684
-
685
- $sql = "
686
- CREATE TABLE `".$wplc_tblname_chats."` (
687
- `id` int(11) NOT NULL AUTO_INCREMENT,
688
- `timestamp` datetime NOT NULL,
689
- `name` varchar(700) NOT NULL,
690
- `email` varchar(700) NOT NULL,
691
- `ip` varchar(700) NOT NULL,
692
- `status` int(11) NOT NULL,
693
- `url` varchar(700) NOT NULL,
694
- `last_active_timestamp` datetime NOT NULL,
695
- PRIMARY KEY (`id`)
696
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
697
- ";
698
-
699
- require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
700
- dbDelta($sql);
701
-
702
- $sql = "
703
- CREATE TABLE `".$wplc_tblname_msgs."` (
704
- `id` int(11) NOT NULL AUTO_INCREMENT,
705
- `chat_sess_id` int(11) NOT NULL,
706
- `from` varchar(150) CHARACTER SET utf8 NOT NULL,
707
- `msg` varchar(700) CHARACTER SET utf8 NOT NULL,
708
- `timestamp` datetime NOT NULL,
709
- `status` INT(3) NOT NULL,
710
- `originates` INT(3) NOT NULL,
711
- PRIMARY KEY (`id`)
712
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
713
- ";
714
-
715
- require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
716
- dbDelta($sql);
717
- add_option("wplc_db_version", $wplc_version);
718
- update_option("wplc_db_version",$wplc_version);
719
- }
720
-
721
- function wplc_add_user_stylesheet() {
722
- wp_register_style( 'wplc-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
723
- wp_enqueue_style( 'wplc-font-awesome' );
724
- wp_register_style( 'wplc-style', plugins_url('/css/wplcstyle.css', __FILE__) );
725
- wp_enqueue_style( 'wplc-style' );
726
-
727
- }
728
- function wplc_add_admin_stylesheet() {
729
- wp_register_style( 'wplc-admin-style', 'http://code.jquery.com/ui/1.8.24/themes/smoothness/jquery-ui.css' );
730
- wp_enqueue_style( 'wplc-admin-style' );
731
-
732
- }
733
-
734
- if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu-settings') {
735
- add_action('admin_print_scripts', 'wplc_admin_scripts_basic');
736
- }
737
- function wplc_admin_scripts_basic() {
738
-
739
- if ($_GET['page'] == "wplivechat-menu-settings") {
740
- wp_enqueue_script( 'jquery' );
741
- wp_enqueue_script('jquery-ui-core');
742
-
743
- wp_register_script('my-wplc-color', plugins_url('js/jscolor.js',__FILE__), false, '1.4.1', false);
744
- wp_enqueue_script('my-wplc-color');
745
- wp_enqueue_script( 'jquery-ui-tabs');
746
- wp_register_script('my-wplc-tabs', plugins_url('js/wplc_tabs.js',__FILE__), array('jquery-ui-core'), '', true);
747
- wp_enqueue_script('my-wplc-tabs');
748
- }
749
- }
750
-
751
-
752
- function wplc_admin_settings_layout() {
753
- wplc_settings_page_basic();
754
- }
755
- function wplc_admin_history_layout() {
756
- echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("WP Live Chat History","wplivechat")."</h2>";
757
- if (function_exists("wplc_register_pro_version")) {
758
- wplc_pro_admin_display_history();
759
- }
760
- else {
761
- echo "<br /><br >This option is only available in the <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history1\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Pro Add-on</a> of WP Live Chat. <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history2\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Get it now for only $29.95 once off!</a>";
762
- }
763
- }
764
-
765
-
766
- function wplc_settings_page_basic() {
767
- if(function_exists("wplc_register_pro_version")){
768
- wplc_settings_page_pro();
769
- } else {
770
- include 'includes/settings_page.php';
771
- }
772
- }
773
- function wplc_head_basic() {
774
- global $wpdb;
775
-
776
- if (isset($_POST['wplc_save_settings'])){
777
-
778
- $wplc_data['wplc_settings_align'] = esc_attr($_POST['wplc_settings_align']);
779
- $wplc_data['wplc_settings_fill'] = esc_attr($_POST['wplc_settings_fill']);
780
- $wplc_data['wplc_settings_font'] = esc_attr($_POST['wplc_settings_font']);
781
- $wplc_data['wplc_settings_enabled'] = esc_attr($_POST['wplc_settings_enabled']);
782
- update_option('WPLC_SETTINGS', $wplc_data);
783
- update_option("WPLC_HIDE_CHAT", $_POST['wplc_hide_chat']);
784
- echo "<div class='updated'>";
785
- _e("Your settings have been saved.","wplivechat");
786
- echo "</div>";
787
-
788
-
789
- }
790
-
791
- }
792
-
793
- function wplc_logout() {
794
- delete_transient('wplc_is_admin_logged_in');
795
- }
796
- add_action('wp_logout', 'wplc_logout');
797
-
798
- function wplc_get_home_path() {
799
- $home = get_option( 'home' );
800
- $siteurl = get_option( 'siteurl' );
801
- if ( ! empty( $home ) && 0 !== strcasecmp( $home, $siteurl ) ) {
802
- $wp_path_rel_to_home = str_ireplace( $home, '', $siteurl ); /* $siteurl - $home */
803
- $pos = strripos( str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ), trailingslashit( $wp_path_rel_to_home ) );
804
- $home_path = substr( $_SERVER['SCRIPT_FILENAME'], 0, $pos );
805
- $home_path = trailingslashit( $home_path );
806
- } else {
807
- $home_path = ABSPATH;
808
- }
809
-
810
- return str_replace( '\\', '/', $home_path );
811
- }
812
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: WP Live Chat Support
4
+ Plugin URI: http://www.wp-livechat.com
5
+ Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
6
+ Version: 4.0.0
7
+ Author: WP-LiveChat
8
+ Author URI: http://www.wp-livechat.com
9
+ */
10
+
11
+ error_reporting(E_ERROR);
12
+ global $wplc_version;
13
+ global $wplc_p_version;
14
+ global $wplc_tblname;
15
+ global $wpdb;
16
+ global $wplc_tblname_chats;
17
+ global $wplc_tblname_msgs;
18
+ $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
19
+ $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
20
+ $wplc_version = "4.0.0";
21
+
22
+
23
+
24
+
25
+ require_once (plugin_dir_path( __FILE__ )."functions.php");
26
+ add_action('wp_ajax_wplc_admin_set_transient', 'wplc_action_callback');
27
+
28
+ add_action('wp_footer', 'wplc_display_box');
29
+
30
+ add_action('init','wplc_init');
31
+
32
+ if (function_exists('wplc_head_pro')) {
33
+ add_action('admin_head', 'wplc_head_pro');
34
+ } else {
35
+ add_action('admin_head', 'wplc_head_basic');
36
+ }
37
+
38
+
39
+ add_action('wp_enqueue_scripts', 'wplc_add_user_stylesheet' );
40
+ add_action('admin_enqueue_scripts', 'wplc_add_admin_stylesheet');
41
+
42
+ if(function_exists('wplc_admin_menu_pro')){
43
+ add_action('admin_menu', 'wplc_admin_menu_pro');
44
+ } else {
45
+ add_action('admin_menu', 'wplc_admin_menu');
46
+ }
47
+ add_action('admin_head', 'wplc_superadmin_javascript');
48
+ register_activation_hook( __FILE__, 'wplc_activate' );
49
+
50
+ function wplc_basic_check(){
51
+ // check if basic exists if pro is installed
52
+ }
53
+ function wplc_init() {
54
+ $plugin_dir = basename(dirname(__FILE__))."/languages/";
55
+ load_plugin_textdomain( 'wplivechat', false, $plugin_dir );
56
+ }
57
+
58
+
59
+ function wplc_action_callback() {
60
+ global $wpdb;
61
+ global $wplc_tblname_chats;
62
+ $check = check_ajax_referer( 'wplc', 'security' );
63
+
64
+ if ($check == 1) {
65
+ if ($_POST['action'] == "wplc_admin_set_transient") {
66
+ set_transient("wplc_is_admin_logged_in", "1", 70 );
67
+
68
+ }
69
+ }
70
+ die(); // this is required to return a proper result
71
+
72
+ }
73
+
74
+
75
+ function wplc_feedback_page_include(){
76
+ include 'includes/feedback-page.php';
77
+ }
78
+
79
+ function wplc_admin_menu() {
80
+ $wplc_mainpage = add_menu_page('WP Live Chat', __('Live Chat','wplivechat'), 'manage_options', 'wplivechat-menu', 'wplc_admin_menu_layout');
81
+ add_submenu_page('wplivechat-menu', __('Settings','wplivechat'), __('Settings','wplivechat'), 'manage_options' , 'wplivechat-menu-settings', 'wplc_admin_settings_layout');
82
+ add_submenu_page('wplivechat-menu', __('History','wplivechat'), __('History','wplivechat'), 'manage_options' , 'wplivechat-menu-history', 'wplc_admin_history_layout');
83
+ add_submenu_page('wplivechat-menu', __('Feedback','wplivechat'), __('Feedback','wplivechat'), 'manage_options' , 'wplivechat-menu-feedback-page', 'wplc_feedback_page_include');
84
+ }
85
+ add_action('wp_head','wplc_user_top_js');
86
+ function wplc_user_top_js() {
87
+ echo "<!-- DEFINING DO NOT CACHE -->";
88
+ define('DONOTCACHEPAGE', true);
89
+ define('DONOTCACHEDB', true);
90
+ $ajax_nonce = wp_create_nonce("wplc");
91
+ wp_register_script( 'wplc-user-jquery-cookie', plugins_url('/js/jquery-cookie.js', __FILE__) , array('jquery-ui-draggable'));
92
+ wp_enqueue_script( 'wplc-user-jquery-cookie');
93
+ $wplc_settings = get_option("WPLC_SETTINGS");
94
+
95
+ ?>
96
+
97
+ <script type="text/javascript">
98
+ <?php if (!function_exists("wplc_register_pro_version")) { ?>
99
+ var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
100
+
101
+ <?php } ?>
102
+ var wplc_nonce = '<?php echo $ajax_nonce; ?>';
103
+ </script>
104
+ <?php
105
+
106
+
107
+ }
108
+
109
+ function wplc_draw_user_box() {
110
+ $wplc_settings = get_option("WPLC_SETTINGS");
111
+ if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
112
+
113
+
114
+ wp_register_script( 'wplc-user-script', plugins_url('/js/wplc_u.js', __FILE__) );
115
+ wp_enqueue_script( 'wplc-user-script' );
116
+ wp_localize_script('wplc-user-script', 'wplc_hide_chat', null);
117
+ wp_enqueue_script( 'jquery' );
118
+ wp_enqueue_script( 'jquery-ui-core' );
119
+ wp_enqueue_script( 'jquery-ui-draggable');
120
+ wplc_output_box();
121
+
122
+ }
123
+ function wplc_output_box() {
124
+
125
+
126
+ $wplc_settings = get_option("WPLC_SETTINGS");
127
+ if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
128
+
129
+ if ($wplc_settings["wplc_settings_align"] == 1) { $wplc_box_align = "left:100px;"; } else { $wplc_box_align = "right:100px;"; }
130
+ if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = "#".$wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "#73BE28"; }
131
+ if ($wplc_settings["wplc_settings_font"]) { $wplc_settings_font = "#".$wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "#FFFFFF"; }
132
+
133
+ $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
134
+ if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
135
+ return "";
136
+ }
137
+ if($wplc_settings["wplc_settings_align"] == 1){
138
+ $original_pos = "left";
139
+ } else {
140
+ $original_pos = "right";
141
+ }
142
+
143
+ ?>
144
+ <div id="wp-live-chat" style="display:none; <?php echo $wplc_box_align; ?>;" original_pos="<?php echo $original_pos ?>">
145
+
146
+
147
+ <?php if (function_exists("wplc_register_pro_version")) {
148
+ wplc_pro_output_box();
149
+ } else {
150
+ ?>
151
+ <div id="wp-live-chat-header" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;">
152
+
153
+ <i id="wp-live-chat-minimize" class="fa fa-minus" style="display:none;" ></i>
154
+ <i id="wp-live-chat-close" class="fa fa-times" style="display:none;" ></i>
155
+
156
+ <div id="wp-live-chat-1" >
157
+ <div style="display:block; ">
158
+ <strong><?php _e("Questions?", "wplivechat") ?></strong> <?php _e("Chat with us", "wplivechat") ?>
159
+ </div>
160
+ </div>
161
+ </div>
162
+ <div id="wp-live-chat-2" style="display:none;">
163
+
164
+ <div id="wp-live-chat-2-info">
165
+ <strong>Start Live Chat</strong>
166
+ </div>
167
+
168
+ <input type="text" name="wplc_name" id="wplc_name" value="" placeholder="<?php _e("Name","wplivechat"); ?>" />
169
+
170
+ <input type="text" name="wplc_email" id="wplc_email" value="" placeholder="<?php _e("Email","wplivechat"); ?>" />
171
+
172
+ <input id="wplc_start_chat_btn" type="button" value="<?php _e("Start Chat","wplivechat"); ?>" style="background-color: <?php echo $wplc_settings_fill; ?> !important; color: <?php echo $wplc_settings_font; ?> !important;"/>
173
+
174
+
175
+
176
+ </div>
177
+
178
+ <div id="wp-live-chat-3" style="display:none;">
179
+ <p><?php _e("Connecting you to a sales person. Please be patient.","wplivechat") ?></p>
180
+ </div>
181
+ <div id="wp-live-chat-react" style="display:none;">
182
+ <p><?php _e("Reactivating your previous chat...", "wplivechat") ?></p>
183
+ </div>
184
+ <div id="wp-live-chat-4" style="display:none;">
185
+ <div id="wplc_chatbox"></div>
186
+ <p style="text-align:center; font-size:11px;"><?php _e("Press ENTER to send your message", "wplivechat" )?></p>
187
+ <p>
188
+ <input type="text" name="wplc_chatmsg" id="wplc_chatmsg" value="" />
189
+ <input type="hidden" name="wplc_cid" id="wplc_cid" value="" />
190
+ <input id="wplc_send_msg" type="button" value="<?php _e("Send","wplivechat"); ?>" style="display:none;" /></p>
191
+ </div>
192
+
193
+ </div>
194
+ <?php
195
+ }
196
+ }
197
+
198
+ function wplc_display_box() {
199
+ $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
200
+ if ($wplc_is_admin_logged_in != 1) { echo "<!-- wplc a-n-c -->"; }
201
+ if (function_exists("wplc_register_pro_version")) { wplc_pro_draw_user_box(); } else { wplc_draw_user_box(); }
202
+ }
203
+
204
+
205
+
206
+ function wplc_admin_display_chat($cid) {
207
+ global $wpdb;
208
+ global $wplc_tblname_msgs;
209
+ $results = $wpdb->get_results(
210
+ "
211
+ SELECT *
212
+ FROM $wplc_tblname_msgs
213
+ WHERE `chat_sess_id` = '$cid'
214
+ ORDER BY `timestamp` DESC
215
+ LIMIT 0, 100
216
+ "
217
+ );
218
+ foreach ($results as $result) {
219
+ $from = $result->from;
220
+ $msg = stripslashes($result->msg);
221
+ $msg_hist .= "$from: $msg<br />";
222
+
223
+ }
224
+ echo $msg_hist;
225
+ }
226
+ function wplc_admin_accept_chat($cid) {
227
+ wplc_change_chat_status($cid,3);
228
+ return true;
229
+
230
+ }
231
+ add_action('admin_head','wplc_update_chat_statuses');
232
+
233
+
234
+ function wplc_superadmin_javascript() {
235
+
236
+ if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu') {
237
+
238
+ if (!isset($_GET['action'])) {
239
+ if (function_exists("wplc_register_pro_version")) {
240
+ wplc_pro_admin_javascript();
241
+ } else {
242
+ wplc_admin_javascript();
243
+ }
244
+
245
+ } // main page
246
+ else if (isset($_GET['action'])) {
247
+ if (function_exists("wplc_register_pro_version")) {
248
+ wplc_return_pro_admin_chat_javascript($_GET['cid']);
249
+ } else {
250
+ wplc_return_admin_chat_javascript($_GET['cid']);
251
+ }
252
+
253
+ }
254
+
255
+
256
+
257
+ }
258
+
259
+ $ajax_nonce = wp_create_nonce("wplc");
260
+ ?>
261
+ <script type="text/javascript">
262
+ jQuery(document).ready(function() {
263
+
264
+
265
+ var wplc_set_transient = null;
266
+
267
+ wplc_set_transient = setInterval(function (){wpcl_admin_set_transient();}, 60000);
268
+ wpcl_admin_set_transient();
269
+ function wpcl_admin_set_transient() {
270
+ var data = {
271
+ action: 'wplc_admin_set_transient',
272
+ security: '<?php echo $ajax_nonce; ?>'
273
+
274
+ };
275
+ jQuery.post(ajaxurl, data, function(response) {
276
+ //console.log("wplc_admin_set_transient");
277
+ });
278
+ }
279
+
280
+
281
+
282
+
283
+
284
+ });
285
+
286
+
287
+
288
+ </script>
289
+ <?php
290
+ }
291
+ function wplc_admin_javascript() {
292
+ $ajax_nonce = wp_create_nonce("wplc");
293
+ ?>
294
+
295
+ <script type="text/javascript">
296
+ var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
297
+ var data = {
298
+ action: 'wplc_admin_long_poll',
299
+ security: '<?php echo $ajax_nonce; ?>',
300
+ wplc_list_visitors_data: false ,
301
+ wplc_update_admin_chat_table: false
302
+ };
303
+ var wplc_pending_refresh = null;
304
+
305
+ var wplc_run = true;
306
+ function wplc_call_to_server(data) {
307
+
308
+
309
+ jQuery.ajax({
310
+ url: wplc_ajaxurl,
311
+ data:data,
312
+ type:"POST",
313
+ success: function(response) {
314
+
315
+ //Update your dashboard gauge
316
+ if(response){
317
+
318
+ response = JSON.parse(response);
319
+ //console.log(response);
320
+ data["wplc_update_admin_chat_table"] = response['wplc_update_admin_chat_table'];
321
+ //console.log(response['visitors']);
322
+
323
+ if(response['action'] === "wplc_update_admin_chat"){
324
+ jQuery("#wplc_admin_chat_area").html(response['wplc_update_admin_chat_table']);
325
+ if (response['pending'] === true) {
326
+
327
+ var orig_title = document.getElementsByTagName("title")[0].innerHTML;
328
+ wplc_pending_refresh = setInterval(function (){
329
+ document.title = "** CHAT REQUEST **";
330
+ wplc_title_alerts1 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 1000);
331
+ wplc_title_alerts2 = setTimeout(function (){ document.title = "** CHAT REQUEST **"; }, 1500);
332
+ wplc_title_alerts3 = setTimeout(function (){ document.title = "__ CHAT Request __"; }, 2000);
333
+ wplc_title_alerts4 = setTimeout(function (){ document.title = orig_title; }, 2500);
334
+
335
+ document.getElementById("wplc_sound").innerHTML="<embed src='<?php echo plugins_url('/ring.wav', __FILE__); ?>' hidden=true autostart=true loop=false>";
336
+ }, 3000);
337
+ } else {
338
+ //console.log("end");
339
+ clearInterval(wplc_pending_refresh);
340
+ }
341
+ }
342
+
343
+ }
344
+ },
345
+ error: function(jqXHR, exception) {
346
+ if (jqXHR.status == 404) {
347
+ console.log('Requested page not found. [404]');
348
+ wplc_run = false;
349
+ } else if (jqXHR.status == 500) {
350
+ console.log('Internal Server Error [500].');
351
+ wplc_run = false;
352
+ } else if (exception === 'parsererror') {
353
+ console.log('Requested JSON parse failed.');
354
+ wplc_run = false;
355
+ } else if (exception === 'abort') {
356
+ console.log('Ajax request aborted.');
357
+ wplc_run = false;
358
+ } else {
359
+ console.log('Uncaught Error.\n' + jqXHR.responseText);
360
+ wplc_run = false;
361
+ }
362
+ },
363
+ complete: function(response){
364
+ //console.log(wplc_run);
365
+ if (wplc_run) {
366
+ wplc_call_to_server(data);
367
+ }
368
+ },
369
+ timeout: 120000
370
+ });
371
+ };
372
+
373
+
374
+
375
+ jQuery(document).ready(function() {
376
+ jQuery('body').on("click", "a", function (event) {
377
+ if(jQuery(this).hasClass('wplc_open_chat')){
378
+ event.preventDefault();
379
+ window.open(jQuery(this).attr("href"), jQuery(this).attr("window-title" ), "width=600,height=600,scrollbars=yes", false);
380
+ }
381
+ });
382
+
383
+ wplc_call_to_server(data);
384
+ });
385
+
386
+
387
+
388
+ </script>
389
+ <?php
390
+ }
391
+
392
+
393
+
394
+ function wplc_admin_menu_layout() {
395
+ if (function_exists("wplc_register_pro_version")) {
396
+ global $wplc_pro_version;
397
+ if (floatval($wplc_pro_version) < 4.0) {
398
+ ?>
399
+ <div class='error below-h1'>
400
+
401
+ <p><?php _e("Dear Pro User", "wplivechat") ?><br /></p>
402
+ <p><?php _e("You are using an outdated version of WP Live Chat Support Pro. Please" , "wplivechat")?> <a href="http://wp-livechat.com/get-updated-version/" target=\"_BLANK\"><?php _e("update to at least version", "wplivechat") ?> 4.0</a> <?php _e("to ensure all functionality is in working order", "wplivechat" ) ?>.</p>
403
+ <p>&nbsp;</p>
404
+ <p><?php _e("If you are having difficulty updating the plugin, please contact","wplivechat") ?> nick@wp-livechat.com</p>
405
+
406
+ </div>
407
+ <?php
408
+ }
409
+ }
410
+ if(get_option("WPLC_FIRST_TIME") == true && !class_exists("APC_Object_Cache")){
411
+ update_option('WPLC_FIRST_TIME', false);
412
+ include 'includes/welcome_page.php';
413
+ } else {
414
+ update_option('WPLC_FIRST_TIME', false);
415
+ if (function_exists("wplc_register_pro_version")) {
416
+ wplc_pro_admin_menu_layout_display();
417
+ } else {
418
+ wplc_admin_menu_layout_display();
419
+ }
420
+ }
421
+
422
+ }
423
+
424
+ function wplc_admin_menu_layout_display() {
425
+ if (!isset($_GET['action'])) {
426
+
427
+ ?>
428
+ <div style='float:right; display:block; width:450px; padding:10px; text-align:center; background-color: #EEE; border: 1px solid #E6DB55; margin:10px;'>
429
+ <strong><?php _e("Experiencing problems with the plugin?", "wplivechat") ?></strong>
430
+ <br />
431
+ <a href='http://wp-livechat.com/documentation/' title='WP Live Chat Support Documentation' target='_BLANK'><?php _e("Review the documentation.", "wplivechat") ?></a>
432
+ <?php _e("Or ask a question on our", "wplivechat") ?> <a href='http://wp-livechat.com/forums/forum/support/' title='WP Live Chat Support Forum' target='_BLANK'>Support forum.</a>
433
+ </div>
434
+
435
+ <h1><?php _e("Live Chat", "wplivechat") ?> </h1>
436
+ <div id="wplc_sound"></div>
437
+
438
+
439
+
440
+
441
+ <div id="wplc_admin_chat_area">
442
+
443
+ <?php if (function_exists("wplc_register_pro_version")) {
444
+ echo wplc_list_chats_pro();
445
+
446
+ } else {
447
+ echo wplc_list_chats();
448
+
449
+ }
450
+
451
+ ?>
452
+ </div>
453
+
454
+ <h1><?php _e("Visitors on site","wplivechat") ?></h1>
455
+ <p><?php _e("With the Pro add-on of WP Live Chat Support, you can","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1" title="<?php _e("see who's online and initiate chats","wplivechat"); ?>" target=\"_BLANK\"><?php _e("see who's online and initiate chats","wplivechat"); ?></a> <?php _e("with your online visitors with the click of a button.","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2" title="<?php _e("Buy the Pro add-on now for only $29.95 once off. Free Updates FOREVER.","wplivechat"); ?>" target=\"_BLANK\"><strong><?php _e("Buy the Pro add-on now for only $29.95 once off. Free Updates Forever.","wplivechat"); ?></strong></a></p>
456
+ <?php
457
+ }
458
+ else {
459
+
460
+ if ($_GET['action'] == 'ac') {
461
+ wplc_change_chat_status($_GET['cid'],3);
462
+ if(function_exists('wplc_ma_register')){
463
+ wplc_ma_update_agent_id($_GET['cid'], $_GET['agent_id']);
464
+ }
465
+ if (function_exists("wplc_register_pro_version")) { wplc_pro_draw_chat_area($_GET['cid']); } else { wplc_draw_chat_area($_GET['cid']); }
466
+ }
467
+ }
468
+ }
469
+
470
+ function wplc_draw_chat_area($cid) {
471
+
472
+ global $wpdb;
473
+ global $wplc_tblname_chats;
474
+ $results = $wpdb->get_results(
475
+ "
476
+ SELECT *
477
+ FROM $wplc_tblname_chats
478
+ WHERE `id` = '$cid'
479
+ LIMIT 1
480
+ "
481
+ );?>
482
+ <style>
483
+ .wplc-user-message{
484
+ display: inline-block;
485
+ padding: 5px;
486
+ -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
487
+ -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
488
+ box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
489
+ border-radius: 5px;
490
+ float: left;
491
+ margin-bottom: 5px;
492
+ }
493
+ .wplc-user-message hr , .wplc-admin-message hr{
494
+ margin:0;
495
+ }
496
+ .wplc-clear-float-message{
497
+ clear: both;
498
+ }
499
+
500
+ .wplc-admin-message{
501
+ display: inline-block;
502
+ padding: 5px;
503
+ -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
504
+ -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
505
+ box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.5);
506
+ border-radius: 5px;
507
+ float: right;
508
+ margin-bottom: 5px;
509
+ }
510
+ </style>
511
+ <?php
512
+
513
+
514
+ foreach ($results as $result) {
515
+ if ($result->status == 1) { $status = __("Previous", "wplivechat"); } else { $status = __("Active", "wplivechat"); }
516
+
517
+ echo "<h2>$status Chat with ".$result->name."</h2>";
518
+ echo "<style>#adminmenuwrap { display:none; } #adminmenuback { display:none; } #wpadminbar { display:none; } #wpfooter { display:none; } .update-nag { display:none; }</style>";
519
+ echo "<div style='display:block;'>";
520
+ echo "<div style='float:left; width:100px;'><img src=\"http://www.gravatar.com/avatar/".md5($result->email)."\" /></div>";
521
+ echo "<div id=\"wplc_sound_update\"></div>";
522
+ echo "<div style='float:left; width:350px;'>";
523
+ echo "<table>";
524
+ echo "<tr><td>Email address</td><td><a href='mailto:".$result->email."' title='".$result->email."'>".$result->email."</a></td></tr>";
525
+ echo "<tr><td>IP Address</td><td><a href='http://www.ip-adress.com/ip_tracer/".$result->ip."' title='Whois for ".$result->ip."'>".$result->ip."</a></td></tr>";
526
+ echo "<tr><td>From URL</td><td>".$result->url. " (<a href='".$result->url."' target='_BLANK'>open</a>)"."</td></tr>";
527
+ echo "<tr><td>Date</td><td>".$result->timestamp."</td></tr>";
528
+ echo "</table><br />";
529
+ echo "</div>";
530
+ echo "</div>";
531
+
532
+ echo "
533
+ <p style=\"display:block; width:290px; text-align:right; font-size:10px;\"><a href=\"javascript:void(0);\" class=\"wplc_admin_close_chat\" id=\"wplc_admin_close_chat\">".__("End chat","wplivechat")."</a></p>
534
+ <div id='admin_chat_box'>
535
+ <div id='admin_chat_box_area_".$result->id."' style='height:200px; width:290px; border:1px solid #ccc; overflow:auto; padding: 5px;'>".wplc_return_chat_messages($cid)."</div>
536
+ <p>
537
+ ";
538
+ if ($result->status != 1) {
539
+ echo "
540
+ <p style=\"text-align:left; font-size:11px;\">Press ENTER to send your message</p>
541
+ <input type='text' name='wplc_admin_chatmsg' id='wplc_admin_chatmsg' value='' style=\"border:1px solid #666; width:290px;\" />
542
+ <input id='wplc_admin_cid' type='hidden' value='".$_GET['cid']."' />
543
+ <input id='wplc_admin_send_msg' type='button' value='".__("Send","wplivechat")."' style=\"display:none;\" />
544
+ </p>
545
+ </div>
546
+ ";
547
+ //echo wplc_return_admin_chat_javascript($_GET['cid']);
548
+ }
549
+
550
+ }
551
+ }
552
+
553
+ function wplc_return_admin_chat_javascript($cid) {
554
+ $ajax_nonce = wp_create_nonce("wplc");
555
+ if(function_exists("wplc_pro_get_admin_picture")){
556
+ $src = wplc_pro_get_admin_picture();
557
+ if($src){
558
+ $image = "<img src=".$src." width='20px' id='wp-live-chat-2-img'/>";
559
+ }
560
+ }
561
+ ?>
562
+ <script type="text/javascript">
563
+ var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
564
+ var chat_status = 3;
565
+ var cid = <?php echo $cid; ?>;
566
+ var data = {
567
+ action: 'wplc_admin_long_poll_chat',
568
+ security: '<?php echo $ajax_nonce; ?>',
569
+ cid: cid,
570
+ chat_status: chat_status
571
+ };
572
+ var wplc_run = true;
573
+ function wplc_call_to_server_admin_chat(data) {
574
+ jQuery.ajax({
575
+ url: wplc_ajaxurl,
576
+ data:data,
577
+ type:"POST",
578
+ success: function(response) {
579
+ if(response){
580
+
581
+ response = JSON.parse(response);
582
+ //console.log(response);
583
+ if(response['action'] === "wplc_update_chat_status"){
584
+ data['chat_status'] = response['chat_status'];
585
+ wplc_display_chat_status_update(response['chat_status'],cid);
586
+ }
587
+ if(response['action'] === "wplc_new_chat_message"){
588
+ current_len = jQuery("#admin_chat_box_area_"+cid).html().length;
589
+ jQuery("#admin_chat_box_area_"+cid).append(response['chat_message']);
590
+ new_length = jQuery("#admin_chat_box_area_"+cid).html().length;
591
+ if (current_len < new_length) {
592
+ document.getElementById("wplc_sound_update").innerHTML="<embed src='<?php echo plugins_url('/ding.mp3', __FILE__); ?>' hidden=true autostart=true loop=false>";
593
+ }
594
+ var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
595
+ jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
596
+ }
597
+ if(response['action'] === "wplc_user_open_chat"){
598
+ data['action_2'] = "";
599
+ <?php $url = admin_url( 'admin.php?page=wplivechat-menu&action=ac&cid='.$cid); ?>
600
+ window.location.replace('<?php echo $url; ?>');
601
+ }
602
+
603
+ }
604
+ },
605
+ error: function(jqXHR, exception) {
606
+ if (jqXHR.status == 404) {
607
+ console.log('Requested page not found. [404]');
608
+ wplc_run = false;
609
+ } else if (jqXHR.status == 500) {
610
+ console.log('Internal Server Error [500].');
611
+ wplc_run = false;
612
+ } else if (exception === 'parsererror') {
613
+ console.log('Requested JSON parse failed.');
614
+ wplc_run = false;
615
+ } else if (exception === 'abort') {
616
+ console.log('Ajax request aborted.');
617
+ wplc_run = false;
618
+ } else {
619
+ console.log('Uncaught Error.\n' + jqXHR.responseText);
620
+ wplc_run = false;
621
+ }
622
+ },
623
+ complete: function(response){
624
+ //console.log(wplc_run);
625
+ if (wplc_run) {
626
+ wplc_call_to_server_admin_chat(data);
627
+ }
628
+ },
629
+
630
+ timeout: 120000
631
+ });
632
+ };
633
+
634
+ function wplc_display_chat_status_update(new_chat_status, cid){
635
+ if (new_chat_status === "0") { } else {
636
+ if (chat_status !== new_chat_status) {
637
+ previous_chat_status = chat_status;
638
+ //console.log("previous chat status: "+previous_chat_status);
639
+ chat_status = new_chat_status;
640
+ //console.log("chat status: "+chat_status);
641
+
642
+ if ((previous_chat_status === "2" && chat_status === "3") || (previous_chat_status === "5" && chat_status === "3")) {
643
+ jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has opened the chat window","wplivechat"); ?></em><br />");
644
+ var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
645
+ jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
646
+
647
+ } else if (chat_status == "10" && previous_chat_status == "3") {
648
+ jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has minimized the chat window","wplivechat"); ?></em><br />");
649
+ var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
650
+ jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
651
+ }
652
+ else if(chat_status === "3" && previous_chat_status === "10"){
653
+ jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has maximized the chat window","wplivechat"); ?></em><br />");
654
+ var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
655
+ jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
656
+ }
657
+ else if (chat_status === "1" || chat_status === "8") {
658
+ jQuery("#admin_chat_box_area_"+cid).append("<em><?php _e("User has closed and ended the chat","wplivechat"); ?></em><br />");
659
+ var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
660
+ jQuery('#admin_chat_box_area_'+cid).scrollTop(height);
661
+ document.getElementById('wplc_admin_chatmsg').disabled = true;
662
+ }
663
+ }
664
+ }
665
+ }
666
+
667
+
668
+
669
+ jQuery(document).ready(function() {
670
+
671
+ var wplc_image = "<?php echo $image ?>";
672
+ var wplc_ajaxurl = '<?php echo plugins_url('/ajax.php', __FILE__); ?>';
673
+
674
+
675
+ jQuery("#wplc_admin_chatmsg").focus();
676
+
677
+
678
+
679
+
680
+ wplc_call_to_server_admin_chat(data);
681
+
682
+ if (jQuery('#wplc_admin_cid').length){
683
+ var wplc_cid = jQuery("#wplc_admin_cid").val();
684
+ var height = jQuery('#admin_chat_box_area_'+wplc_cid)[0].scrollHeight;
685
+ jQuery('#admin_chat_box_area_'+wplc_cid).scrollTop(height);
686
+ }
687
+
688
+ jQuery(".wplc_admin_accept").on("click", function() {
689
+ wplc_title_alerts3 = setTimeout(function (){ document.title = "WP Live Chat Support"; }, 2500);
690
+ var cid = jQuery(this).attr("cid");
691
+
692
+ var data = {
693
+ action: 'wplc_admin_accept_chat',
694
+ cid: cid,
695
+ security: '<?php echo $ajax_nonce; ?>'
696
+ };
697
+ jQuery.post(wplc_ajaxurl, data, function(response) {
698
+ //console.log("wplc_admin_accept_chat");
699
+ wplc_refresh_chat_boxes[cid] = setInterval(function (){wpcl_admin_update_chat_box(cid);}, 3000);
700
+ jQuery("#admin_chat_box_"+cid).show();
701
+ });
702
+ });
703
+
704
+ jQuery("#wplc_admin_chatmsg").keyup(function(event){
705
+ if(event.keyCode == 13){
706
+ jQuery("#wplc_admin_send_msg").click();
707
+ }
708
+ });
709
+
710
+ jQuery("#wplc_admin_close_chat").on("click", function() {
711
+ var wplc_cid = jQuery("#wplc_admin_cid").val();
712
+ var data = {
713
+ action: 'wplc_admin_close_chat',
714
+ security: '<?php echo $ajax_nonce; ?>',
715
+ cid: wplc_cid
716
+
717
+ };
718
+ jQuery.post(wplc_ajaxurl, data, function(response) {
719
+ //console.log("wplc_admin_close_chat");
720
+ //console.log(response);
721
+ window.close();
722
+ });
723
+
724
+ });
725
+
726
+ jQuery("#wplc_admin_send_msg").on("click", function() {
727
+ var wplc_cid = jQuery("#wplc_admin_cid").val();
728
+ var wplc_chat = jQuery("#wplc_admin_chatmsg").val();
729
+ var wplc_name = "a"+"d"+"m"+"i"+"n";
730
+ jQuery("#wplc_admin_chatmsg").val('');
731
+
732
+
733
+ jQuery("#admin_chat_box_area_"+wplc_cid).append("<span class='wplc-admin-message'>"+wplc_image+" <strong>"+wplc_name+"</strong>:<hr/>"+wplc_chat+"</span><br /><div class='wplc-clear-float-message'></div>");
734
+ var height = jQuery('#admin_chat_box_area_'+wplc_cid)[0].scrollHeight;
735
+ jQuery('#admin_chat_box_area_'+wplc_cid).scrollTop(height);
736
+
737
+
738
+ var data = {
739
+ action: 'wplc_admin_send_msg',
740
+ security: '<?php echo $ajax_nonce; ?>',
741
+ cid: wplc_cid,
742
+ msg: wplc_chat
743
+ };
744
+ jQuery.post(wplc_ajaxurl, data, function(response) {
745
+ //console.log("wplc_admin_send_msg");
746
+
747
+ /* do nothing
748
+ jQuery("#admin_chat_box_area_"+wplc_cid).html(response);
749
+ var height = jQuery('#admin_chat_box_area_'+wplc_cid)[0].scrollHeight;
750
+ jQuery('#admin_chat_box_area_'+wplc_cid).scrollTop(height);
751
+ */
752
+ });
753
+
754
+
755
+ });
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+ });
764
+ </script>
765
+ <?php
766
+
767
+ }
768
+ function wplc_activate() {
769
+ wplc_handle_db();
770
+ if (!get_option("WPLC_SETTINGS")) {
771
+ add_option('WPLC_SETTINGS',array("wplc_settings_align" => "2", "wplc_settings_enabled" => "1", "wplc_settings_fill" => "73BE28", "wplc_settings_font" => "FFFFFF"));
772
+ }
773
+ add_option("WPLC_HIDE_CHAT","true");
774
+ add_option("WPLC_FIRST_TIME", true);
775
+ }
776
+
777
+
778
+ function wplc_handle_db() {
779
+ global $wpdb;
780
+ global $wplc_version;
781
+ global $wplc_tblname_chats;
782
+ global $wplc_tblname_msgs;
783
+
784
+ $sql = "
785
+ CREATE TABLE ".$wplc_tblname_chats." (
786
+ id int(11) NOT NULL AUTO_INCREMENT,
787
+ timestamp datetime NOT NULL,
788
+ name varchar(700) NOT NULL,
789
+ email varchar(700) NOT NULL,
790
+ ip varchar(700) NOT NULL,
791
+ status int(11) NOT NULL,
792
+ url varchar(700) NOT NULL,
793
+ last_active_timestamp datetime NOT NULL,
794
+ PRIMARY KEY (id)
795
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
796
+ ";
797
+
798
+ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
799
+ dbDelta($sql);
800
+
801
+ $sql = "
802
+ CREATE TABLE ".$wplc_tblname_msgs." (
803
+ id int(11) NOT NULL AUTO_INCREMENT,
804
+ chat_sess_id int(11) NOT NULL,
805
+ from varchar(150) CHARACTER SET utf8 NOT NULL,
806
+ msg varchar(700) CHARACTER SET utf8 NOT NULL,
807
+ timestamp datetime NOT NULL,
808
+ status INT(3) NOT NULL,
809
+ originates INT(3) NOT NULL,
810
+ PRIMARY KEY (id)
811
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
812
+ ";
813
+
814
+ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
815
+ dbDelta($sql);
816
+ add_option("wplc_db_version", $wplc_version);
817
+ update_option("wplc_db_version",$wplc_version);
818
+ }
819
+
820
+ function wplc_add_user_stylesheet() {
821
+ wp_register_style( 'wplc-font-awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
822
+ wp_enqueue_style( 'wplc-font-awesome' );
823
+ wp_register_style( 'wplc-style', plugins_url('/css/wplcstyle.css', __FILE__) );
824
+ wp_enqueue_style( 'wplc-style' );
825
+
826
+ }
827
+ function wplc_add_admin_stylesheet() {
828
+ wp_register_style( 'wplc-admin-style', 'http://code.jquery.com/ui/1.8.24/themes/smoothness/jquery-ui.css' );
829
+ wp_enqueue_style( 'wplc-admin-style' );
830
+
831
+ }
832
+
833
+ if (isset($_GET['page']) && $_GET['page'] == 'wplivechat-menu-settings') {
834
+ add_action('admin_print_scripts', 'wplc_admin_scripts_basic');
835
+ }
836
+ function wplc_admin_scripts_basic() {
837
+
838
+ if ($_GET['page'] == "wplivechat-menu-settings") {
839
+ wp_enqueue_script( 'jquery' );
840
+ wp_enqueue_script('jquery-ui-core');
841
+
842
+ wp_register_script('my-wplc-color', plugins_url('js/jscolor.js',__FILE__), false, '1.4.1', false);
843
+ wp_enqueue_script('my-wplc-color');
844
+ wp_enqueue_script( 'jquery-ui-tabs');
845
+ wp_register_script('my-wplc-tabs', plugins_url('js/wplc_tabs.js',__FILE__), array('jquery-ui-core'), '', true);
846
+ wp_enqueue_script('my-wplc-tabs');
847
+ }
848
+ }
849
+
850
+
851
+ function wplc_admin_settings_layout() {
852
+ wplc_settings_page_basic();
853
+ }
854
+ function wplc_admin_history_layout() {
855
+ echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("WP Live Chat History","wplivechat")."</h2>";
856
+ if (function_exists("wplc_register_pro_version")) {
857
+ wplc_pro_admin_display_history();
858
+ }
859
+ else {
860
+ echo "<br /><br >This option is only available in the <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history1\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Pro Add-on</a> of WP Live Chat. <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history2\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Get it now for only $29.95 once off!</a>";
861
+ }
862
+ }
863
+
864
+
865
+ function wplc_settings_page_basic() {
866
+ if(function_exists("wplc_register_pro_version")){
867
+ wplc_settings_page_pro();
868
+ } else {
869
+ include 'includes/settings_page.php';
870
+ }
871
+ }
872
+ function wplc_head_basic() {
873
+ global $wpdb;
874
+
875
+ if (isset($_POST['wplc_save_settings'])){
876
+
877
+ $wplc_data['wplc_settings_align'] = esc_attr($_POST['wplc_settings_align']);
878
+ $wplc_data['wplc_settings_fill'] = esc_attr($_POST['wplc_settings_fill']);
879
+ $wplc_data['wplc_settings_font'] = esc_attr($_POST['wplc_settings_font']);
880
+ $wplc_data['wplc_settings_enabled'] = esc_attr($_POST['wplc_settings_enabled']);
881
+ update_option('WPLC_SETTINGS', $wplc_data);
882
+ update_option("WPLC_HIDE_CHAT", $_POST['wplc_hide_chat']);
883
+ echo "<div class='updated'>";
884
+ _e("Your settings have been saved.","wplivechat");
885
+ echo "</div>";
886
+ }
887
+ if(isset($_POST['action']) && $_POST['action'] == "wplc_submit_find_us"){
888
+ if (function_exists('curl_version')) {
889
+ $request_url = "http://www.wp-livechat.com/apif/rec.php";
890
+ $ch = curl_init();
891
+ curl_setopt($ch, CURLOPT_URL, $request_url);
892
+ curl_setopt($ch, CURLOPT_POST, 1);
893
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
894
+ curl_setopt($ch, CURLOPT_REFERER, $_SERVER['HTTP_HOST']);
895
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
896
+ $output = curl_exec($ch);
897
+ curl_close($ch);
898
+ }
899
+ echo "<div class=\"updated\"><p>". __("Thank You for your feedback!","wplivechat")."</p></div>";
900
+ }
901
+ if (isset($_POST['wplc_nl_send_feedback'])) {
902
+ if(wp_mail("nick@wp-livechat.com", "Plugin feedback", "Name: ".$_POST['wplc_nl_feedback_name']."\n\r"."Email: ".$_POST['wplc_nl_feedback_email']."\n\r"."Website: ".$_POST['wplc_nl_feedback_website']."\n\r"."Feedback:".$_POST['wplc_nl_feedback_feedback'] )){
903
+ echo "<div id=\"message\" class=\"updated\"><p>".__("Thank you for your feedback. We will be in touch soon","wplc")."</p></div>";
904
+ } else {
905
+
906
+ if (function_exists('curl_version')) {
907
+ $request_url = "http://www.wp-livechat.com/apif/rec_feedback.php";
908
+ $ch = curl_init();
909
+ curl_setopt($ch, CURLOPT_URL, $request_url);
910
+ curl_setopt($ch, CURLOPT_POST, 1);
911
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
912
+ curl_setopt($ch, CURLOPT_REFERER, $_SERVER['HTTP_HOST']);
913
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
914
+ $output = curl_exec($ch);
915
+ curl_close($ch);
916
+ echo "<div id=\"message\" class=\"updated\"><p>".__("Thank you for your feedback. We will be in touch soon","wplc")."</p></div>";
917
+ }
918
+ else {
919
+ echo "<div id=\"message\" class=\"error\">";
920
+ echo "<p>".__("There was a problem sending your feedback. Please log your feedback on ","wplc")."<a href='http://wp-livechat.com/forums/forum/support/' target='_BLANK'>http://wp-livechat.com/forums/forum/support/</a></p>";
921
+ echo "</div>";
922
+ }
923
+ }
924
+ }
925
+
926
+ }
927
+
928
+ function wplc_logout() {
929
+ delete_transient('wplc_is_admin_logged_in');
930
+ }
931
+ add_action('wp_logout', 'wplc_logout');
932
+
933
+