WP Live Chat Support - Version 4.1.4

Version Description

2014-07-31 = * Significant performance improvements * Brazilian translation added - thank you Gustavo Silva

Download this release

Release Info

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

Code changes from version 4.1.3 to 4.1.4

ajax.php CHANGED
@@ -1,5 +1,6 @@
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');
@@ -26,12 +27,13 @@ require_once( '../../../wp-load.php' );
26
 
27
  define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
28
 
29
- /* time in seconds between updating the user on the page within the DB (lower number = higher resource usage) */
30
- define('WPLC_DELAY_BETWEEN_UPDATES',3);
31
- /* time in seconds between long poll loop (lower number = higher resource usage) */
32
- define('WPLC_DELAY_BETWEEN_LOOPS',1);
 
33
  /* this needs to take into account the previous constants so that we dont run out of time, which in turn returns a 503 error */
34
- define('WPLC_TIMEOUT',((WPLC_DELAY_BETWEEN_UPDATES + WPLC_DELAY_BETWEEN_LOOPS + 30))*28);
35
 
36
 
37
 
@@ -82,7 +84,7 @@ if ($check == 1) {
82
  if (defined('WPLC_TIMEOUT')) { set_time_limit(WPLC_TIMEOUT); } else { set_time_limit(120); }
83
  //sleep(6);
84
  $i = 1;
85
- while($i <= 28){
86
 
87
  // update chats if they have timed out every 10 seconds
88
  if($i %10 == 0) {
@@ -114,7 +116,8 @@ if ($check == 1) {
114
  echo json_encode($array);
115
  break;
116
  }
117
- if (defined('WPLC_DELAY_BETWEEN_LOOPS')) { sleep(WPLC_DELAY_BETWEEN_LOOPS); } else { sleep(1); }
 
118
  $i++;
119
  }
120
  }
@@ -122,7 +125,7 @@ if ($check == 1) {
122
  if (defined('WPLC_TIMEOUT')) { set_time_limit(WPLC_TIMEOUT); } else { set_time_limit(120); }
123
  $i = 1;
124
  $array = array();
125
- while($i <= 28){
126
  if(isset($_POST['action_2']) && $_POST['action_2'] == "wplc_long_poll_check_user_opened_chat"){
127
  $chat_status = wplc_return_chat_status($_POST['cid']);
128
  if($chat_status == 3){
@@ -145,7 +148,8 @@ if ($check == 1) {
145
  echo json_encode($array);
146
  break;
147
  }
148
- if (defined('WPLC_DELAY_BETWEEN_LOOPS')) { sleep(WPLC_DELAY_BETWEEN_LOOPS); } else { sleep(1); }
 
149
  $i++;
150
  }
151
  }
@@ -178,7 +182,7 @@ if ($check == 1) {
178
  $i = 1;
179
  $array = array("check" => false);
180
 
181
- while($i <= 28){
182
 
183
  if($_POST['cid'] == null || $_POST['cid'] == "" || $_POST['cid'] == "null"){
184
  $user = "user".time();
@@ -197,16 +201,12 @@ if ($check == 1) {
197
  $array['cid'] = $_POST['cid'];
198
  if($new_status == $_POST['status']){ // if status matches do the following
199
  if($_POST['status'] != 2){
200
- //wplc_error_log("[".$_POST['wplcsession']."] [".__LINE__."] [*$i] Updating user on page ".$_SERVER['HTTP_REFERER']);
201
-
202
  /* check if session_variable is different? if yes then stop this script completely. */
203
  if (isset($_POST['wplcsession']) && $_POST['wplcsession'] != '' && $i > 1) {
204
  $wplc_session_variable = $_POST['wplcsession'];
205
  $current_session_variable = wplc_return_chat_session_variable($_POST['cid']);
206
- //wplc_error_log("[".$_POST['wplcsession']."] [".__LINE__."] Checking against session variable ".$current_session_variable);
207
  if ($current_session_variable != "" && $current_session_variable != $wplc_session_variable) {
208
  /* stop this script */
209
- //wplc_error_log("[".$_POST['wplcsession']."] [".__LINE__."] [*$i] TERMINATING");
210
  $array['status'] = 11;
211
  echo json_encode($array);
212
  die();
@@ -214,8 +214,9 @@ if ($check == 1) {
214
  }
215
 
216
 
217
- wplc_update_user_on_page($_POST['cid'], $_POST['status'],$_POST['wplcsession']);
218
- if (defined('WPLC_DELAY_BETWEEN_UPDATES')) { sleep(WPLC_DELAY_BETWEEN_UPDATES); } else { sleep(3); }
 
219
  }
220
  if ($_POST['status'] == 0){ // browsing - user tried to chat but admin didn't answer so turn back to browsing
221
  wplc_update_user_on_page($_POST['cid'], 5,$_POST['wplcsession']);
@@ -281,8 +282,9 @@ if ($check == 1) {
281
  echo json_encode($array);
282
  break;
283
  }
284
- if (defined('WPLC_DELAY_BETWEEN_LOOPS')) { sleep(WPLC_DELAY_BETWEEN_LOOPS); } else { sleep(1); }
285
  $i++;
 
 
286
  }
287
  }
288
 
1
  <?php
2
+ @session_start();
3
+ @ob_start();
4
  header('Access-Control-Allow-Origin: *');
5
  header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
6
  header('Access-Control-Max-Age: 604800');
27
 
28
  define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
29
 
30
+ $iterations = 60;
31
+ /* time in microseconds between updating the user on the page within the DB (lower number = higher resource usage) */
32
+ define('WPLC_DELAY_BETWEEN_UPDATES',500000);
33
+ /* time in microseconds between long poll loop (lower number = higher resource usage) */
34
+ define('WPLC_DELAY_BETWEEN_LOOPS',500000);
35
  /* this needs to take into account the previous constants so that we dont run out of time, which in turn returns a 503 error */
36
+ define('WPLC_TIMEOUT',((WPLC_DELAY_BETWEEN_UPDATES + WPLC_DELAY_BETWEEN_LOOPS))*$iterations);
37
 
38
 
39
 
84
  if (defined('WPLC_TIMEOUT')) { set_time_limit(WPLC_TIMEOUT); } else { set_time_limit(120); }
85
  //sleep(6);
86
  $i = 1;
87
+ while($i <= $iterations){
88
 
89
  // update chats if they have timed out every 10 seconds
90
  if($i %10 == 0) {
116
  echo json_encode($array);
117
  break;
118
  }
119
+ @ob_end_flush();
120
+ if (defined('WPLC_DELAY_BETWEEN_LOOPS')) { usleep(WPLC_DELAY_BETWEEN_LOOPS); } else { usleep(500000); }
121
  $i++;
122
  }
123
  }
125
  if (defined('WPLC_TIMEOUT')) { set_time_limit(WPLC_TIMEOUT); } else { set_time_limit(120); }
126
  $i = 1;
127
  $array = array();
128
+ while($i <= $iterations){
129
  if(isset($_POST['action_2']) && $_POST['action_2'] == "wplc_long_poll_check_user_opened_chat"){
130
  $chat_status = wplc_return_chat_status($_POST['cid']);
131
  if($chat_status == 3){
148
  echo json_encode($array);
149
  break;
150
  }
151
+ @ob_end_flush();
152
+ if (defined('WPLC_DELAY_BETWEEN_LOOPS')) { usleep(WPLC_DELAY_BETWEEN_LOOPS); } else { usleep(500000); }
153
  $i++;
154
  }
155
  }
182
  $i = 1;
183
  $array = array("check" => false);
184
 
185
+ while($i <= $iterations){
186
 
187
  if($_POST['cid'] == null || $_POST['cid'] == "" || $_POST['cid'] == "null"){
188
  $user = "user".time();
201
  $array['cid'] = $_POST['cid'];
202
  if($new_status == $_POST['status']){ // if status matches do the following
203
  if($_POST['status'] != 2){
 
 
204
  /* check if session_variable is different? if yes then stop this script completely. */
205
  if (isset($_POST['wplcsession']) && $_POST['wplcsession'] != '' && $i > 1) {
206
  $wplc_session_variable = $_POST['wplcsession'];
207
  $current_session_variable = wplc_return_chat_session_variable($_POST['cid']);
 
208
  if ($current_session_variable != "" && $current_session_variable != $wplc_session_variable) {
209
  /* stop this script */
 
210
  $array['status'] = 11;
211
  echo json_encode($array);
212
  die();
214
  }
215
 
216
 
217
+ if ($i == 1) {
218
+ wplc_update_user_on_page(sanitize_text_field($_POST['cid']), sanitize_text_field($_POST['status']),$_POST['wplcsession']);
219
+ }
220
  }
221
  if ($_POST['status'] == 0){ // browsing - user tried to chat but admin didn't answer so turn back to browsing
222
  wplc_update_user_on_page($_POST['cid'], 5,$_POST['wplcsession']);
282
  echo json_encode($array);
283
  break;
284
  }
 
285
  $i++;
286
+ @ob_end_flush();
287
+ if (defined('WPLC_DELAY_BETWEEN_LOOPS')) { usleep(WPLC_DELAY_BETWEEN_LOOPS); } else { usleep(500000); }
288
  }
289
  }
290
 
functions.php CHANGED
@@ -69,13 +69,32 @@ function wplc_record_chat_msg($from,$cid,$msg) {
69
 
70
  if ($from == "1") {
71
  $fromname = wplc_return_chat_name($cid);
 
72
  $orig = '2';
73
  }
74
  else {
75
  $fromname = "admin";
 
76
  $orig = '1';
77
  }
78
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  $ins_array = array(
80
  'chat_sess_id' => $cid,
81
  'timestamp' => date("Y-m-d H:i:s"),
@@ -84,10 +103,17 @@ function wplc_record_chat_msg($from,$cid,$msg) {
84
  'status' => 0,
85
  'originates' => $orig
86
  );
 
87
  $rows_affected = $wpdb->insert( $wplc_tblname_msgs, $ins_array );
88
 
89
  wplc_update_active_timestamp($cid);
90
  wplc_change_chat_status($cid,3);
 
 
 
 
 
 
91
  return true;
92
 
93
 
@@ -659,11 +685,12 @@ function wplc_error_directory() {
659
  }
660
 
661
  function wplc_error_log($error) {
 
662
  $content = "\r\n[".date("Y-m-d")."] [".date("H:i:s")."]".$error;
663
  $fp = @fopen(ABSPATH.'/wp-content/uploads/wp-live-chat-support'."/error_log.txt","a+");
664
  fwrite($fp,$content);
665
  fclose($fp);
666
-
667
 
668
  }
669
  function Memory_Usage($decimals = 2)
69
 
70
  if ($from == "1") {
71
  $fromname = wplc_return_chat_name($cid);
72
+ //$fromemail = wplc_return_chat_email($cid);
73
  $orig = '2';
74
  }
75
  else {
76
  $fromname = "admin";
77
+ //$fromemail = "SET email";
78
  $orig = '1';
79
  }
80
+
81
+ /*
82
+ include 'includes/XMPPHP/XMPP.php';
83
+
84
+ #Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
85
+ #If this doesn't work, are you running 64-bit PHP with < 5.2.6?
86
+ $conn = new XMPPHP_XMPP('talk.google.com', 5222, '', '', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
87
+
88
+ try {
89
+ $conn->connect();
90
+ $conn->processUntil('session_start');
91
+ $conn->presence();
92
+ $conn->message($fromemail, $msg);
93
+ $conn->disconnect();
94
+ } catch(XMPPHP_Exception $e) {
95
+ die($e->getMessage());
96
+ }
97
+ */
98
  $ins_array = array(
99
  'chat_sess_id' => $cid,
100
  'timestamp' => date("Y-m-d H:i:s"),
103
  'status' => 0,
104
  'originates' => $orig
105
  );
106
+
107
  $rows_affected = $wpdb->insert( $wplc_tblname_msgs, $ins_array );
108
 
109
  wplc_update_active_timestamp($cid);
110
  wplc_change_chat_status($cid,3);
111
+
112
+
113
+
114
+
115
+
116
+
117
  return true;
118
 
119
 
685
  }
686
 
687
  function wplc_error_log($error) {
688
+ /*
689
  $content = "\r\n[".date("Y-m-d")."] [".date("H:i:s")."]".$error;
690
  $fp = @fopen(ABSPATH.'/wp-content/uploads/wp-live-chat-support'."/error_log.txt","a+");
691
  fwrite($fp,$content);
692
  fclose($fp);
693
+ */
694
 
695
  }
696
  function Memory_Usage($decimals = 2)
includes/settings_page.php CHANGED
@@ -1,4 +1,3 @@
1
-
2
  <div class="wrap">
3
  <div id="icon-edit" class="icon32 icon32-posts-post">
4
  <br>
 
1
  <div class="wrap">
2
  <div id="icon-edit" class="icon32 icon32-posts-post">
3
  <br>
languages/wplivechat-pt_BR.mo ADDED
Binary file
languages/wplivechat-pt_BR.po ADDED
@@ -0,0 +1,520 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wplc\n"
4
+ "POT-Creation-Date: 2014-07-30 15:05-0300\n"
5
+ "PO-Revision-Date: 2014-07-30 15:56-0300\n"
6
+ "Last-Translator: Gustavo Silva <ghustavosm@gmail.com>\n"
7
+ "Language-Team: Gustavo Silva <ghustavosm@gmail.com>\n"
8
+ "Language: pt_BR\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.7\n"
13
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
18
+ "live-chat-support\n"
19
+ "X-Poedit-SearchPath-1: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
20
+ "live-chat-support-pro\n"
21
+
22
+ #: ../ajax.php:241
23
+ msgid "Admin has closed and ended the chat"
24
+ msgstr "Administrador fechou e encerrou o bate-papo"
25
+
26
+ #: ../ajax.php:265
27
+ msgid "There is No Answer. Please Try Again Later"
28
+ msgstr "Não há resposta. Tente novamente mais tarde"
29
+
30
+ #: ../functions.php:161
31
+ msgid "User Data"
32
+ msgstr "Dados do Usuário"
33
+
34
+ #: ../functions.php:162 ../includes/settings_page.php:82
35
+ #: ../wp-live-chat-support.php:221
36
+ msgid "Name"
37
+ msgstr "Nome"
38
+
39
+ #: ../functions.php:163 ../wp-live-chat-support.php:223
40
+ msgid "Email"
41
+ msgstr "Email"
42
+
43
+ #: ../functions.php:164
44
+ msgid "URL"
45
+ msgstr "URL"
46
+
47
+ #: ../functions.php:165
48
+ msgid "Status"
49
+ msgstr "Status"
50
+
51
+ #: ../functions.php:166
52
+ msgid "Action"
53
+ msgstr "Ação"
54
+
55
+ #: ../functions.php:172
56
+ msgid "No chat sessions available at the moment"
57
+ msgstr "Não há sessões de bate-papo disponíveis no momento"
58
+
59
+ #: ../functions.php:190
60
+ msgid "Accept Chat"
61
+ msgstr "Aceitar Chat"
62
+
63
+ #: ../functions.php:195
64
+ msgid "Open Chat Window"
65
+ msgstr "Abrir Janela do Chat"
66
+
67
+ #: ../functions.php:431
68
+ msgid "complete"
69
+ msgstr "completo"
70
+
71
+ #: ../functions.php:434
72
+ msgid "pending"
73
+ msgstr "pendente"
74
+
75
+ #: ../functions.php:437
76
+ msgid "active"
77
+ msgstr "ativo"
78
+
79
+ #: ../functions.php:440
80
+ msgid "deleted"
81
+ msgstr "excluído"
82
+
83
+ #: ../functions.php:443
84
+ msgid "browsing"
85
+ msgstr "navegando"
86
+
87
+ #: ../functions.php:446
88
+ msgid "requesting chat"
89
+ msgstr "solicitando chat"
90
+
91
+ #: ../functions.php:449
92
+ msgid "Chat Ended - User still browsing"
93
+ msgstr "Conversa Encerrada - Usuário ainda navegando"
94
+
95
+ #: ../functions.php:452
96
+ msgid "User is browsing but doesn't want to chat"
97
+ msgstr "Usuário está navegando, mas não quer conversar"
98
+
99
+ #: ../functions.php:516
100
+ msgid "Get Pro Add-on to accept more chats"
101
+ msgstr "Compre a Versão Pro para aceitar mais chats"
102
+
103
+ #: ../includes/feedback-page.php:7
104
+ msgid "WP Live Chat Support Feedback"
105
+ msgstr "WP Live Chat Support Feedback"
106
+
107
+ #: ../includes/feedback-page.php:8
108
+ msgid "We'd love to hear your comments and/or suggestions"
109
+ msgstr "Gostaríamos muito de ouvir seus comentários e/ou sugestões"
110
+
111
+ #: ../includes/feedback-page.php:13
112
+ msgid "Your Name"
113
+ msgstr "Seu Nome"
114
+
115
+ #: ../includes/feedback-page.php:21
116
+ msgid "Your Email"
117
+ msgstr "Seu Email"
118
+
119
+ #: ../includes/feedback-page.php:29
120
+ msgid "Your Website"
121
+ msgstr "Seu Website"
122
+
123
+ #: ../includes/feedback-page.php:37 ../wp-live-chat-support.php:119
124
+ msgid "Feedback"
125
+ msgstr "Feedback"
126
+
127
+ #: ../includes/feedback-page.php:48
128
+ msgid "Send Feedback"
129
+ msgstr "Enviar Feedback"
130
+
131
+ #: ../includes/settings_page.php:6
132
+ msgid "WP Live Chat Support Settings"
133
+ msgstr "Configurações do WP Live Chat Support"
134
+
135
+ #: ../includes/settings_page.php:19
136
+ msgid "General Settings"
137
+ msgstr "Configurações Gerais"
138
+
139
+ #: ../includes/settings_page.php:20
140
+ msgid "Chat Box"
141
+ msgstr "Chat Box"
142
+
143
+ #: ../includes/settings_page.php:21 ../includes/settings_page.php:164
144
+ msgid "Offline Messages"
145
+ msgstr "Mensagens Offline"
146
+
147
+ #: ../includes/settings_page.php:22 ../includes/settings_page.php:201
148
+ msgid "Styling"
149
+ msgstr "Estilos"
150
+
151
+ #: ../includes/settings_page.php:23
152
+ msgid "Agents"
153
+ msgstr "Atendentes"
154
+
155
+ #: ../includes/settings_page.php:26
156
+ msgid "Main Settings"
157
+ msgstr "Configurações Principais"
158
+
159
+ #: ../includes/settings_page.php:29
160
+ msgid "Chat enabled"
161
+ msgstr "Chat ativo"
162
+
163
+ #: ../includes/settings_page.php:32
164
+ msgid "Yes"
165
+ msgstr "Sim"
166
+
167
+ #: ../includes/settings_page.php:33
168
+ msgid "No"
169
+ msgstr "Não"
170
+
171
+ #: ../includes/settings_page.php:39
172
+ msgid "Hide Chat"
173
+ msgstr "Esconder Chat"
174
+
175
+ #: ../includes/settings_page.php:40
176
+ msgid "Hides chat for 24hrs when user clicks X"
177
+ msgstr "Ocultar bate-papo por 24 horas quando o usuário clicar no X"
178
+
179
+ #: ../includes/settings_page.php:46 ../includes/settings_page.php:88
180
+ #: ../includes/settings_page.php:104 ../includes/settings_page.php:120
181
+ #: ../includes/settings_page.php:136 ../includes/settings_page.php:153
182
+ msgid "available in the"
183
+ msgstr "disponível na"
184
+
185
+ #: ../includes/settings_page.php:47 ../includes/settings_page.php:89
186
+ #: ../includes/settings_page.php:105 ../includes/settings_page.php:121
187
+ #: ../includes/settings_page.php:137 ../includes/settings_page.php:154
188
+ #: ../includes/settings_page.php:175 ../includes/settings_page.php:189
189
+ #: ../includes/settings_page.php:239 ../wp-live-chat-support.php:953
190
+ msgid "Pro Add-on"
191
+ msgstr "Versão Pro"
192
+
193
+ #: ../includes/settings_page.php:48 ../includes/settings_page.php:90
194
+ #: ../includes/settings_page.php:106 ../includes/settings_page.php:122
195
+ #: ../includes/settings_page.php:138 ../includes/settings_page.php:155
196
+ msgid "only"
197
+ msgstr "somente"
198
+
199
+ #: ../includes/settings_page.php:57
200
+ msgid "Chat Window Settings"
201
+ msgstr "Configurações da Janela do Chat"
202
+
203
+ #: ../includes/settings_page.php:60
204
+ msgid "Chat box alignment"
205
+ msgstr "Caixa de alinhamento do chat"
206
+
207
+ #: ../includes/settings_page.php:63
208
+ msgid "Bottom left"
209
+ msgstr "Inferior à esquerda"
210
+
211
+ #: ../includes/settings_page.php:64
212
+ msgid "Bottom right"
213
+ msgstr "Inferior à direita"
214
+
215
+ #: ../includes/settings_page.php:65
216
+ msgid "Left"
217
+ msgstr "Esquerda"
218
+
219
+ #: ../includes/settings_page.php:66
220
+ msgid "Right"
221
+ msgstr "Direita"
222
+
223
+ #: ../includes/settings_page.php:72
224
+ msgid "Auto Pop-up"
225
+ msgstr "Auto Pop-up"
226
+
227
+ #: ../includes/settings_page.php:76
228
+ msgid ""
229
+ "Expand the chat box automatically (prompts the user to enter their name and "
230
+ "email address)."
231
+ msgstr ""
232
+ "Expanda a caixa de bate-papo automaticamente (solicita ao usuário que digite "
233
+ "seu nome e endereço de e-mail)."
234
+
235
+ #: ../includes/settings_page.php:98
236
+ msgid "Picture"
237
+ msgstr "Foto"
238
+
239
+ #: ../includes/settings_page.php:101 ../includes/settings_page.php:117
240
+ msgid "Upload Image"
241
+ msgstr "Enviar Imagem"
242
+
243
+ #: ../includes/settings_page.php:114
244
+ msgid "Logo"
245
+ msgstr "Logo"
246
+
247
+ #: ../includes/settings_page.php:130
248
+ msgid "Chat delay (seconds)"
249
+ msgstr "Delay do chat (segundos)"
250
+
251
+ #: ../includes/settings_page.php:146
252
+ msgid "Chat notifications"
253
+ msgstr "Notificações do chat"
254
+
255
+ #: ../includes/settings_page.php:150
256
+ msgid "Alert me via email as soon as someone wants to chat"
257
+ msgstr "Avisar por e-mail quando alguém quiser conversar"
258
+
259
+ #: ../includes/settings_page.php:168
260
+ msgid "Email Address"
261
+ msgstr "Endereço de Email"
262
+
263
+ #: ../includes/settings_page.php:174
264
+ msgid "Get offline messages with the "
265
+ msgstr "Receba mensagens off-line com a"
266
+
267
+ #: ../includes/settings_page.php:183
268
+ msgid "Offline text"
269
+ msgstr "Texto offline"
270
+
271
+ #: ../includes/settings_page.php:188 ../includes/settings_page.php:238
272
+ msgid "Edit these text fields using the "
273
+ msgstr "Editar campos de texto usando a"
274
+
275
+ #: ../includes/settings_page.php:204
276
+ msgid "Chat box fill color"
277
+ msgstr "Preenchimento de cor do Chat box"
278
+
279
+ #: ../includes/settings_page.php:210
280
+ msgid "Chat box font color"
281
+ msgstr "Cor da fonte do Chat Box"
282
+
283
+ #: ../includes/settings_page.php:217
284
+ msgid "First section text"
285
+ msgstr "Texto da primeira seção"
286
+
287
+ #: ../includes/settings_page.php:219 ../wp-live-chat-support.php:208
288
+ msgid "Questions?"
289
+ msgstr "Dúvidas?"
290
+
291
+ #: ../includes/settings_page.php:220 ../wp-live-chat-support.php:208
292
+ msgid "Chat with us"
293
+ msgstr "Converse conosco"
294
+
295
+ #: ../includes/settings_page.php:224
296
+ msgid "Second section text"
297
+ msgstr "Texto da segunda seção"
298
+
299
+ #: ../includes/settings_page.php:226 ../wp-live-chat-support.php:225
300
+ msgid "Start Chat"
301
+ msgstr "Iniciar Chat"
302
+
303
+ #: ../includes/settings_page.php:227 ../wp-live-chat-support.php:232
304
+ msgid "Connecting you to a sales person. Please be patient."
305
+ msgstr "Conectando a um atendente. Por favor, seja paciente."
306
+
307
+ #: ../includes/settings_page.php:233
308
+ msgid "Reactivate chat section text"
309
+ msgstr "Reativar seção de texto do chat"
310
+
311
+ #: ../includes/settings_page.php:235 ../wp-live-chat-support.php:235
312
+ msgid "Reactivating your previous chat..."
313
+ msgstr "Reativando seu chat anterior..."
314
+
315
+ #: ../includes/settings_page.php:250
316
+ msgid "Multiple Agents"
317
+ msgstr "Múltiplos Atendentes"
318
+
319
+ #: ../includes/settings_page.php:251
320
+ msgid "Get"
321
+ msgstr "Obter"
322
+
323
+ #: ../includes/settings_page.php:251
324
+ msgid "Multiple agent support"
325
+ msgstr "Suporte de múltiplos atendentes"
326
+
327
+ #: ../includes/settings_page.php:254
328
+ msgid "Save Settings"
329
+ msgstr "Salvar Configurações"
330
+
331
+ #: ../includes/welcome_page.php:4
332
+ msgid "Welcome to "
333
+ msgstr "Bem-vindo ao"
334
+
335
+ #: ../includes/welcome_page.php:15
336
+ msgid "WordPress.org plugin repository "
337
+ msgstr "Repositório do plugin no WordPress.org"
338
+
339
+ #: ../includes/welcome_page.php:18
340
+ msgid "Search Term"
341
+ msgstr "Termo de Pesquisa"
342
+
343
+ #: ../includes/welcome_page.php:22
344
+ msgid "Google or other search Engine"
345
+ msgstr "Google ou outro motor de busca"
346
+
347
+ #: ../includes/welcome_page.php:28
348
+ msgid "Friend recommendation"
349
+ msgstr "Recomendação de um amigo"
350
+
351
+ #: ../includes/welcome_page.php:34
352
+ msgid "Other"
353
+ msgstr "Outro"
354
+
355
+ #: ../includes/welcome_page.php:38
356
+ msgid "Please Explain"
357
+ msgstr "Por favor, explique"
358
+
359
+ #: ../includes/welcome_page.php:47
360
+ msgid "Submit"
361
+ msgstr "Submeter"
362
+
363
+ #: ../includes/welcome_page.php:49
364
+ msgid "Skip"
365
+ msgstr "Pular"
366
+
367
+ #: ../wp-live-chat-support.php:116 ../wp-live-chat-support.php:508
368
+ msgid "Live Chat"
369
+ msgstr "Live Chat"
370
+
371
+ #: ../wp-live-chat-support.php:117
372
+ msgid "Settings"
373
+ msgstr "Configurações"
374
+
375
+ #: ../wp-live-chat-support.php:118
376
+ msgid "History"
377
+ msgstr "Histórico"
378
+
379
+ #: ../wp-live-chat-support.php:239
380
+ msgid "Press ENTER to send your message"
381
+ msgstr "Pressione ENTER para enviar sua mensagem"
382
+
383
+ #: ../wp-live-chat-support.php:243 ../wp-live-chat-support.php:624
384
+ msgid "Send"
385
+ msgstr "Enviar"
386
+
387
+ #: ../wp-live-chat-support.php:473
388
+ msgid "Dear Pro User"
389
+ msgstr "Caro Pro User"
390
+
391
+ #: ../wp-live-chat-support.php:474
392
+ msgid ""
393
+ "You are using an outdated version of <strong>WP Live Chat Support Pro</"
394
+ "strong>. Please"
395
+ msgstr ""
396
+ "Você está usando uma versão desatualizada do <strong>WP Live Chat Support "
397
+ "Pro</strong>. Por favor"
398
+
399
+ #: ../wp-live-chat-support.php:474
400
+ msgid "update to at least version"
401
+ msgstr "atualizar para a versão mais recente"
402
+
403
+ #: ../wp-live-chat-support.php:474
404
+ msgid "to ensure all functionality is in working order"
405
+ msgstr "para garantir que todas as funcionalidades permaneçam em funcionamento"
406
+
407
+ #: ../wp-live-chat-support.php:475
408
+ msgid ""
409
+ "You're live chat box on your website has been temporarily disabled until the "
410
+ "Pro plugin has been updated. This is to ensure a smooth and hassle-free user "
411
+ "experience for both yourself and your visitors."
412
+ msgstr ""
413
+ "O Chat Box foi temporariamente desativado até que o plug-in Pro seja "
414
+ "atualizado. Isso é necessário para garantir uma experiência de usuário "
415
+ "agradável e sem complicações, tanto para você quanto para seus visitantes."
416
+
417
+ #: ../wp-live-chat-support.php:476
418
+ msgid ""
419
+ "You can update your plugin <a href='./update-core.php'>here</a>, <a href='./"
420
+ "plugins.php'>here</a> or <a href='http://wp-livechat.com/get-updated-"
421
+ "version/' target='_BLANK'>here</a>."
422
+ msgstr ""
423
+ "Você pode atualizar o seu plugin <a href='./update-core.php'>aqui</a>, <a "
424
+ "href='./plugins.php'>aqui</a> ou <a href='http://wp-livechat.com/get-updated-"
425
+ "version/' target='_BLANK'>aqui</a>."
426
+
427
+ #: ../wp-live-chat-support.php:477
428
+ msgid "If you are having difficulty updating the plugin, please contact"
429
+ msgstr ""
430
+ "Se você está tendo dificuldade em atualizar o plugin, por favor entre em "
431
+ "contato"
432
+
433
+ #: ../wp-live-chat-support.php:502
434
+ msgid "Experiencing problems with the plugin?"
435
+ msgstr "Enfrentando problemas com o plugin?"
436
+
437
+ #: ../wp-live-chat-support.php:504
438
+ msgid "Review the documentation."
439
+ msgstr "Reveja a documentação."
440
+
441
+ #: ../wp-live-chat-support.php:505
442
+ msgid "Or ask a question on our"
443
+ msgstr "Ou faça uma pergunta em nosso"
444
+
445
+ #: ../wp-live-chat-support.php:527
446
+ msgid "Visitors on site"
447
+ msgstr "Visitantes no site"
448
+
449
+ #: ../wp-live-chat-support.php:528
450
+ msgid "With the Pro add-on of WP Live Chat Support, you can"
451
+ msgstr "Com a Versão Pro do WP Live Chat Support, você pode"
452
+
453
+ #: ../wp-live-chat-support.php:528
454
+ msgid "see who's online and initiate chats"
455
+ msgstr "ver quem está online e iniciar chats"
456
+
457
+ #: ../wp-live-chat-support.php:528
458
+ msgid "with your online visitors with the click of a button."
459
+ msgstr "com seus visitantes on-line com o clique de um botão."
460
+
461
+ #: ../wp-live-chat-support.php:528
462
+ msgid "Buy the Pro add-on now for only $29.95 once off. Free Updates FOREVER."
463
+ msgstr ""
464
+ "Compre a Versão Pro agora por apenas um único pagamento de $29,95. "
465
+ "Atualizações grátis para SEMPRE."
466
+
467
+ #: ../wp-live-chat-support.php:528
468
+ msgid "Buy the Pro add-on now for only $29.95 once off. Free Updates Forever."
469
+ msgstr ""
470
+ "Compre a Versão Pro agora por apenas um único pagamento de $29,95. "
471
+ "Atualizações grátis para SEMPRE."
472
+
473
+ #: ../wp-live-chat-support.php:593
474
+ msgid "Previous"
475
+ msgstr "Anterior"
476
+
477
+ #: ../wp-live-chat-support.php:593
478
+ msgid "Active"
479
+ msgstr "Ativo"
480
+
481
+ #: ../wp-live-chat-support.php:614
482
+ msgid "End chat"
483
+ msgstr "Encerrar Chat"
484
+
485
+ #: ../wp-live-chat-support.php:724
486
+ msgid "User has opened the chat window"
487
+ msgstr "Usuário abriu a janela de bate-papo"
488
+
489
+ #: ../wp-live-chat-support.php:729
490
+ msgid "User has minimized the chat window"
491
+ msgstr "Usuário minimizou a janela de bate-papo"
492
+
493
+ #: ../wp-live-chat-support.php:734
494
+ msgid "User has maximized the chat window"
495
+ msgstr "Usuário maximizou a janela de bate-papo"
496
+
497
+ #: ../wp-live-chat-support.php:739
498
+ msgid "User has closed and ended the chat"
499
+ msgstr "Usuário fechou e encerrou o bate-papo"
500
+
501
+ #: ../wp-live-chat-support.php:948
502
+ msgid "WP Live Chat History"
503
+ msgstr "Histórico do WP Live Chat"
504
+
505
+ #: ../wp-live-chat-support.php:978
506
+ msgid "Your settings have been saved."
507
+ msgstr "Suas configurações foram salvas."
508
+
509
+ #: ../wp-live-chat-support.php:993
510
+ msgid "Thank You for your feedback!"
511
+ msgstr "Obrigado pelo seu feedback!"
512
+
513
+ #: ../wp-live-chat-support.php:997 ../wp-live-chat-support.php:1010
514
+ msgid "Thank you for your feedback. We will be in touch soon"
515
+ msgstr "Obrigado pelo seu feedback. Nós entraremos em contato em breve"
516
+
517
+ #: ../wp-live-chat-support.php:1014
518
+ msgid "There was a problem sending your feedback. Please log your feedback on "
519
+ msgstr ""
520
+ "Houve um problema ao enviar o seu feedback. Por favor, Log seu feedback sobre"
readme.txt CHANGED
@@ -16,9 +16,10 @@ The most cost effective Live Chat plugin. Chat with your visitors for free! WP L
16
  = Free Version Features =
17
 
18
  * WP Live Chat Support is a fully functional live chat plugin
19
- * Initiate live chats with your visitors
20
  * Easy to use interface for both the admin and the visitor
21
  * Users can drag the live chat box around their page
 
22
  * No advertising or links
23
  * No "Powered by" links on the live chat window
24
  * No monthly live chat subscriptions needed
@@ -48,11 +49,21 @@ Our live chat plugin instantly gives you the ability to chat directly with poten
48
 
49
  Once the live chat plugin is activated, click on "Live Chat" in the left menu navigation. As soon as a visitor lands on your website, their details will be displayed in the live chat control panel. A live chat box will be displayed on their screen. If they fill out their details and click "Start chat", a ringing sound will trigger in your live chat control panel. Once you accept the chat, you can communicate directly with your visitor.
50
 
51
-
52
  = Coming Soon to WP Live Chat Support =
53
 
54
  * More advanced customization and themes
55
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  == Installation ==
58
 
@@ -64,13 +75,14 @@ Once the live chat plugin is activated, click on "Live Chat" in the left menu na
64
  == Frequently Asked Questions ==
65
 
66
  = I've installed the live chat plugin, now what? =
67
-
68
  Once installed and activated, a link should appear in your left navigation panel within your WP-ADMIN section. Click on the "Live Chat" link and follow the on screen instructions.
69
 
70
  = Where can I find documentation for WP Live Chat Support? =
71
-
72
  Please review the live chat documentation on [our website](http://wp-livechat.com/documentation/).
73
 
 
 
 
74
  = Troubleshooting =
75
  If you're experiencing issues running WP Live Chat Support, please take note of the following:
76
 
@@ -94,10 +106,14 @@ If the live chat box still does not appear on your website, please go through th
94
  == Upgrade Notice ==
95
 
96
  = 4.1.1 =
97
- It is highly recommended that you upgrade to WP Live Chat Support version 4.1.1
98
 
99
  == Changelog ==
100
 
 
 
 
 
101
  = 4.1.3 2014-07-30 =
102
  * Code improvements (PHP warnings)
103
 
16
  = Free Version Features =
17
 
18
  * WP Live Chat Support is a fully functional live chat plugin
19
+ * Live chat directly with your visitors
20
  * Easy to use interface for both the admin and the visitor
21
  * Users can drag the live chat box around their page
22
+ * Change the colors of the live chat box
23
  * No advertising or links
24
  * No "Powered by" links on the live chat window
25
  * No monthly live chat subscriptions needed
49
 
50
  Once the live chat plugin is activated, click on "Live Chat" in the left menu navigation. As soon as a visitor lands on your website, their details will be displayed in the live chat control panel. A live chat box will be displayed on their screen. If they fill out their details and click "Start chat", a ringing sound will trigger in your live chat control panel. Once you accept the chat, you can communicate directly with your visitor.
51
 
 
52
  = Coming Soon to WP Live Chat Support =
53
 
54
  * More advanced customization and themes
55
 
56
+ = Translations =
57
+ Get a free copy of the WP Live Chat Support Pro version in exchange for translating our plugin!
58
+
59
+ * English
60
+ * Brazilian (Gustavo Silva)
61
+ * Chinese - Simplified^
62
+ * Chinese - Traditional^
63
+ * Italian^
64
+
65
+ ^ Language file needs updating
66
+
67
 
68
  == Installation ==
69
 
75
  == Frequently Asked Questions ==
76
 
77
  = I've installed the live chat plugin, now what? =
 
78
  Once installed and activated, a link should appear in your left navigation panel within your WP-ADMIN section. Click on the "Live Chat" link and follow the on screen instructions.
79
 
80
  = Where can I find documentation for WP Live Chat Support? =
 
81
  Please review the live chat documentation on [our website](http://wp-livechat.com/documentation/).
82
 
83
+ = Does WP Live Chat Support connect to a third party server? =
84
+ No. WP Live Chat Support was developed to specifically create and manage live chats on your server. Installing this plugin will essentially turn your website into it's own live chat server. We have put every effort into making this process as smooth as possible while ensuring low resource usage on your host. We have incorporated long polling into the live chat functionality which ensures a quick chat response time between the admin and the user while maintaining a low resource footprint.
85
+
86
  = Troubleshooting =
87
  If you're experiencing issues running WP Live Chat Support, please take note of the following:
88
 
106
  == Upgrade Notice ==
107
 
108
  = 4.1.1 =
109
+ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
110
 
111
  == Changelog ==
112
 
113
+ = 4.1.4 2014-07-31 =
114
+ * Significant performance improvements
115
+ * Brazilian translation added - thank you Gustavo Silva
116
+
117
  = 4.1.3 2014-07-30 =
118
  * Code improvements (PHP warnings)
119
 
screenshot-2.jpg CHANGED
Binary file
screenshot-3.jpg CHANGED
Binary file
wp-live-chat-support.php CHANGED
@@ -3,13 +3,17 @@
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.1.3
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
- /* 4.1.3
 
 
 
 
13
  * Code improvements (PHP warnings)
14
  *
15
  * 4.1.2
@@ -42,7 +46,7 @@ global $wplc_tblname_chats;
42
  global $wplc_tblname_msgs;
43
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
44
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
45
- $wplc_version = "4.1.3";
46
 
47
  define('WPLC_BASIC_PLUGIN_DIR',dirname(__FILE__));
48
  define('WPLC_BASIC_PLUGIN_URL',plugins_url()."/wp-live-chat-support/");
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.1.4
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
+ /* 4.1.4
13
+ * Significant performance improvements
14
+ * Brazilian translation added - thank you Gustavo Silva
15
+ *
16
+ * 4.1.3
17
  * Code improvements (PHP warnings)
18
  *
19
  * 4.1.2
46
  global $wplc_tblname_msgs;
47
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
48
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
49
+ $wplc_version = "4.1.4";
50
 
51
  define('WPLC_BASIC_PLUGIN_DIR',dirname(__FILE__));
52
  define('WPLC_BASIC_PLUGIN_URL',plugins_url()."/wp-live-chat-support/");