Comments – wpDiscuz - Version 3.1.2

Version Description

  • Fixed Bug: CAPTCHA issue on some hosting services and with some secure plugins
  • Updated: Polish (pl_PL) translation, thanks to Radosaw Rak

IMPORTANT:

  • If you have JatPack installed please deactivate JatPack comments, it affects wpDiscuz
  • If you have a Cache Plugin and CDN, please delete all caches and purge CDN after wpDiscuz update.
Download this release

Release Info

Developer AdvancedCoding
Plugin Icon 128x128 Comments – wpDiscuz
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

assets/addons/avatarmanager/avatar-manager.jpg ADDED
Binary file
assets/addons/avatarmanager/avatar-manager1.jpg ADDED
Binary file
assets/addons/fileuploader/file-uploader.png ADDED
Binary file
assets/addons/recaptcha/recaptcha-icon.jpeg ADDED
Binary file
assets/img/plugin-icon/plugin-icon-48.png CHANGED
Binary file
class.WpdiscuzCore.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: wpDiscuz - Supercharged native comments
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- * Version: 3.1.1
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://www.gvectors.com/
9
  * Plugin URI: http://www.gvectors.com/wpdiscuz/
@@ -498,7 +498,7 @@ class WpdiscuzCore implements WpDiscuzConstants {
498
  $order = trim($order);
499
  $args['order'] = $order ? $order : $this->optionsSerialized->wordpressCommentOrder;
500
  $args['last_parent_id'] = intval($lastParentId);
501
- }
502
  $args['post_id'] = $postId;
503
  $data = $this->getWPComments($args);
504
  wp_die(json_encode($data));
@@ -684,9 +684,9 @@ class WpdiscuzCore implements WpDiscuzConstants {
684
  * register options page for plugin
685
  */
686
  public function addPluginOptionsPage() {
687
- add_submenu_page('edit-comments.php', 'WpDiscuz Settings', 'WpDiscuz Settings', 'manage_options', 'wpdiscuz_options_page', array(&$this->options, 'mainOptionsForm'));
688
  if (!$this->optionsSerialized->isUsePoMo) {
689
- add_submenu_page('edit-comments.php', 'WpDiscuz Phrases', 'WpDiscuz Phrases', 'manage_options', 'wpdiscuz_phrases_page', array(&$this->options, 'phrasesOptionsForm'));
690
  }
691
  }
692
 
@@ -834,7 +834,7 @@ class WpdiscuzCore implements WpDiscuzConstants {
834
 
835
  public function initCurrentPostType() {
836
  global $post;
837
- if ($post && in_array($post->post_type, $this->optionsSerialized->postTypes) && (is_singular() || is_front_page())&& post_type_supports($post->post_type, 'comments')) {
838
  add_filter('comments_template', array(&$this, 'addCommentForm'), 10);
839
  }
840
  }
3
  /*
4
  * Plugin Name: wpDiscuz - Supercharged native comments
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ * Version: 3.1.2
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://www.gvectors.com/
9
  * Plugin URI: http://www.gvectors.com/wpdiscuz/
498
  $order = trim($order);
499
  $args['order'] = $order ? $order : $this->optionsSerialized->wordpressCommentOrder;
500
  $args['last_parent_id'] = intval($lastParentId);
501
+ }
502
  $args['post_id'] = $postId;
503
  $data = $this->getWPComments($args);
504
  wp_die(json_encode($data));
684
  * register options page for plugin
685
  */
686
  public function addPluginOptionsPage() {
687
+ add_submenu_page('edit-comments.php', 'wpdiscuz Settings', 'wpdiscuz Settings', 'manage_options', 'wpdiscuz_options_page', array(&$this->options, 'mainOptionsForm'));
688
  if (!$this->optionsSerialized->isUsePoMo) {
689
+ add_submenu_page('edit-comments.php', 'wpdiscuz Phrases', 'wpdiscuz Phrases', 'manage_options', 'wpdiscuz_phrases_page', array(&$this->options, 'phrasesOptionsForm'));
690
  }
691
  }
692
 
834
 
835
  public function initCurrentPostType() {
836
  global $post;
837
+ if ($post && in_array($post->post_type, $this->optionsSerialized->postTypes) && (is_singular() || is_front_page()) && post_type_supports($post->post_type, 'comments')) {
838
  add_filter('comments_template', array(&$this, 'addCommentForm'), 10);
839
  }
840
  }
languages/wpdiscuz-pl_PL.mo CHANGED
Binary file
languages/wpdiscuz-pl_PL.po CHANGED
@@ -2,15 +2,15 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: wpDiscuz - Wordpress Comments\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpdiscuz\n"
5
- "POT-Creation-Date: 2015-11-07 16:06+0100\n"
6
- "PO-Revision-Date: 2015-11-07 16:34+0100\n"
7
  "Last-Translator: advancedcoding <advancedcoding@mail.ru>\n"
8
  "Language-Team: Radoslaw Rak <radekdb87@gmail.com>\n"
9
  "Language: pl_PL\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.6\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: wc.php\n"
16
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
@@ -22,341 +22,345 @@ msgstr ""
22
  "X-Poedit-SearchPath-0: .\n"
23
  "X-Poedit-SearchPathExcluded-0: *.js\n"
24
 
25
- #: class.WpdiscuzCore.php:216
26
- #: templates/comment/class.WpdiscuzTemplateBuilder.php:241
27
  msgid "Anonymous"
28
  msgstr "Anonimowo"
29
 
30
- #: class.WpdiscuzCore.php:791 options/options-layouts/settings-social.php:12
31
  #: options/options-layouts/settings-social.php:14
32
  #: options/options-layouts/settings-social.php:16
33
  #: options/options-layouts/settings-social.php:18
34
  msgid "Settings"
35
  msgstr "Ustawienia"
36
 
37
- #: class.WpdiscuzCore.php:793
38
  msgid "Phrases"
39
  msgstr "Frazy"
40
 
41
- #: options/class.WpdiscuzOptions.php:37 options/class.WpdiscuzOptions.php:271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  msgid "Hacker?"
43
  msgstr "Haker?"
44
 
45
- #: options/class.WpdiscuzOptions.php:93
46
  msgid "wpDiscuz General Settings"
47
  msgstr "Ogólne ustawienia wpDiscuz"
48
 
49
- #: options/class.WpdiscuzOptions.php:184
50
  msgid "General settings"
51
  msgstr "Ogólne ustawienia"
52
 
53
- #: options/class.WpdiscuzOptions.php:185
54
  #: options/options-layouts/settings-live-update.php:7
55
  msgid "Live Update"
56
  msgstr "Live Update"
57
 
58
- #: options/class.WpdiscuzOptions.php:186
59
  #: options/options-layouts/settings-show-hide.php:7
60
  msgid "Show/Hide Components"
61
  msgstr "Pokaż/ukryj składniki"
62
 
63
- #: options/class.WpdiscuzOptions.php:187
64
  msgid "Email Subscription"
65
  msgstr "Subskrypcja e-mail"
66
 
67
- #: options/class.WpdiscuzOptions.php:187
68
  msgid "and Postmatic"
69
  msgstr "i Postmatic"
70
 
71
- #: options/class.WpdiscuzOptions.php:188
72
  #: options/options-layouts/settings-style.php:7
73
  msgid "Background and Colors"
74
  msgstr "Tło i kolory"
75
 
76
- #: options/class.WpdiscuzOptions.php:189
77
  #: options/options-layouts/settings-social.php:91
78
  msgid "Social Login"
79
  msgstr "Logowanie społecznościowe"
80
 
81
- #: options/class.WpdiscuzOptions.php:253
 
 
 
 
 
82
  msgid "Reset Options"
83
  msgstr "Przywróć opcje"
84
 
85
- #: options/class.WpdiscuzOptions.php:255
86
  msgid "Refresh comment optimization"
87
  msgstr "Odśwież optymizację komentarza"
88
 
89
- #: options/class.WpdiscuzOptions.php:256 options/class.WpdiscuzOptions.php:446
90
  msgid "Save Changes"
91
  msgstr "Zapisz zmiany"
92
 
93
- #: options/class.WpdiscuzOptions.php:385
94
  msgid "WpDiscuz Front-end Phrases"
95
  msgstr "Czołowe frazy WpDiscuz"
96
 
97
- #: options/class.WpdiscuzOptions.php:395
98
  msgid "General"
99
  msgstr "Ogólne"
100
 
101
- #: options/class.WpdiscuzOptions.php:396
102
  msgid "Form"
103
  msgstr "Od"
104
 
105
- #: options/class.WpdiscuzOptions.php:397
106
- #: options/class.WpdiscuzOptionsSerialized.php:426
107
  #: options/phrases-layouts/phrases-general.php:32
108
  msgid "Comment"
109
  msgstr "Komentarz"
110
 
111
- #: options/class.WpdiscuzOptions.php:398
112
  msgid "Date/Time"
113
  msgstr "Data/Czas"
114
 
115
- #: options/class.WpdiscuzOptions.php:399
116
- #: options/class.WpdiscuzOptionsSerialized.php:431
117
  msgid "Email"
118
  msgstr "E-mail"
119
 
120
- #: options/class.WpdiscuzOptions.php:400
121
  msgid "Notification"
122
  msgstr "Powiadomienie"
123
 
124
- #: options/class.WpdiscuzOptionsSerialized.php:424
125
  #: options/phrases-layouts/phrases-general.php:12
126
  msgid "Leave a Reply"
127
  msgstr "Dodaj komentarz"
128
 
129
- #: options/class.WpdiscuzOptionsSerialized.php:425
130
  msgid "Be the First to Comment!"
131
  msgstr "Bądź pierwszy!"
132
 
133
- #: options/class.WpdiscuzOptionsSerialized.php:427
134
  msgid "Comments"
135
  msgstr "komentarzy"
136
 
137
- #: options/class.WpdiscuzOptionsSerialized.php:428
138
  msgid "on"
139
  msgstr "do"
140
 
141
- #: options/class.WpdiscuzOptionsSerialized.php:429
142
  msgid "Start the discussion"
143
  msgstr "Rozpocznij dyskusję"
144
 
145
- #: options/class.WpdiscuzOptionsSerialized.php:430
146
  msgid "Join the discussion"
147
  msgstr "Dołącz do dyskusji"
148
 
149
- #: options/class.WpdiscuzOptionsSerialized.php:432
150
  msgid "Name"
151
  msgstr "Imię"
152
 
153
- #: options/class.WpdiscuzOptionsSerialized.php:433
154
  msgid "WebSite URL"
155
  msgstr "Witryna internetowa"
156
 
157
- #: options/class.WpdiscuzOptionsSerialized.php:434
158
  msgid "Please insert the code above to comment"
159
  msgstr "Proszę wpisać kod znajdujący się powyżej, aby móc dodać komentarz"
160
 
161
- #: options/class.WpdiscuzOptionsSerialized.php:435
162
  msgid "Post Comment"
163
  msgstr "Opublikuj komentarz"
164
 
165
- #: options/class.WpdiscuzOptionsSerialized.php:436
166
  #: options/phrases-layouts/phrases-form.php:82
167
  #: options/phrases-layouts/phrases-form.php:86
168
  msgid "Notify of"
169
  msgstr "Powiadom o"
170
 
171
- #: options/class.WpdiscuzOptionsSerialized.php:437
172
  #: options/phrases-layouts/phrases-form.php:96
173
  msgid "new follow-up comments"
174
  msgstr "nowych dalszych komentarzach"
175
 
176
- #: options/class.WpdiscuzOptionsSerialized.php:438
177
  msgid "new replies to my comments"
178
  msgstr "nowych odpowiedziach na moje komentarze"
179
 
180
- #: options/class.WpdiscuzOptionsSerialized.php:439
181
  #: options/phrases-layouts/phrases-form.php:116
182
  msgid "Notify of new replies to this comment"
183
  msgstr "Powiadom o nowych odpowiedziach na ten komentarz"
184
 
185
- #: options/class.WpdiscuzOptionsSerialized.php:440
186
  #: options/phrases-layouts/phrases-form.php:122
187
  #: options/phrases-layouts/phrases-form.php:126
188
  msgid "Sort by"
189
  msgstr "Sortuj wg"
190
 
191
- #: options/class.WpdiscuzOptionsSerialized.php:441
192
  #: options/phrases-layouts/phrases-form.php:132
193
  #: options/phrases-layouts/phrases-form.php:136
194
  msgid "newest"
195
  msgstr "najnowszy"
196
 
197
- #: options/class.WpdiscuzOptionsSerialized.php:442
198
  #: options/phrases-layouts/phrases-form.php:142
199
  #: options/phrases-layouts/phrases-form.php:146
200
  msgid "oldest"
201
  msgstr "najstarszy"
202
 
203
- #: options/class.WpdiscuzOptionsSerialized.php:443
204
  #: options/phrases-layouts/phrases-form.php:152
205
  #: options/phrases-layouts/phrases-form.php:156
206
  msgid "most voted"
207
  msgstr "oceniany"
208
 
209
- #: options/class.WpdiscuzOptionsSerialized.php:444
210
  msgid "Load More Comments"
211
  msgstr "Pokaż więcej komentarzy"
212
 
213
- #: options/class.WpdiscuzOptionsSerialized.php:445
214
  #: options/phrases-layouts/phrases-general.php:72
215
  msgid "Load Rest of Comments"
216
  msgstr "Załaduj przywracanie komentarzy"
217
 
218
- #: options/class.WpdiscuzOptionsSerialized.php:446
219
  #: options/phrases-layouts/phrases-comment.php:12
220
  msgid "Reply"
221
  msgstr "Odpowiedz"
222
 
223
- #: options/class.WpdiscuzOptionsSerialized.php:447
224
  #: options/phrases-layouts/phrases-comment.php:22
225
  msgid "Share"
226
  msgstr "Udostępnij"
227
 
228
- #: options/class.WpdiscuzOptionsSerialized.php:448
229
  #: options/phrases-layouts/phrases-comment.php:32
230
- #: templates/comment/class.WpdiscuzTemplateBuilder.php:178
231
  msgid "Edit"
232
  msgstr "Edytuj"
233
 
234
- #: options/class.WpdiscuzOptionsSerialized.php:449
235
  #: options/phrases-layouts/phrases-comment.php:42
236
  msgid "Share On Facebook"
237
  msgstr "Udostępnij na Facebooku"
238
 
239
- #: options/class.WpdiscuzOptionsSerialized.php:450
240
  #: options/phrases-layouts/phrases-comment.php:52
241
  msgid "Share On Twitter"
242
  msgstr "Udostępnij na Twitterze"
243
 
244
- #: options/class.WpdiscuzOptionsSerialized.php:451
245
  #: options/phrases-layouts/phrases-comment.php:62
246
  msgid "Share On Google"
247
  msgstr "Udostępnij na Google"
248
 
249
- #: options/class.WpdiscuzOptionsSerialized.php:452
250
  #: options/phrases-layouts/phrases-comment.php:72
251
  msgid "Share On VKontakte"
252
  msgstr "Udostępnij na VKontakte"
253
 
254
- #: options/class.WpdiscuzOptionsSerialized.php:453
255
  #: options/phrases-layouts/phrases-comment.php:82
256
  msgid "Share On Odnoklassniki"
257
  msgstr "Udostępnij na Odnoklassniki"
258
 
259
- #: options/class.WpdiscuzOptionsSerialized.php:454
260
  #: options/phrases-layouts/phrases-comment.php:92
261
  msgid "Hide Replies"
262
  msgstr "Ukryj odpowiedzi"
263
 
264
- #: options/class.WpdiscuzOptionsSerialized.php:455
265
  #: options/phrases-layouts/phrases-comment.php:102
266
  msgid "Show Replies"
267
  msgstr "Pokaż odpowiedzi"
268
 
269
- #: options/class.WpdiscuzOptionsSerialized.php:456
270
- msgid "Guest"
271
- msgstr "Gość"
272
-
273
- #: options/class.WpdiscuzOptionsSerialized.php:457
274
- msgid "Member"
275
- msgstr "Użytkownik"
276
-
277
- #: options/class.WpdiscuzOptionsSerialized.php:458
278
- msgid "Author"
279
- msgstr "Autor"
280
-
281
- #: options/class.WpdiscuzOptionsSerialized.php:459
282
- msgid "Admin"
283
- msgstr "Admin"
284
-
285
- #: options/class.WpdiscuzOptionsSerialized.php:460
286
  #: options/phrases-layouts/phrases-general.php:86
287
  msgid "New Comment"
288
  msgstr "Nowy komentarz"
289
 
290
- #: options/class.WpdiscuzOptionsSerialized.php:461
291
  msgid "New comment on the discussion section you've been interested in"
292
  msgstr "Pojawił się nowy komentarz, byłeś nim zainteresowany w"
293
 
294
- #: options/class.WpdiscuzOptionsSerialized.php:462
295
  #: options/phrases-layouts/phrases-email.php:36
296
  #: options/phrases-layouts/phrases-general.php:106
297
- #: utils/class.WpdiscuzEmailHelper.php:156
298
  msgid "New Reply"
299
  msgstr "Nowa odpowiedź"
300
 
301
- #: options/class.WpdiscuzOptionsSerialized.php:463
302
- #: utils/class.WpdiscuzEmailHelper.php:157
303
  msgid "New reply on the discussion section you've been interested in"
304
  msgstr "Pojawiła się nowa odpowiedź, byłeś nią zainteresowany w"
305
 
306
- #: options/class.WpdiscuzOptionsSerialized.php:464
307
  msgid "You're subscribed for new replies on this comment"
308
  msgstr "Subskrybujesz o nowych odpowiedziach na ten komentarz"
309
 
310
- #: options/class.WpdiscuzOptionsSerialized.php:465
311
  msgid "You're subscribed for new replies on all your comments"
312
  msgstr "Subskrybujesz o nowych odpowiedziach na wszystkie swoje komentarze"
313
 
314
- #: options/class.WpdiscuzOptionsSerialized.php:466
315
  msgid "You're subscribed for new follow-up comments on this post"
316
  msgstr "Subskrybujesz o dalszych nowych komentarzach na tym wpisie"
317
 
318
- #: options/class.WpdiscuzOptionsSerialized.php:467
319
  #: options/phrases-layouts/phrases-email.php:52
320
  #: options/phrases-layouts/phrases-email.php:56
321
  msgid "Unsubscribe"
322
  msgstr "Anuluj subskrypcję"
323
 
324
- #: options/class.WpdiscuzOptionsSerialized.php:468
325
  #: options/phrases-layouts/phrases-email.php:66
326
  msgid "Cancel subscription"
327
  msgstr "Anuluj subskrypcję"
328
 
329
- #: options/class.WpdiscuzOptionsSerialized.php:469
330
  #: options/phrases-layouts/phrases-notification.php:32
331
  msgid "You've successfully unsubscribed."
332
  msgstr "Pomyślnie odrzuciłeś(aś) subskrypcję."
333
 
334
- #: options/class.WpdiscuzOptionsSerialized.php:470
335
  #: options/phrases-layouts/phrases-notification.php:22
336
  msgid "You've successfully subscribed."
337
  msgstr "Pomyślnie potwierdziłeś(aś) subskrypcję."
338
 
339
- #: options/class.WpdiscuzOptionsSerialized.php:471
340
  #: options/phrases-layouts/phrases-email.php:72
341
  #: options/phrases-layouts/phrases-email.php:76
342
  msgid "Confirm your subscription"
343
  msgstr "Potwierdź swoją subskrypcję"
344
 
345
- #: options/class.WpdiscuzOptionsSerialized.php:472
346
  #: options/phrases-layouts/phrases-email.php:82
347
  #: options/phrases-layouts/phrases-email.php:86
348
  msgid "You've successfully confirmed your subscription."
349
  msgstr "Pomyślnie potwierdziłeś(aś) swoją subskrypcję."
350
 
351
- #: options/class.WpdiscuzOptionsSerialized.php:473
352
  #: options/phrases-layouts/phrases-email.php:96
353
- #: utils/class.WpdiscuzEmailHelper.php:46
354
  msgid "Subscribe Confirmation"
355
  msgstr "Potwierdzenie subskrypcji"
356
 
357
- #: options/class.WpdiscuzOptionsSerialized.php:474
358
  #: options/phrases-layouts/phrases-email.php:106
359
- #: utils/class.WpdiscuzEmailHelper.php:47
360
  msgid ""
361
  "Hi, <br/> You just subscribed for new comments on our website. This means "
362
  "you will receive an email when new comments are posted according to "
@@ -370,228 +374,231 @@ msgstr ""
370
  "kliknij Potwierdź poniżej. Jeśli uważasz, że to jest błąd, zignoruj ten "
371
  "komunikat i nigdy nie będziemy ponownie przypominać."
372
 
373
- #: options/class.WpdiscuzOptionsSerialized.php:475
374
  msgid "please fill out this field to comment"
375
  msgstr "proszę wypełnić te pole, aby móc dodać komentarz"
376
 
377
- #: options/class.WpdiscuzOptionsSerialized.php:476
378
  msgid "email address is invalid"
379
  msgstr "adres e-mail jest nieprawidłowy"
380
 
381
- #: options/class.WpdiscuzOptionsSerialized.php:477
382
  msgid "url is invalid"
383
  msgstr "url jest nieprawidłowy"
384
 
385
- #: options/class.WpdiscuzOptionsSerialized.php:478
386
  msgid "year"
387
  msgstr "rok"
388
 
389
- #: options/class.WpdiscuzOptionsSerialized.php:479
390
  msgid "years"
391
  msgstr "lat"
392
 
393
- #: options/class.WpdiscuzOptionsSerialized.php:480
394
  msgid "month"
395
  msgstr "miesiąc"
396
 
397
- #: options/class.WpdiscuzOptionsSerialized.php:481
398
  msgid "months"
399
  msgstr "miesięcy"
400
 
401
- #: options/class.WpdiscuzOptionsSerialized.php:482
402
  msgid "day"
403
  msgstr "dzień"
404
 
405
- #: options/class.WpdiscuzOptionsSerialized.php:483
406
  msgid "days"
407
  msgstr "dni"
408
 
409
- #: options/class.WpdiscuzOptionsSerialized.php:484
410
  msgid "hour"
411
  msgstr "godzina"
412
 
413
- #: options/class.WpdiscuzOptionsSerialized.php:485
414
  msgid "hours"
415
  msgstr "godzin"
416
 
417
- #: options/class.WpdiscuzOptionsSerialized.php:486
418
  msgid "minute"
419
  msgstr "minuta"
420
 
421
- #: options/class.WpdiscuzOptionsSerialized.php:487
422
  msgid "minutes"
423
  msgstr "minut"
424
 
425
- #: options/class.WpdiscuzOptionsSerialized.php:488
426
  msgid "second"
427
  msgstr "sekunda"
428
 
429
- #: options/class.WpdiscuzOptionsSerialized.php:489
430
  msgid "seconds"
431
  msgstr "sekund"
432
 
433
- #: options/class.WpdiscuzOptionsSerialized.php:490
434
  msgid "right now"
435
  msgstr "od zaraz"
436
 
437
- #: options/class.WpdiscuzOptionsSerialized.php:491
438
  msgid "ago"
439
  msgstr "temu"
440
 
441
- #: options/class.WpdiscuzOptionsSerialized.php:492
442
  #: options/phrases-layouts/phrases-datetime.php:156
443
  msgid "Today"
444
  msgstr "Dzisiaj"
445
 
446
- #: options/class.WpdiscuzOptionsSerialized.php:493
447
- #: options/phrases-layouts/phrases-notification.php:72
448
  msgid "You must be"
449
  msgstr "Musisz się"
450
 
451
- #: options/class.WpdiscuzOptionsSerialized.php:494
452
  msgid "You are logged in as"
453
  msgstr "Zalogowany jako"
454
 
455
- #: options/class.WpdiscuzOptionsSerialized.php:495
456
- #: options/phrases-layouts/phrases-notification.php:92
457
  msgid "Log out"
458
  msgstr "Wyloguj się"
459
 
460
- #: options/class.WpdiscuzOptionsSerialized.php:496
461
  msgid "logged in"
462
  msgstr "zalogowany jako"
463
 
464
- #: options/class.WpdiscuzOptionsSerialized.php:497
465
  msgid "to post a comment."
466
  msgstr "aby móc dodać komentarz."
467
 
468
- #: options/class.WpdiscuzOptionsSerialized.php:498
469
- #: options/phrases-layouts/phrases-comment.php:152
470
  msgid "Vote Up"
471
  msgstr "Lubię to"
472
 
473
- #: options/class.WpdiscuzOptionsSerialized.php:499
474
- #: options/phrases-layouts/phrases-comment.php:162
475
  msgid "Vote Down"
476
  msgstr "Nie lubię"
477
 
478
- #: options/class.WpdiscuzOptionsSerialized.php:500
479
- #: options/phrases-layouts/phrases-notification.php:122
480
  msgid "Vote Counted"
481
  msgstr "Głos zliczony"
482
 
483
- #: options/class.WpdiscuzOptionsSerialized.php:501
484
  msgid "You've already voted for this comment"
485
  msgstr "Już zagłosowałeś na ten komentarz"
486
 
487
- #: options/class.WpdiscuzOptionsSerialized.php:502
488
- #: options/phrases-layouts/phrases-notification.php:142
489
  msgid "Voting Error"
490
  msgstr "Błąd głosowania"
491
 
492
- #: options/class.WpdiscuzOptionsSerialized.php:503
493
  msgid "You Must Be Logged In To Vote"
494
  msgstr "Musisz się zalogować, aby móc oddać głos"
495
 
496
- #: options/class.WpdiscuzOptionsSerialized.php:504
497
  msgid "You cannot vote for your comment"
498
  msgstr "Nie możesz głosować na swój komentarz"
499
 
500
- #: options/class.WpdiscuzOptionsSerialized.php:505
501
  msgid "You are not allowed to vote for this comment"
502
  msgstr "Nie wolno głosować na ten komentarz"
503
 
504
- #: options/class.WpdiscuzOptionsSerialized.php:506
505
- #: options/phrases-layouts/phrases-notification.php:182
506
  msgid "Invalid Captcha Code"
507
  msgstr "Nieprawidłowy kod Captcha"
508
 
509
- #: options/class.WpdiscuzOptionsSerialized.php:507
510
- #: options/phrases-layouts/phrases-notification.php:192
511
  msgid "Some of field value is invalid"
512
  msgstr "Jedna z wartości pola jest nieprawidłowa"
513
 
514
- #: options/class.WpdiscuzOptionsSerialized.php:508
515
  msgid "new comment"
516
  msgstr "nowy komentarz"
517
 
518
- #: options/class.WpdiscuzOptionsSerialized.php:509
519
  msgid "new comments"
520
  msgstr "nowych komentarzy"
521
 
522
- #: options/class.WpdiscuzOptionsSerialized.php:510
523
  msgid "Comment awaiting moderation"
524
  msgstr "Komentarz oczekuje na moderację"
525
 
526
- #: options/class.WpdiscuzOptionsSerialized.php:511
527
  msgid "new reply on your comment"
528
  msgstr "nowa odpowiedź na Twój komentarz"
529
 
530
- #: options/class.WpdiscuzOptionsSerialized.php:512
531
  msgid "new replies on your comments"
532
  msgstr "nowych odpowiedzi na Twój komentarz"
533
 
534
- #: options/class.WpdiscuzOptionsSerialized.php:513
535
  #: options/phrases-layouts/phrases-general.php:126
536
  msgid "New"
537
  msgstr "Nowy"
538
 
539
- #: options/class.WpdiscuzOptionsSerialized.php:514
540
- #: options/phrases-layouts/phrases-notification.php:236
541
  msgid "Sorry, the comment was not updated"
542
  msgstr "Przepraszamy, komentarz nie został zaktualizowany"
543
 
544
- #: options/class.WpdiscuzOptionsSerialized.php:515
545
- #: options/phrases-layouts/phrases-notification.php:246
546
  msgid "Sorry, this comment no longer possible to edit"
547
  msgstr "Przepraszamy, tego komentarza nie można już edytować"
548
 
549
- #: options/class.WpdiscuzOptionsSerialized.php:516
550
  msgid "You've not made any changes"
551
  msgstr "Jeszcze nie dokonałeś zmian"
552
 
553
- #: options/class.WpdiscuzOptionsSerialized.php:517
554
- #: options/phrases-layouts/phrases-comment.php:176
555
  msgid "Save"
556
  msgstr "Zapisz"
557
 
558
- #: options/class.WpdiscuzOptionsSerialized.php:518
559
- #: options/phrases-layouts/phrases-comment.php:186
560
  msgid "Cancel"
561
  msgstr "Anuluj"
562
 
563
- #: options/class.WpdiscuzOptionsSerialized.php:519
564
  #, php-format
565
  msgid "Comment text is too short (minimum %d% characters)"
566
  msgstr "Tekst komentarza jest zbyt krótki (min %d% znaków)"
567
 
568
- #: options/class.WpdiscuzOptionsSerialized.php:520
569
  #, php-format
570
  msgid "Comment text is too long (maximum %d% characters allowed)"
571
  msgstr "Tekst komentarza jest zbyt długi (maks dopuszczalnych %d% znaków)"
572
 
573
- #: options/class.WpdiscuzOptionsSerialized.php:521
574
- #: options/phrases-layouts/phrases-notification.php:262
575
- #: options/phrases-layouts/phrases-notification.php:266
576
- msgid "The captcha expired"
577
- msgstr "CAPTCHA wygasł"
578
 
579
- #: options/class.WpdiscuzOptionsSerialized.php:522
580
- #: options/phrases-layouts/phrases-notification.php:272
581
- #: options/phrases-layouts/phrases-notification.php:276
582
  msgid "Please fill out required fields"
583
  msgstr "Proszę wypełnij wymagane pola"
584
 
585
- #: options/class.WpdiscuzOptionsSerialized.php:523
586
  #: options/phrases-layouts/phrases-form.php:192
587
  #: options/phrases-layouts/phrases-form.php:196
588
  msgid "Connect with"
589
  msgstr "Połącz za pomocą"
590
 
591
- #: options/class.WpdiscuzOptionsSerialized.php:524
592
  msgid "You're subscribed to"
593
  msgstr "Jesteś subskrybentem do"
594
 
 
 
 
 
595
  #: options/options-layouts/settings-general.php:7
596
  msgid "General Settings"
597
  msgstr "Ogólne ustawienia"
@@ -617,89 +624,97 @@ msgid "Comment text max length"
617
  msgstr "Maksymalna długość tekstu komentarza"
618
 
619
  #: options/options-layouts/settings-general.php:72
 
 
 
 
 
 
 
 
620
  msgid "Comment text size in pixels"
621
  msgstr "Rozmiar tekstu komentarza w pikselach"
622
 
623
- #: options/options-layouts/settings-general.php:87
624
  msgid "Allow comment editing for"
625
  msgstr "Pozwól na edycję komentarza wciągu"
626
 
627
- #: options/options-layouts/settings-general.php:92
628
- msgid "Not Allow"
629
- msgstr "Nie pozwól"
630
 
631
- #: options/options-layouts/settings-general.php:93
632
- #: options/options-layouts/settings-general.php:94
633
  #: options/options-layouts/settings-live-update.php:52
634
  #: options/options-layouts/settings-live-update.php:53
635
  #: options/options-layouts/settings-live-update.php:54
636
  msgid "Minutes"
637
  msgstr "Minut"
638
 
639
- #: options/options-layouts/settings-general.php:95
640
  #: options/phrases-layouts/phrases-datetime.php:72
641
  msgid "Hour"
642
  msgstr "Godziny"
643
 
644
- #: options/options-layouts/settings-general.php:96
645
- #: options/options-layouts/settings-general.php:97
646
  msgid "Hours"
647
  msgstr "Godzin"
648
 
649
- #: options/options-layouts/settings-general.php:98
650
  msgid "Unlimit"
651
  msgstr "Bez limitu"
652
 
653
- #: options/options-layouts/settings-general.php:104
654
  msgid "Redirect first commenter to"
655
  msgstr "Przekieruj pierwszych komentatorów do"
656
 
657
- #: options/options-layouts/settings-general.php:111
658
  msgid "Do not redirect"
659
  msgstr "Nie przekieruj"
660
 
661
- #: options/options-layouts/settings-general.php:119
662
  msgid "Allow guests to vote on comments"
663
  msgstr "Pozwól gościom, aby mogli głosować na komentarze"
664
 
665
- #: options/options-layouts/settings-general.php:129
666
  msgid "Comments loading/pagination type"
667
  msgstr "Ładowanie/typ podziału na strony komentarzy"
668
 
669
- #: options/options-layouts/settings-general.php:138
670
- #: options/options-layouts/settings-general.php:140
671
  msgid "[Load more] Button"
672
  msgstr "Przycisk [Pokaż więcej]"
673
 
674
- #: options/options-layouts/settings-general.php:142
675
- #: options/options-layouts/settings-general.php:144
676
  msgid "[Load rest of all comments] Button"
677
  msgstr "Przycisk [Przywróć wszystkie komentarze]"
678
 
679
- #: options/options-layouts/settings-general.php:146
680
- #: options/options-layouts/settings-general.php:148
681
  msgid "Lazy load comments on scrolling"
682
  msgstr "Wolne wczytywanie komentarzy przy przewijaniu"
683
 
684
- #: options/options-layouts/settings-general.php:155
685
  msgid "Use WordPress Date/Time format"
686
  msgstr "Użyj formatu daty/czasu WordPress"
687
 
688
- #: options/options-layouts/settings-general.php:156
689
  msgid ""
690
  "wpDiscuz shows Human Readable date format. If you check this option it'll "
691
  "show the date/time format set in WordPress General Settings."
692
  msgstr ""
693
 
694
- #: options/options-layouts/settings-general.php:163
695
  msgid "Current Wordpress date/time format"
696
  msgstr "Bieżący format daty/czasu Wordpress"
697
 
698
- #: options/options-layouts/settings-general.php:169
699
  msgid "Use Plugin .PO/.MO files"
700
  msgstr "Użyj wtyczki plików .PO/.MO"
701
 
702
- #: options/options-layouts/settings-general.php:170
703
  msgid ""
704
  "wpDiscuz phrase system allows you to translate all front-end phrases. "
705
  "However if you have a multi-language website it'll not allow you to add more "
@@ -709,7 +724,7 @@ msgid ""
709
  "translate all phrases based on language files according to current language."
710
  msgstr ""
711
 
712
- #: options/options-layouts/settings-general.php:181
713
  msgid ""
714
  "Help wpDiscuz to grow allowing people to recognize which comment plugin you "
715
  "use"
@@ -717,7 +732,7 @@ msgstr ""
717
  "Pomóż wpDiscuz zwiększyć popularność wśród ludzi, aby mogli rozpoznać, "
718
  "której używasz wtyczki do komentarzy"
719
 
720
- #: options/options-layouts/settings-general.php:183
721
  msgid ""
722
  "Please check this option on to help wpDiscuz get more popularity as your "
723
  "thank to the hard work we do for you totally free. This option adds a very "
@@ -725,10 +740,30 @@ msgid ""
725
  "visitors recognize the name of comment solution you use."
726
  msgstr ""
727
 
728
- #: options/options-layouts/settings-general.php:188
729
  msgid "Thank you!"
730
  msgstr "Dziękujemy!"
731
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  #: options/options-layouts/settings-live-update.php:12
733
  msgid "Live update options"
734
  msgstr "Opcje Live Update"
@@ -742,6 +777,12 @@ msgid ""
742
  "to perform very frequently live update requests. If you found some issue you "
743
  "can set the option below 30 seconds or more."
744
  msgstr ""
 
 
 
 
 
 
745
 
746
  #: options/options-layouts/settings-live-update.php:18
747
  msgid "Never update"
@@ -812,26 +853,44 @@ msgstr "Ukryj przyciski głosowania"
812
  msgid "Show Share Buttons"
813
  msgstr "Pokaż przyciski udostępniania"
814
 
815
- #: options/options-layouts/settings-show-hide.php:80
816
- msgid "Hide the CAPTCHA field for guests"
817
- msgstr "Ukryj pole CAPTCHA dla gości"
 
 
 
 
 
 
818
 
819
  #: options/options-layouts/settings-show-hide.php:91
820
- msgid "Show the CAPTCHA field for logged in users"
821
- msgstr "Pokaż pole CAPTCHA dla zalogowanych gości"
822
 
823
  #: options/options-layouts/settings-show-hide.php:102
 
 
 
 
824
  msgid "Show the Website URL field"
825
  msgstr "Pokaż pole adresu strony internetowej"
826
 
827
- #: options/options-layouts/settings-show-hide.php:112
828
  msgid "Hide header text"
829
  msgstr "Ukryj tekst nagłówka"
830
 
831
- #: options/options-layouts/settings-show-hide.php:122
832
  msgid "Show sorting buttons"
833
  msgstr "Pokaż przyciski sortowania"
834
 
 
 
 
 
 
 
 
 
835
  #: options/options-layouts/settings-social.php:23
836
  #: options/options-layouts/settings-social.php:33
837
  #: options/options-layouts/settings-social.php:43
@@ -964,29 +1023,17 @@ msgstr ""
964
  msgid "Comment Template Phrases"
965
  msgstr "Frazy szablonu komentarzy"
966
 
967
- #: options/phrases-layouts/phrases-comment.php:112
968
- msgid "Title For Guests"
969
- msgstr "Tytuł dla gości"
970
-
971
- #: options/phrases-layouts/phrases-comment.php:122
972
- msgid "Title For Members"
973
- msgstr "Tytuł dla użytkowników"
974
-
975
- #: options/phrases-layouts/phrases-comment.php:132
976
- msgid "Title For Authors"
977
- msgstr "Tytuł dla autorów"
978
-
979
- #: options/phrases-layouts/phrases-comment.php:142
980
- msgid "Title For Admins"
981
- msgstr "Tytuł dla adminów"
982
-
983
- #: options/phrases-layouts/phrases-comment.php:172
984
  msgid "Save edited comment button text"
985
- msgstr "Zapisz edytowany tekst przycisku komentarzy"
986
 
987
- #: options/phrases-layouts/phrases-comment.php:182
988
  msgid "Cancel comment editing button text"
989
- msgstr "Anuluj tekst przycisku edycji komentarzy"
 
 
 
 
990
 
991
  #: options/phrases-layouts/phrases-datetime.php:7
992
  msgid "Date/Time Phrases"
@@ -1198,109 +1245,141 @@ msgstr "Frazy powiadomień"
1198
  msgid "You\\'re subscribed to"
1199
  msgstr "Jesteś subskrybentem do"
1200
 
1201
- #: options/phrases-layouts/phrases-notification.php:42
 
 
 
 
1202
  msgid "Error message for empty field"
1203
  msgstr "Puste pole"
1204
 
1205
- #: options/phrases-layouts/phrases-notification.php:52
1206
  msgid "Error message for invalid email field"
1207
  msgstr "Pole adresu e-mail nieprawidłowe"
1208
 
1209
- #: options/phrases-layouts/phrases-notification.php:62
1210
  msgid "Error message for invalid website url field"
1211
  msgstr "Pole witryny internetowej nieprawidłowe"
1212
 
1213
- #: options/phrases-layouts/phrases-notification.php:82
1214
  msgid "Logged in as"
1215
  msgstr "Zalogowany jako"
1216
 
1217
- #: options/phrases-layouts/phrases-notification.php:102
1218
  msgid "Logged In"
1219
  msgstr "Zalogowany jako"
1220
 
1221
- #: options/phrases-layouts/phrases-notification.php:112
1222
  msgid "To post a comment"
1223
  msgstr "Aby dodać komentarz"
1224
 
1225
- #: options/phrases-layouts/phrases-notification.php:132
1226
  msgid "You can vote only 1 time"
1227
  msgstr "Możesz głosować tylko 1 raz"
1228
 
1229
- #: options/phrases-layouts/phrases-notification.php:152
1230
  msgid "Login To Vote"
1231
  msgstr "Zaloguj się, aby móc zagłosować"
1232
 
1233
- #: options/phrases-layouts/phrases-notification.php:162
1234
  msgid "You Cannot Vote On Your Comment"
1235
  msgstr "Nie można głosować na swój komentarz"
1236
 
1237
- #: options/phrases-layouts/phrases-notification.php:172
1238
  msgid "You are not allowed to vote for this comment (Voting from same IP)"
1239
  msgstr "Nie wolno głosować na ten komentarz (Głosowanie z tego samego IP)"
1240
 
1241
- #: options/phrases-layouts/phrases-notification.php:202
1242
  msgid "Comment waiting moderation"
1243
  msgstr "Komentarz oczekuje na moderację"
1244
 
1245
- #: options/phrases-layouts/phrases-notification.php:212
1246
  msgid "Message if comment content length is too short"
1247
  msgstr "Komunikat, jeśli długość treści komentarza jest zbyt krótka"
1248
 
1249
- #: options/phrases-layouts/phrases-notification.php:222
1250
  msgid "Message if comment content length is too long"
1251
  msgstr "Komunikat, jeśli długość treści komentarza jest zbyt długa"
1252
 
1253
- #: options/phrases-layouts/phrases-notification.php:232
1254
  msgid "Message if comment was not updated"
1255
  msgstr "Komunikat, jeśli komentarz nie został zaktualizowany"
1256
 
1257
- #: options/phrases-layouts/phrases-notification.php:242
1258
  msgid "Message if comment no longer possible to edit"
1259
  msgstr "Komunikat, jeśli komentarza nie można już edytować"
1260
 
1261
- #: options/phrases-layouts/phrases-notification.php:252
1262
  msgid "Message if comment text not changed"
1263
  msgstr "Komunikat, jeśli tekst komentarza nie jest zmieniony"
1264
 
1265
- #: options/phrases-layouts/phrases-notification.php:256
1266
  msgid "TYou've not made any changes"
1267
  msgstr "Jeszcze nie dokonałeś zmian"
1268
 
1269
- #: templates/comment/comment-form.php:51
1270
  msgid "Unable to send an email"
1271
  msgstr "Nie mogę wysłać wiadomości"
1272
 
1273
- #: templates/comment/comment-form.php:53
1274
  msgid "Subscription not successed"
1275
  msgstr "Subskrypcja nie pomyślna"
1276
 
1277
- #: utils/class.WpdiscuzHelper.php:392
1278
- msgid "Participate in this discussion via email"
1279
- msgstr "Weź udział w tej dyskusji przez e-mail"
 
1280
 
1281
- #. Plugin Name of the plugin/theme
1282
- msgid "wpDiscuz - Supercharged native comments"
1283
- msgstr "wpDiscuz - Doładowane rodzimych komentarzy"
1284
 
1285
- #. Plugin URI of the plugin/theme
1286
- msgid "http://www.gvectors.com/wpdiscuz/"
1287
- msgstr "http://www.gvectors.com/wpdiscuz/"
1288
 
1289
- #. Description of the plugin/theme
1290
- msgid ""
1291
- "Better comment system. Wordpress post comments and discussion plugin. Allows "
1292
- "your visitors discuss, vote for comments and share."
1293
- msgstr ""
1294
- "Lepszy system komentarzy. Wordpress dodaje komentarze i wtyczkę dyskusji. "
1295
- "Pozwala odwiedzającym na dyskusję, głosować na komentarze czy udostępniać."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1296
 
1297
- #. Author of the plugin/theme
1298
- msgid "gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)"
1299
- msgstr "gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)"
1300
 
1301
- #. Author URI of the plugin/theme
1302
- msgid "http://www.gvectors.com/"
1303
- msgstr "http://www.gvectors.com/"
1304
 
1305
  #~ msgid "User Must be registered to comment"
1306
  #~ msgstr "Użytkownik musi być zarejestrowany, aby móc dodać komentarz"
2
  msgstr ""
3
  "Project-Id-Version: wpDiscuz - Wordpress Comments\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpdiscuz\n"
5
+ "POT-Creation-Date: 2015-12-12 11:51+0100\n"
6
+ "PO-Revision-Date: 2015-12-12 12:13+0100\n"
7
  "Last-Translator: advancedcoding <advancedcoding@mail.ru>\n"
8
  "Language-Team: Radoslaw Rak <radekdb87@gmail.com>\n"
9
  "Language: pl_PL\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.7\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-WPHeader: wc.php\n"
16
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
22
  "X-Poedit-SearchPath-0: .\n"
23
  "X-Poedit-SearchPathExcluded-0: *.js\n"
24
 
25
+ #: class.WpdiscuzCore.php:260 templates/comment/class.WpdiscuzWalker.php:99
 
26
  msgid "Anonymous"
27
  msgstr "Anonimowo"
28
 
29
+ #: class.WpdiscuzCore.php:827 options/options-layouts/settings-social.php:12
30
  #: options/options-layouts/settings-social.php:14
31
  #: options/options-layouts/settings-social.php:16
32
  #: options/options-layouts/settings-social.php:18
33
  msgid "Settings"
34
  msgstr "Ustawienia"
35
 
36
+ #: class.WpdiscuzCore.php:829
37
  msgid "Phrases"
38
  msgstr "Frazy"
39
 
40
+ #: class.WpdiscuzCore.php:868 options/phrases-layouts/phrases-comment.php:116
41
+ msgid "Admin"
42
+ msgstr "Admin"
43
+
44
+ #: class.WpdiscuzCore.php:870 class.WpdiscuzCore.php:879
45
+ #: options/phrases-layouts/phrases-comment.php:118
46
+ msgid "Author"
47
+ msgstr "Autor"
48
+
49
+ #: class.WpdiscuzCore.php:874 options/phrases-layouts/phrases-comment.php:124
50
+ msgid "Member"
51
+ msgstr "Użytkownik"
52
+
53
+ #: class.WpdiscuzCore.php:880 options/phrases-layouts/phrases-comment.php:122
54
+ msgid "Guest"
55
+ msgstr "Gość"
56
+
57
+ #: options/class.WpdiscuzOptions.php:31 options/class.WpdiscuzOptions.php:281
58
  msgid "Hacker?"
59
  msgstr "Haker?"
60
 
61
+ #: options/class.WpdiscuzOptions.php:90
62
  msgid "wpDiscuz General Settings"
63
  msgstr "Ogólne ustawienia wpDiscuz"
64
 
65
+ #: options/class.WpdiscuzOptions.php:181
66
  msgid "General settings"
67
  msgstr "Ogólne ustawienia"
68
 
69
+ #: options/class.WpdiscuzOptions.php:182
70
  #: options/options-layouts/settings-live-update.php:7
71
  msgid "Live Update"
72
  msgstr "Live Update"
73
 
74
+ #: options/class.WpdiscuzOptions.php:183
75
  #: options/options-layouts/settings-show-hide.php:7
76
  msgid "Show/Hide Components"
77
  msgstr "Pokaż/ukryj składniki"
78
 
79
+ #: options/class.WpdiscuzOptions.php:184
80
  msgid "Email Subscription"
81
  msgstr "Subskrypcja e-mail"
82
 
83
+ #: options/class.WpdiscuzOptions.php:184
84
  msgid "and Postmatic"
85
  msgstr "i Postmatic"
86
 
87
+ #: options/class.WpdiscuzOptions.php:185
88
  #: options/options-layouts/settings-style.php:7
89
  msgid "Background and Colors"
90
  msgstr "Tło i kolory"
91
 
92
+ #: options/class.WpdiscuzOptions.php:186
93
  #: options/options-layouts/settings-social.php:91
94
  msgid "Social Login"
95
  msgstr "Logowanie społecznościowe"
96
 
97
+ #: options/class.WpdiscuzOptions.php:187
98
+ #: options/options-layouts/settings-integrations.php:7
99
+ msgid "Integrations"
100
+ msgstr "Integracje"
101
+
102
+ #: options/class.WpdiscuzOptions.php:262
103
  msgid "Reset Options"
104
  msgstr "Przywróć opcje"
105
 
106
+ #: options/class.WpdiscuzOptions.php:264
107
  msgid "Refresh comment optimization"
108
  msgstr "Odśwież optymizację komentarza"
109
 
110
+ #: options/class.WpdiscuzOptions.php:265 options/class.WpdiscuzOptions.php:458
111
  msgid "Save Changes"
112
  msgstr "Zapisz zmiany"
113
 
114
+ #: options/class.WpdiscuzOptions.php:397
115
  msgid "WpDiscuz Front-end Phrases"
116
  msgstr "Czołowe frazy WpDiscuz"
117
 
118
+ #: options/class.WpdiscuzOptions.php:407
119
  msgid "General"
120
  msgstr "Ogólne"
121
 
122
+ #: options/class.WpdiscuzOptions.php:408
123
  msgid "Form"
124
  msgstr "Od"
125
 
126
+ #: options/class.WpdiscuzOptions.php:409
127
+ #: options/class.WpdiscuzOptionsSerialized.php:453
128
  #: options/phrases-layouts/phrases-general.php:32
129
  msgid "Comment"
130
  msgstr "Komentarz"
131
 
132
+ #: options/class.WpdiscuzOptions.php:410
133
  msgid "Date/Time"
134
  msgstr "Data/Czas"
135
 
136
+ #: options/class.WpdiscuzOptions.php:411
137
+ #: options/class.WpdiscuzOptionsSerialized.php:458
138
  msgid "Email"
139
  msgstr "E-mail"
140
 
141
+ #: options/class.WpdiscuzOptions.php:412
142
  msgid "Notification"
143
  msgstr "Powiadomienie"
144
 
145
+ #: options/class.WpdiscuzOptionsSerialized.php:451
146
  #: options/phrases-layouts/phrases-general.php:12
147
  msgid "Leave a Reply"
148
  msgstr "Dodaj komentarz"
149
 
150
+ #: options/class.WpdiscuzOptionsSerialized.php:452
151
  msgid "Be the First to Comment!"
152
  msgstr "Bądź pierwszy!"
153
 
154
+ #: options/class.WpdiscuzOptionsSerialized.php:454
155
  msgid "Comments"
156
  msgstr "komentarzy"
157
 
158
+ #: options/class.WpdiscuzOptionsSerialized.php:455
159
  msgid "on"
160
  msgstr "do"
161
 
162
+ #: options/class.WpdiscuzOptionsSerialized.php:456
163
  msgid "Start the discussion"
164
  msgstr "Rozpocznij dyskusję"
165
 
166
+ #: options/class.WpdiscuzOptionsSerialized.php:457
167
  msgid "Join the discussion"
168
  msgstr "Dołącz do dyskusji"
169
 
170
+ #: options/class.WpdiscuzOptionsSerialized.php:459
171
  msgid "Name"
172
  msgstr "Imię"
173
 
174
+ #: options/class.WpdiscuzOptionsSerialized.php:460
175
  msgid "WebSite URL"
176
  msgstr "Witryna internetowa"
177
 
178
+ #: options/class.WpdiscuzOptionsSerialized.php:461
179
  msgid "Please insert the code above to comment"
180
  msgstr "Proszę wpisać kod znajdujący się powyżej, aby móc dodać komentarz"
181
 
182
+ #: options/class.WpdiscuzOptionsSerialized.php:462
183
  msgid "Post Comment"
184
  msgstr "Opublikuj komentarz"
185
 
186
+ #: options/class.WpdiscuzOptionsSerialized.php:463
187
  #: options/phrases-layouts/phrases-form.php:82
188
  #: options/phrases-layouts/phrases-form.php:86
189
  msgid "Notify of"
190
  msgstr "Powiadom o"
191
 
192
+ #: options/class.WpdiscuzOptionsSerialized.php:464
193
  #: options/phrases-layouts/phrases-form.php:96
194
  msgid "new follow-up comments"
195
  msgstr "nowych dalszych komentarzach"
196
 
197
+ #: options/class.WpdiscuzOptionsSerialized.php:465
198
  msgid "new replies to my comments"
199
  msgstr "nowych odpowiedziach na moje komentarze"
200
 
201
+ #: options/class.WpdiscuzOptionsSerialized.php:466
202
  #: options/phrases-layouts/phrases-form.php:116
203
  msgid "Notify of new replies to this comment"
204
  msgstr "Powiadom o nowych odpowiedziach na ten komentarz"
205
 
206
+ #: options/class.WpdiscuzOptionsSerialized.php:467
207
  #: options/phrases-layouts/phrases-form.php:122
208
  #: options/phrases-layouts/phrases-form.php:126
209
  msgid "Sort by"
210
  msgstr "Sortuj wg"
211
 
212
+ #: options/class.WpdiscuzOptionsSerialized.php:468
213
  #: options/phrases-layouts/phrases-form.php:132
214
  #: options/phrases-layouts/phrases-form.php:136
215
  msgid "newest"
216
  msgstr "najnowszy"
217
 
218
+ #: options/class.WpdiscuzOptionsSerialized.php:469
219
  #: options/phrases-layouts/phrases-form.php:142
220
  #: options/phrases-layouts/phrases-form.php:146
221
  msgid "oldest"
222
  msgstr "najstarszy"
223
 
224
+ #: options/class.WpdiscuzOptionsSerialized.php:470
225
  #: options/phrases-layouts/phrases-form.php:152
226
  #: options/phrases-layouts/phrases-form.php:156
227
  msgid "most voted"
228
  msgstr "oceniany"
229
 
230
+ #: options/class.WpdiscuzOptionsSerialized.php:471
231
  msgid "Load More Comments"
232
  msgstr "Pokaż więcej komentarzy"
233
 
234
+ #: options/class.WpdiscuzOptionsSerialized.php:472
235
  #: options/phrases-layouts/phrases-general.php:72
236
  msgid "Load Rest of Comments"
237
  msgstr "Załaduj przywracanie komentarzy"
238
 
239
+ #: options/class.WpdiscuzOptionsSerialized.php:473
240
  #: options/phrases-layouts/phrases-comment.php:12
241
  msgid "Reply"
242
  msgstr "Odpowiedz"
243
 
244
+ #: options/class.WpdiscuzOptionsSerialized.php:474
245
  #: options/phrases-layouts/phrases-comment.php:22
246
  msgid "Share"
247
  msgstr "Udostępnij"
248
 
249
+ #: options/class.WpdiscuzOptionsSerialized.php:475
250
  #: options/phrases-layouts/phrases-comment.php:32
 
251
  msgid "Edit"
252
  msgstr "Edytuj"
253
 
254
+ #: options/class.WpdiscuzOptionsSerialized.php:476
255
  #: options/phrases-layouts/phrases-comment.php:42
256
  msgid "Share On Facebook"
257
  msgstr "Udostępnij na Facebooku"
258
 
259
+ #: options/class.WpdiscuzOptionsSerialized.php:477
260
  #: options/phrases-layouts/phrases-comment.php:52
261
  msgid "Share On Twitter"
262
  msgstr "Udostępnij na Twitterze"
263
 
264
+ #: options/class.WpdiscuzOptionsSerialized.php:478
265
  #: options/phrases-layouts/phrases-comment.php:62
266
  msgid "Share On Google"
267
  msgstr "Udostępnij na Google"
268
 
269
+ #: options/class.WpdiscuzOptionsSerialized.php:479
270
  #: options/phrases-layouts/phrases-comment.php:72
271
  msgid "Share On VKontakte"
272
  msgstr "Udostępnij na VKontakte"
273
 
274
+ #: options/class.WpdiscuzOptionsSerialized.php:480
275
  #: options/phrases-layouts/phrases-comment.php:82
276
  msgid "Share On Odnoklassniki"
277
  msgstr "Udostępnij na Odnoklassniki"
278
 
279
+ #: options/class.WpdiscuzOptionsSerialized.php:481
280
  #: options/phrases-layouts/phrases-comment.php:92
281
  msgid "Hide Replies"
282
  msgstr "Ukryj odpowiedzi"
283
 
284
+ #: options/class.WpdiscuzOptionsSerialized.php:482
285
  #: options/phrases-layouts/phrases-comment.php:102
286
  msgid "Show Replies"
287
  msgstr "Pokaż odpowiedzi"
288
 
289
+ #: options/class.WpdiscuzOptionsSerialized.php:483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  #: options/phrases-layouts/phrases-general.php:86
291
  msgid "New Comment"
292
  msgstr "Nowy komentarz"
293
 
294
+ #: options/class.WpdiscuzOptionsSerialized.php:484
295
  msgid "New comment on the discussion section you've been interested in"
296
  msgstr "Pojawił się nowy komentarz, byłeś nim zainteresowany w"
297
 
298
+ #: options/class.WpdiscuzOptionsSerialized.php:485
299
  #: options/phrases-layouts/phrases-email.php:36
300
  #: options/phrases-layouts/phrases-general.php:106
301
+ #: utils/class.WpdiscuzEmailHelper.php:155
302
  msgid "New Reply"
303
  msgstr "Nowa odpowiedź"
304
 
305
+ #: options/class.WpdiscuzOptionsSerialized.php:486
306
+ #: utils/class.WpdiscuzEmailHelper.php:156
307
  msgid "New reply on the discussion section you've been interested in"
308
  msgstr "Pojawiła się nowa odpowiedź, byłeś nią zainteresowany w"
309
 
310
+ #: options/class.WpdiscuzOptionsSerialized.php:487
311
  msgid "You're subscribed for new replies on this comment"
312
  msgstr "Subskrybujesz o nowych odpowiedziach na ten komentarz"
313
 
314
+ #: options/class.WpdiscuzOptionsSerialized.php:488
315
  msgid "You're subscribed for new replies on all your comments"
316
  msgstr "Subskrybujesz o nowych odpowiedziach na wszystkie swoje komentarze"
317
 
318
+ #: options/class.WpdiscuzOptionsSerialized.php:489
319
  msgid "You're subscribed for new follow-up comments on this post"
320
  msgstr "Subskrybujesz o dalszych nowych komentarzach na tym wpisie"
321
 
322
+ #: options/class.WpdiscuzOptionsSerialized.php:490
323
  #: options/phrases-layouts/phrases-email.php:52
324
  #: options/phrases-layouts/phrases-email.php:56
325
  msgid "Unsubscribe"
326
  msgstr "Anuluj subskrypcję"
327
 
328
+ #: options/class.WpdiscuzOptionsSerialized.php:491
329
  #: options/phrases-layouts/phrases-email.php:66
330
  msgid "Cancel subscription"
331
  msgstr "Anuluj subskrypcję"
332
 
333
+ #: options/class.WpdiscuzOptionsSerialized.php:492
334
  #: options/phrases-layouts/phrases-notification.php:32
335
  msgid "You've successfully unsubscribed."
336
  msgstr "Pomyślnie odrzuciłeś(aś) subskrypcję."
337
 
338
+ #: options/class.WpdiscuzOptionsSerialized.php:493
339
  #: options/phrases-layouts/phrases-notification.php:22
340
  msgid "You've successfully subscribed."
341
  msgstr "Pomyślnie potwierdziłeś(aś) subskrypcję."
342
 
343
+ #: options/class.WpdiscuzOptionsSerialized.php:494
344
  #: options/phrases-layouts/phrases-email.php:72
345
  #: options/phrases-layouts/phrases-email.php:76
346
  msgid "Confirm your subscription"
347
  msgstr "Potwierdź swoją subskrypcję"
348
 
349
+ #: options/class.WpdiscuzOptionsSerialized.php:495
350
  #: options/phrases-layouts/phrases-email.php:82
351
  #: options/phrases-layouts/phrases-email.php:86
352
  msgid "You've successfully confirmed your subscription."
353
  msgstr "Pomyślnie potwierdziłeś(aś) swoją subskrypcję."
354
 
355
+ #: options/class.WpdiscuzOptionsSerialized.php:496
356
  #: options/phrases-layouts/phrases-email.php:96
357
+ #: utils/class.WpdiscuzEmailHelper.php:45
358
  msgid "Subscribe Confirmation"
359
  msgstr "Potwierdzenie subskrypcji"
360
 
361
+ #: options/class.WpdiscuzOptionsSerialized.php:497
362
  #: options/phrases-layouts/phrases-email.php:106
363
+ #: utils/class.WpdiscuzEmailHelper.php:46
364
  msgid ""
365
  "Hi, <br/> You just subscribed for new comments on our website. This means "
366
  "you will receive an email when new comments are posted according to "
374
  "kliknij Potwierdź poniżej. Jeśli uważasz, że to jest błąd, zignoruj ten "
375
  "komunikat i nigdy nie będziemy ponownie przypominać."
376
 
377
+ #: options/class.WpdiscuzOptionsSerialized.php:498
378
  msgid "please fill out this field to comment"
379
  msgstr "proszę wypełnić te pole, aby móc dodać komentarz"
380
 
381
+ #: options/class.WpdiscuzOptionsSerialized.php:499
382
  msgid "email address is invalid"
383
  msgstr "adres e-mail jest nieprawidłowy"
384
 
385
+ #: options/class.WpdiscuzOptionsSerialized.php:500
386
  msgid "url is invalid"
387
  msgstr "url jest nieprawidłowy"
388
 
389
+ #: options/class.WpdiscuzOptionsSerialized.php:501
390
  msgid "year"
391
  msgstr "rok"
392
 
393
+ #: options/class.WpdiscuzOptionsSerialized.php:502
394
  msgid "years"
395
  msgstr "lat"
396
 
397
+ #: options/class.WpdiscuzOptionsSerialized.php:503
398
  msgid "month"
399
  msgstr "miesiąc"
400
 
401
+ #: options/class.WpdiscuzOptionsSerialized.php:504
402
  msgid "months"
403
  msgstr "miesięcy"
404
 
405
+ #: options/class.WpdiscuzOptionsSerialized.php:505
406
  msgid "day"
407
  msgstr "dzień"
408
 
409
+ #: options/class.WpdiscuzOptionsSerialized.php:506
410
  msgid "days"
411
  msgstr "dni"
412
 
413
+ #: options/class.WpdiscuzOptionsSerialized.php:507
414
  msgid "hour"
415
  msgstr "godzina"
416
 
417
+ #: options/class.WpdiscuzOptionsSerialized.php:508
418
  msgid "hours"
419
  msgstr "godzin"
420
 
421
+ #: options/class.WpdiscuzOptionsSerialized.php:509
422
  msgid "minute"
423
  msgstr "minuta"
424
 
425
+ #: options/class.WpdiscuzOptionsSerialized.php:510
426
  msgid "minutes"
427
  msgstr "minut"
428
 
429
+ #: options/class.WpdiscuzOptionsSerialized.php:511
430
  msgid "second"
431
  msgstr "sekunda"
432
 
433
+ #: options/class.WpdiscuzOptionsSerialized.php:512
434
  msgid "seconds"
435
  msgstr "sekund"
436
 
437
+ #: options/class.WpdiscuzOptionsSerialized.php:513
438
  msgid "right now"
439
  msgstr "od zaraz"
440
 
441
+ #: options/class.WpdiscuzOptionsSerialized.php:514
442
  msgid "ago"
443
  msgstr "temu"
444
 
445
+ #: options/class.WpdiscuzOptionsSerialized.php:515
446
  #: options/phrases-layouts/phrases-datetime.php:156
447
  msgid "Today"
448
  msgstr "Dzisiaj"
449
 
450
+ #: options/class.WpdiscuzOptionsSerialized.php:516
451
+ #: options/phrases-layouts/phrases-notification.php:84
452
  msgid "You must be"
453
  msgstr "Musisz się"
454
 
455
+ #: options/class.WpdiscuzOptionsSerialized.php:517
456
  msgid "You are logged in as"
457
  msgstr "Zalogowany jako"
458
 
459
+ #: options/class.WpdiscuzOptionsSerialized.php:518
460
+ #: options/phrases-layouts/phrases-notification.php:104
461
  msgid "Log out"
462
  msgstr "Wyloguj się"
463
 
464
+ #: options/class.WpdiscuzOptionsSerialized.php:519
465
  msgid "logged in"
466
  msgstr "zalogowany jako"
467
 
468
+ #: options/class.WpdiscuzOptionsSerialized.php:520
469
  msgid "to post a comment."
470
  msgstr "aby móc dodać komentarz."
471
 
472
+ #: options/class.WpdiscuzOptionsSerialized.php:521
473
+ #: options/phrases-layouts/phrases-comment.php:138
474
  msgid "Vote Up"
475
  msgstr "Lubię to"
476
 
477
+ #: options/class.WpdiscuzOptionsSerialized.php:522
478
+ #: options/phrases-layouts/phrases-comment.php:148
479
  msgid "Vote Down"
480
  msgstr "Nie lubię"
481
 
482
+ #: options/class.WpdiscuzOptionsSerialized.php:523
483
+ #: options/phrases-layouts/phrases-notification.php:134
484
  msgid "Vote Counted"
485
  msgstr "Głos zliczony"
486
 
487
+ #: options/class.WpdiscuzOptionsSerialized.php:524
488
  msgid "You've already voted for this comment"
489
  msgstr "Już zagłosowałeś na ten komentarz"
490
 
491
+ #: options/class.WpdiscuzOptionsSerialized.php:525
492
+ #: options/phrases-layouts/phrases-notification.php:154
493
  msgid "Voting Error"
494
  msgstr "Błąd głosowania"
495
 
496
+ #: options/class.WpdiscuzOptionsSerialized.php:526
497
  msgid "You Must Be Logged In To Vote"
498
  msgstr "Musisz się zalogować, aby móc oddać głos"
499
 
500
+ #: options/class.WpdiscuzOptionsSerialized.php:527
501
  msgid "You cannot vote for your comment"
502
  msgstr "Nie możesz głosować na swój komentarz"
503
 
504
+ #: options/class.WpdiscuzOptionsSerialized.php:528
505
  msgid "You are not allowed to vote for this comment"
506
  msgstr "Nie wolno głosować na ten komentarz"
507
 
508
+ #: options/class.WpdiscuzOptionsSerialized.php:529
509
+ #: options/phrases-layouts/phrases-notification.php:194
510
  msgid "Invalid Captcha Code"
511
  msgstr "Nieprawidłowy kod Captcha"
512
 
513
+ #: options/class.WpdiscuzOptionsSerialized.php:530
514
+ #: options/phrases-layouts/phrases-notification.php:204
515
  msgid "Some of field value is invalid"
516
  msgstr "Jedna z wartości pola jest nieprawidłowa"
517
 
518
+ #: options/class.WpdiscuzOptionsSerialized.php:531
519
  msgid "new comment"
520
  msgstr "nowy komentarz"
521
 
522
+ #: options/class.WpdiscuzOptionsSerialized.php:532
523
  msgid "new comments"
524
  msgstr "nowych komentarzy"
525
 
526
+ #: options/class.WpdiscuzOptionsSerialized.php:533
527
  msgid "Comment awaiting moderation"
528
  msgstr "Komentarz oczekuje na moderację"
529
 
530
+ #: options/class.WpdiscuzOptionsSerialized.php:534
531
  msgid "new reply on your comment"
532
  msgstr "nowa odpowiedź na Twój komentarz"
533
 
534
+ #: options/class.WpdiscuzOptionsSerialized.php:535
535
  msgid "new replies on your comments"
536
  msgstr "nowych odpowiedzi na Twój komentarz"
537
 
538
+ #: options/class.WpdiscuzOptionsSerialized.php:536
539
  #: options/phrases-layouts/phrases-general.php:126
540
  msgid "New"
541
  msgstr "Nowy"
542
 
543
+ #: options/class.WpdiscuzOptionsSerialized.php:537
544
+ #: options/phrases-layouts/phrases-notification.php:248
545
  msgid "Sorry, the comment was not updated"
546
  msgstr "Przepraszamy, komentarz nie został zaktualizowany"
547
 
548
+ #: options/class.WpdiscuzOptionsSerialized.php:538
549
+ #: options/phrases-layouts/phrases-notification.php:258
550
  msgid "Sorry, this comment no longer possible to edit"
551
  msgstr "Przepraszamy, tego komentarza nie można już edytować"
552
 
553
+ #: options/class.WpdiscuzOptionsSerialized.php:539
554
  msgid "You've not made any changes"
555
  msgstr "Jeszcze nie dokonałeś zmian"
556
 
557
+ #: options/class.WpdiscuzOptionsSerialized.php:540
558
+ #: options/phrases-layouts/phrases-comment.php:162
559
  msgid "Save"
560
  msgstr "Zapisz"
561
 
562
+ #: options/class.WpdiscuzOptionsSerialized.php:541
563
+ #: options/phrases-layouts/phrases-comment.php:172
564
  msgid "Cancel"
565
  msgstr "Anuluj"
566
 
567
+ #: options/class.WpdiscuzOptionsSerialized.php:542
568
  #, php-format
569
  msgid "Comment text is too short (minimum %d% characters)"
570
  msgstr "Tekst komentarza jest zbyt krótki (min %d% znaków)"
571
 
572
+ #: options/class.WpdiscuzOptionsSerialized.php:543
573
  #, php-format
574
  msgid "Comment text is too long (maximum %d% characters allowed)"
575
  msgstr "Tekst komentarza jest zbyt długi (maks dopuszczalnych %d% znaków)"
576
 
577
+ #: options/class.WpdiscuzOptionsSerialized.php:544
578
+ #: options/phrases-layouts/phrases-comment.php:182
579
+ msgid "Read more &raquo;"
580
+ msgstr "Czytaj więcej &raquo;"
 
581
 
582
+ #: options/class.WpdiscuzOptionsSerialized.php:545
583
+ #: options/phrases-layouts/phrases-notification.php:274
584
+ #: options/phrases-layouts/phrases-notification.php:278
585
  msgid "Please fill out required fields"
586
  msgstr "Proszę wypełnij wymagane pola"
587
 
588
+ #: options/class.WpdiscuzOptionsSerialized.php:546
589
  #: options/phrases-layouts/phrases-form.php:192
590
  #: options/phrases-layouts/phrases-form.php:196
591
  msgid "Connect with"
592
  msgstr "Połącz za pomocą"
593
 
594
+ #: options/class.WpdiscuzOptionsSerialized.php:547
595
  msgid "You're subscribed to"
596
  msgstr "Jesteś subskrybentem do"
597
 
598
+ #: options/class.WpdiscuzOptionsSerialized.php:548
599
+ msgid "Participate in this discussion via email"
600
+ msgstr "Weź udział w tej dyskusji przez e-mail"
601
+
602
  #: options/options-layouts/settings-general.php:7
603
  msgid "General Settings"
604
  msgstr "Ogólne ustawienia"
624
  msgstr "Maksymalna długość tekstu komentarza"
625
 
626
  #: options/options-layouts/settings-general.php:72
627
+ msgid ""
628
+ "The number of words before breaking comment text and showing \"Read more\" "
629
+ "link"
630
+ msgstr ""
631
+ "Liczba słów przed przerwaniem tekstu komentarza i pokazaniu łącza \"Czytaj "
632
+ "więcej\""
633
+
634
+ #: options/options-layouts/settings-general.php:85
635
  msgid "Comment text size in pixels"
636
  msgstr "Rozmiar tekstu komentarza w pikselach"
637
 
638
+ #: options/options-layouts/settings-general.php:100
639
  msgid "Allow comment editing for"
640
  msgstr "Pozwól na edycję komentarza wciągu"
641
 
642
+ #: options/options-layouts/settings-general.php:105
643
+ msgid "Do not allow"
644
+ msgstr "Nie pozwalaj"
645
 
646
+ #: options/options-layouts/settings-general.php:106
647
+ #: options/options-layouts/settings-general.php:107
648
  #: options/options-layouts/settings-live-update.php:52
649
  #: options/options-layouts/settings-live-update.php:53
650
  #: options/options-layouts/settings-live-update.php:54
651
  msgid "Minutes"
652
  msgstr "Minut"
653
 
654
+ #: options/options-layouts/settings-general.php:108
655
  #: options/phrases-layouts/phrases-datetime.php:72
656
  msgid "Hour"
657
  msgstr "Godziny"
658
 
659
+ #: options/options-layouts/settings-general.php:109
660
+ #: options/options-layouts/settings-general.php:110
661
  msgid "Hours"
662
  msgstr "Godzin"
663
 
664
+ #: options/options-layouts/settings-general.php:111
665
  msgid "Unlimit"
666
  msgstr "Bez limitu"
667
 
668
+ #: options/options-layouts/settings-general.php:117
669
  msgid "Redirect first commenter to"
670
  msgstr "Przekieruj pierwszych komentatorów do"
671
 
672
+ #: options/options-layouts/settings-general.php:124
673
  msgid "Do not redirect"
674
  msgstr "Nie przekieruj"
675
 
676
+ #: options/options-layouts/settings-general.php:132
677
  msgid "Allow guests to vote on comments"
678
  msgstr "Pozwól gościom, aby mogli głosować na komentarze"
679
 
680
+ #: options/options-layouts/settings-general.php:142
681
  msgid "Comments loading/pagination type"
682
  msgstr "Ładowanie/typ podziału na strony komentarzy"
683
 
684
+ #: options/options-layouts/settings-general.php:151
685
+ #: options/options-layouts/settings-general.php:153
686
  msgid "[Load more] Button"
687
  msgstr "Przycisk [Pokaż więcej]"
688
 
689
+ #: options/options-layouts/settings-general.php:155
690
+ #: options/options-layouts/settings-general.php:157
691
  msgid "[Load rest of all comments] Button"
692
  msgstr "Przycisk [Przywróć wszystkie komentarze]"
693
 
694
+ #: options/options-layouts/settings-general.php:159
695
+ #: options/options-layouts/settings-general.php:161
696
  msgid "Lazy load comments on scrolling"
697
  msgstr "Wolne wczytywanie komentarzy przy przewijaniu"
698
 
699
+ #: options/options-layouts/settings-general.php:168
700
  msgid "Use WordPress Date/Time format"
701
  msgstr "Użyj formatu daty/czasu WordPress"
702
 
703
+ #: options/options-layouts/settings-general.php:169
704
  msgid ""
705
  "wpDiscuz shows Human Readable date format. If you check this option it'll "
706
  "show the date/time format set in WordPress General Settings."
707
  msgstr ""
708
 
709
+ #: options/options-layouts/settings-general.php:176
710
  msgid "Current Wordpress date/time format"
711
  msgstr "Bieżący format daty/czasu Wordpress"
712
 
713
+ #: options/options-layouts/settings-general.php:182
714
  msgid "Use Plugin .PO/.MO files"
715
  msgstr "Użyj wtyczki plików .PO/.MO"
716
 
717
+ #: options/options-layouts/settings-general.php:183
718
  msgid ""
719
  "wpDiscuz phrase system allows you to translate all front-end phrases. "
720
  "However if you have a multi-language website it'll not allow you to add more "
724
  "translate all phrases based on language files according to current language."
725
  msgstr ""
726
 
727
+ #: options/options-layouts/settings-general.php:194
728
  msgid ""
729
  "Help wpDiscuz to grow allowing people to recognize which comment plugin you "
730
  "use"
732
  "Pomóż wpDiscuz zwiększyć popularność wśród ludzi, aby mogli rozpoznać, "
733
  "której używasz wtyczki do komentarzy"
734
 
735
+ #: options/options-layouts/settings-general.php:196
736
  msgid ""
737
  "Please check this option on to help wpDiscuz get more popularity as your "
738
  "thank to the hard work we do for you totally free. This option adds a very "
740
  "visitors recognize the name of comment solution you use."
741
  msgstr ""
742
 
743
+ #: options/options-layouts/settings-general.php:201
744
  msgid "Thank you!"
745
  msgstr "Dziękujemy!"
746
 
747
+ #: options/options-layouts/settings-integrations.php:14
748
+ msgid "BuddyPress"
749
+ msgstr "BuddyPress"
750
+
751
+ #: options/options-layouts/settings-integrations.php:15
752
+ msgid "Users Ultra"
753
+ msgstr "Użytkownicy Ultra"
754
+
755
+ #: options/options-layouts/settings-integrations.php:16
756
+ msgid "User Pro"
757
+ msgstr "Użytkownik Pro"
758
+
759
+ #: options/options-layouts/settings-integrations.php:17
760
+ msgid "Ultimate Member"
761
+ msgstr "Użytkownik Ultimate"
762
+
763
+ #: options/options-layouts/settings-integrations.php:18
764
+ msgid "MyCred"
765
+ msgstr "MyCred"
766
+
767
  #: options/options-layouts/settings-live-update.php:12
768
  msgid "Live update options"
769
  msgstr "Opcje Live Update"
777
  "to perform very frequently live update requests. If you found some issue you "
778
  "can set the option below 30 seconds or more."
779
  msgstr ""
780
+ "wpDiscuz 3 Live Update jest bardzo inteligentną usługą i nie obciąża serwera "
781
+ "hostingu nawet, jeśli współdzielisz wspólny hosting, a strona jest bardzo "
782
+ "aktywna. Jednak zaleca się monitorowanie zasobów serwera, jeśli jesteś na "
783
+ "współdzielonym hostingu. Istnieje kilka bardzo słabych usług hostingu, które "
784
+ "mogą nie być w stanie wykonać zaplanowanej aktualizacji w tle. Jeśli "
785
+ "znalazłeś jakiś problem, możesz ustawić opcję poniżej 30 sekund lub więcej."
786
 
787
  #: options/options-layouts/settings-live-update.php:18
788
  msgid "Never update"
853
  msgid "Show Share Buttons"
854
  msgstr "Pokaż przyciski udostępniania"
855
 
856
+ #: options/options-layouts/settings-show-hide.php:86
857
+ msgid ""
858
+ "The plugin captcha directory is not writable! Please set writable "
859
+ "permissions on \"wpdiscuz/utils/temp\" directory in order to use the captcha "
860
+ "feature"
861
+ msgstr ""
862
+ "Katalog wtyczki CAPTCHA jest niezapisywalny! Proszę ustawić uprawnienia z "
863
+ "możliwością zapisu na katalog \"wpdiscuz/utils/temp\", aby w przyszłości "
864
+ "użyć funkcji CAPTCHA."
865
 
866
  #: options/options-layouts/settings-show-hide.php:91
867
+ msgid "Hide the CAPTCHA field for guests"
868
+ msgstr "Ukryj pole CAPTCHA dla gości"
869
 
870
  #: options/options-layouts/settings-show-hide.php:102
871
+ msgid "Show the CAPTCHA field for logged in users"
872
+ msgstr "Pokaż pole CAPTCHA dla zalogowanych użytkowników"
873
+
874
+ #: options/options-layouts/settings-show-hide.php:113
875
  msgid "Show the Website URL field"
876
  msgstr "Pokaż pole adresu strony internetowej"
877
 
878
+ #: options/options-layouts/settings-show-hide.php:123
879
  msgid "Hide header text"
880
  msgstr "Ukryj tekst nagłówka"
881
 
882
+ #: options/options-layouts/settings-show-hide.php:133
883
  msgid "Show sorting buttons"
884
  msgstr "Pokaż przyciski sortowania"
885
 
886
+ #: options/options-layouts/settings-show-hide.php:143
887
+ msgid "Set comments ordering to \"Most voted\" by default "
888
+ msgstr "Ustaw kolejność komentarzy wg „ocenianych” jako domyślne"
889
+
890
+ #: options/options-layouts/settings-show-hide.php:153
891
+ msgid "Hide comment link"
892
+ msgstr "Ukryj łącze „Opublikuj komentarz”"
893
+
894
  #: options/options-layouts/settings-social.php:23
895
  #: options/options-layouts/settings-social.php:33
896
  #: options/options-layouts/settings-social.php:43
1023
  msgid "Comment Template Phrases"
1024
  msgstr "Frazy szablonu komentarzy"
1025
 
1026
+ #: options/phrases-layouts/phrases-comment.php:158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
  msgid "Save edited comment button text"
1028
+ msgstr "Przycisk „Zapisz edytujący tekst komentarza"
1029
 
1030
+ #: options/phrases-layouts/phrases-comment.php:168
1031
  msgid "Cancel comment editing button text"
1032
+ msgstr "Przycisk „Anuluj edycji tekstu komentarza"
1033
+
1034
+ #: options/phrases-layouts/phrases-comment.php:178
1035
+ msgid "Comment read more link text"
1036
+ msgstr "Łącze „Czytaj więcej” tekstu komentarza"
1037
 
1038
  #: options/phrases-layouts/phrases-datetime.php:7
1039
  msgid "Date/Time Phrases"
1245
  msgid "You\\'re subscribed to"
1246
  msgstr "Jesteś subskrybentem do"
1247
 
1248
+ #: options/phrases-layouts/phrases-notification.php:43
1249
+ msgid "Postmatic subscription label"
1250
+ msgstr "Etykieta subskrypcji Postmatic"
1251
+
1252
+ #: options/phrases-layouts/phrases-notification.php:54
1253
  msgid "Error message for empty field"
1254
  msgstr "Puste pole"
1255
 
1256
+ #: options/phrases-layouts/phrases-notification.php:64
1257
  msgid "Error message for invalid email field"
1258
  msgstr "Pole adresu e-mail nieprawidłowe"
1259
 
1260
+ #: options/phrases-layouts/phrases-notification.php:74
1261
  msgid "Error message for invalid website url field"
1262
  msgstr "Pole witryny internetowej nieprawidłowe"
1263
 
1264
+ #: options/phrases-layouts/phrases-notification.php:94
1265
  msgid "Logged in as"
1266
  msgstr "Zalogowany jako"
1267
 
1268
+ #: options/phrases-layouts/phrases-notification.php:114
1269
  msgid "Logged In"
1270
  msgstr "Zalogowany jako"
1271
 
1272
+ #: options/phrases-layouts/phrases-notification.php:124
1273
  msgid "To post a comment"
1274
  msgstr "Aby dodać komentarz"
1275
 
1276
+ #: options/phrases-layouts/phrases-notification.php:144
1277
  msgid "You can vote only 1 time"
1278
  msgstr "Możesz głosować tylko 1 raz"
1279
 
1280
+ #: options/phrases-layouts/phrases-notification.php:164
1281
  msgid "Login To Vote"
1282
  msgstr "Zaloguj się, aby móc zagłosować"
1283
 
1284
+ #: options/phrases-layouts/phrases-notification.php:174
1285
  msgid "You Cannot Vote On Your Comment"
1286
  msgstr "Nie można głosować na swój komentarz"
1287
 
1288
+ #: options/phrases-layouts/phrases-notification.php:184
1289
  msgid "You are not allowed to vote for this comment (Voting from same IP)"
1290
  msgstr "Nie wolno głosować na ten komentarz (Głosowanie z tego samego IP)"
1291
 
1292
+ #: options/phrases-layouts/phrases-notification.php:214
1293
  msgid "Comment waiting moderation"
1294
  msgstr "Komentarz oczekuje na moderację"
1295
 
1296
+ #: options/phrases-layouts/phrases-notification.php:224
1297
  msgid "Message if comment content length is too short"
1298
  msgstr "Komunikat, jeśli długość treści komentarza jest zbyt krótka"
1299
 
1300
+ #: options/phrases-layouts/phrases-notification.php:234
1301
  msgid "Message if comment content length is too long"
1302
  msgstr "Komunikat, jeśli długość treści komentarza jest zbyt długa"
1303
 
1304
+ #: options/phrases-layouts/phrases-notification.php:244
1305
  msgid "Message if comment was not updated"
1306
  msgstr "Komunikat, jeśli komentarz nie został zaktualizowany"
1307
 
1308
+ #: options/phrases-layouts/phrases-notification.php:254
1309
  msgid "Message if comment no longer possible to edit"
1310
  msgstr "Komunikat, jeśli komentarza nie można już edytować"
1311
 
1312
+ #: options/phrases-layouts/phrases-notification.php:264
1313
  msgid "Message if comment text not changed"
1314
  msgstr "Komunikat, jeśli tekst komentarza nie jest zmieniony"
1315
 
1316
+ #: options/phrases-layouts/phrases-notification.php:268
1317
  msgid "TYou've not made any changes"
1318
  msgstr "Jeszcze nie dokonałeś zmian"
1319
 
1320
+ #: templates/comment/comment-form.php:50
1321
  msgid "Unable to send an email"
1322
  msgstr "Nie mogę wysłać wiadomości"
1323
 
1324
+ #: templates/comment/comment-form.php:52
1325
  msgid "Subscription not successed"
1326
  msgstr "Subskrypcja nie pomyślna"
1327
 
1328
+ #: templates/comment/comment-form.php:241
1329
+ #: templates/comment/comment-form.php:249
1330
+ msgid "wpDiscuz"
1331
+ msgstr "wpDiscuz"
1332
 
1333
+ #: utils/class.WpdiscuzHelper.php:53
1334
+ msgid "Cannot create temp directory"
1335
+ msgstr "Nie można utworzyć katalogu temp"
1336
 
1337
+ #: utils/class.WpdiscuzHelper.php:54
1338
+ msgid "Cannot create image file"
1339
+ msgstr "Nie można utworzyć pliku obrazu"
1340
 
1341
+ #~ msgid "The captcha expired"
1342
+ #~ msgstr "CAPTCHA wygasł"
1343
+
1344
+ #~ msgid "Not Allow"
1345
+ #~ msgstr "Nie pozwól"
1346
+
1347
+ #~ msgid "Hide the CAPTCHA field for guests"
1348
+ #~ msgstr "Ukryj pole CAPTCHA dla gości"
1349
+
1350
+ #~ msgid "Show the CAPTCHA field for logged in users"
1351
+ #~ msgstr "Pokaż pole CAPTCHA dla zalogowanych gości"
1352
+
1353
+ #~ msgid "Title For Guests"
1354
+ #~ msgstr "Tytuł dla gości"
1355
+
1356
+ #~ msgid "Title For Members"
1357
+ #~ msgstr "Tytuł dla użytkowników"
1358
+
1359
+ #~ msgid "Title For Authors"
1360
+ #~ msgstr "Tytuł dla autorów"
1361
+
1362
+ #~ msgid "Title For Admins"
1363
+ #~ msgstr "Tytuł dla adminów"
1364
+
1365
+ #~ msgid "wpDiscuz - Supercharged native comments"
1366
+ #~ msgstr "wpDiscuz - Doładowane rodzimych komentarzy"
1367
+
1368
+ #~ msgid "http://www.gvectors.com/wpdiscuz/"
1369
+ #~ msgstr "http://www.gvectors.com/wpdiscuz/"
1370
+
1371
+ #~ msgid ""
1372
+ #~ "Better comment system. Wordpress post comments and discussion plugin. "
1373
+ #~ "Allows your visitors discuss, vote for comments and share."
1374
+ #~ msgstr ""
1375
+ #~ "Lepszy system komentarzy. Wordpress dodaje komentarze i wtyczkę dyskusji. "
1376
+ #~ "Pozwala odwiedzającym na dyskusję, głosować na komentarze czy udostępniać."
1377
 
1378
+ #~ msgid "gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)"
1379
+ #~ msgstr "gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)"
 
1380
 
1381
+ #~ msgid "http://www.gvectors.com/"
1382
+ #~ msgstr "http://www.gvectors.com/"
 
1383
 
1384
  #~ msgid "User Must be registered to comment"
1385
  #~ msgstr "Użytkownik musi być zarejestrowany, aby móc dodać komentarz"
options/class.WpdiscuzOptions.php CHANGED
@@ -14,9 +14,6 @@ class WpdiscuzOptions {
14
  $this->initShareButtons();
15
  }
16
 
17
- /**
18
- * Builds options page
19
- */
20
  public function mainOptionsForm() {
21
  $defaultPostTypes = get_post_types('', 'names');
22
  foreach ($defaultPostTypes as $postType) {
@@ -81,197 +78,7 @@ class WpdiscuzOptions {
81
  $this->optionsSerialized->showHideCommentLink = isset($_POST['showHideCommentLink']) ? $_POST['showHideCommentLink'] : 0;
82
  $this->optionsSerialized->updateOptions();
83
  }
84
- ?>
85
-
86
- <div class="wrap wpdiscuz_options_page">
87
- <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
88
- <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/plugin-icon/plugin-icon-48.png'); ?>"/>
89
- </div>
90
- <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('wpDiscuz General Settings', 'wpdiscuz'); ?></h2>
91
- <br style="clear:both" />
92
- <link rel="stylesheet" href="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/bxslider/jquery.bxslider.css'); ?>" type="text/css" />
93
- <script src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/bxslider/jquery.min.js'); ?>"></script>
94
- <script src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/bxslider/jquery.bxslider.js'); ?>"></script>
95
- <table width="100%" border="0" cellspacing="1" class="widefat">
96
- <tr>
97
- <td style="padding:10px; padding-left:0px; vertical-align:top; width:500px;">
98
- <div class="slider">
99
- <ul class="bxslider">
100
- <li><a href="https://wordpress.org/plugins/woodiscuz-woocommerce-comments/screenshots/"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/3.png'); ?>" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
101
- <li><a href="https://wordpress.org/plugins/woocommerce-category-slider/screenshots/"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/5.png'); ?>" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
102
- <li><a href="https://wordpress.org/plugins/woocommerce-pdf-print/"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/4.png'); ?>" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
103
- <li><a href="https://wordpress.org/plugins/advanced-content-pagination/screenshots/"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/1.png'); ?>" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
104
- <li><a href="https://wordpress.org/plugins/author-and-post-statistic-widgets/"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/2.png'); ?>" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
105
- </ul>
106
- </div>
107
- <div style="clear:both"></div>
108
- </td>
109
- <td valign="top" style="padding:20px;">
110
- <table width="100%" border="0" cellspacing="1" class="widefat">
111
- <thead>
112
- <tr>
113
- <th style="font-size:14px; background-color:#FEFCE7">&nbsp;Information</th>
114
- </tr>
115
- </thead>
116
- <tr valign="top">
117
- <td style="background:#FFF; text-align:left; font-size:13px;">
118
- wpDiscuz is also available for WooCommerce. The WooCommerce Comments plugin name is <a href="https://wordpress.org/plugins/woodiscuz-woocommerce-comments/" style="color:#993399; text-decoration:underline;"><strong>WooDiscuz</strong></a>. It adds a new "Discussion" Tab on product page and allows your customers ask Pre-Sale Questions and discuss about your products.
119
- </td>
120
- </tr>
121
- </table><br />
122
- <table width="100%" border="0" cellspacing="1" class="widefat">
123
- <thead>
124
- <tr>
125
- <th style="font-size:16px; background-color:#FEFCE7;"><strong>Like wpDiscuz?</strong> <br /><span style="font-size:15px">We really need your reviews!</span></th>
126
- </tr>
127
- </thead>
128
- <tr valign="top">
129
- <td style="background:#FFF; text-align:left; font-size:13px;">
130
- We do our best to make wpDiscuz the best self-hosted comment plugin for Wordpress. Thousands users are currently satisfied with wpDiscuz but only about 1% of them give us 5 start rating.
131
- However we have a very few users who for some very specific reasons are not satisfied and they are very active in decreasing wpDiscuz rating.
132
- Please help us keep plugin rating high, encouraging us to develop and maintain this plugin. Take a one minute to leave <a href="https://wordpress.org/support/view/plugin-reviews/wpdiscuz?filter=5" title="Go to wpDiscuz Reviews section on Wordpress.org"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/5s.png'); ?>" border="0" align="absmiddle" /></a> star review on <a href="https://wordpress.org/support/view/plugin-reviews/wpdiscuz?filter=5">Wordpress.org</a>. Thank You!
133
- <hr style="border-style:dotted;" />
134
- <div style="width:200px; float:right;">
135
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
136
- <input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="UC44WQM5XJFPA"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
137
- </form>
138
- </div>
139
- We spend as much of my spare time as possible working on wpDiscuz and any donation is appreciated. Donations play a crucial role in supporting Free and Open Source Software projects.
140
- </td>
141
- </tr>
142
- </table>
143
- </td>
144
- </tr>
145
- </table>
146
- <script>
147
- $('.bxslider').bxSlider({
148
- mode: 'fade',
149
- captions: false,
150
- auto: true
151
- });
152
- </script>
153
- <br />
154
- <?php
155
- if (isset($_GET['wpdiscuz_reset_options']) && $_GET['wpdiscuz_reset_options'] == 1 && current_user_can('manage_options')) {
156
- delete_option(WpdiscuzCore::OPTION_SLUG_OPTIONS);
157
- $this->optionsSerialized->postTypes = array('post');
158
- $this->optionsSerialized->shareButtons = array('fb', 'twitter', 'google');
159
- $this->optionsSerialized->addOptions();
160
- $this->optionsSerialized->initOptions(get_option(WpdiscuzCore::OPTION_SLUG_OPTIONS));
161
- $this->optionsSerialized->blogRoles['post_author'] = '#00B38F';
162
- $blogRoles = get_editable_roles();
163
- foreach ($blogRoles as $roleName => $roleInfo) {
164
- $this->optionsSerialized->blogRoles[$roleName] = '#00B38F';
165
- }
166
- $this->optionsSerialized->blogRoles['guest'] = '#00B38F';
167
- $this->optionsSerialized->showPluginPoweredByLink = 1;
168
- $this->optionsSerialized->updateOptions();
169
- }
170
- ?>
171
-
172
- <form action="<?php echo admin_url(); ?>edit-comments.php?page=wpdiscuz_options_page" method="post" name="wpdiscuz_options_page" class="wc-main-settings-form wc-form">
173
- <?php
174
- if (function_exists('wp_nonce_field')) {
175
- wp_nonce_field('wc_options_form');
176
- }
177
- ?>
178
- <h2>&nbsp;</h2>
179
- <div id="optionsTab">
180
- <ul class="resp-tabs-list options_tab_id">
181
- <li><?php _e('General settings', 'wpdiscuz'); ?></li>
182
- <li><?php _e('Live Update', 'wpdiscuz'); ?></li>
183
- <li><?php _e('Show/Hide Components', 'wpdiscuz'); ?></li>
184
- <li><?php _e('Email Subscription', 'wpdiscuz'); ?> <?php if (class_exists('Prompt_Comment_Form_Handling')): ?> <?php _e('and Postmatic', 'wpdiscuz'); ?> <?php endif; ?></li>
185
- <li><?php _e('Background and Colors', 'wpdiscuz'); ?></li>
186
- <li><?php _e('Social Login', 'wpdiscuz'); ?></li>
187
- <li><?php _e('Integrations', 'wpdiscuz'); ?></li>
188
- </ul>
189
- <div class="resp-tabs-container options_tab_id">
190
- <?php
191
- include 'options-layouts/settings-general.php';
192
- include 'options-layouts/settings-live-update.php';
193
- include 'options-layouts/settings-show-hide.php';
194
- include 'options-layouts/settings-subscription.php';
195
- include 'options-layouts/settings-style.php';
196
- include 'options-layouts/settings-social.php';
197
- include 'options-layouts/settings-integrations.php';
198
- ?>
199
- </div>
200
- </div>
201
- <script type="text/javascript">
202
- jQuery(document).ready(function ($) {
203
- var width = 0;
204
- var optionsTabsType = 'default';
205
- $('#optionsTab ul.resp-tabs-list.options_tab_id li').each(function () {
206
- width += $(this).outerWidth(true);
207
- });
208
-
209
- if (width > $('#optionsTab').innerWidth()) {
210
- optionsTabsType = 'vertical';
211
- }
212
-
213
- var url = '<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/social-icons/'); ?>';
214
- $('.wpdiscuz-share-buttons').each(function () {
215
- setBG($(this));
216
- });
217
- $('.wpdiscuz-share-buttons').click(function () {
218
- setBG($(this));
219
- });
220
- function setBG(field) {
221
- if ($('.wc_share_button', field).is(':checked')) {
222
- $(field).css('background', 'url("' + url + $('.wc_share_button', field).val() + '-18x18-orig.png")');
223
- } else {
224
- $(field).css('background', 'url("' + url + $('.wc_share_button', field).val() + '-18x18.png")');
225
- }
226
- }
227
- //Horizontal Tab
228
- $('#optionsTab').easyResponsiveTabs({
229
- type: optionsTabsType, //Types: default, vertical, accordion
230
- width: 'auto', //auto or any width like 600px
231
- fit: true, // 100% fit in a container
232
- tabidentify: 'options_tab_id' // The tab groups identifier
233
- });
234
-
235
-
236
- // Child Tab
237
- $('#integrationsChild').easyResponsiveTabs({
238
- type: 'vertical',
239
- width: 'auto',
240
- fit: true,
241
- tabidentify: 'integrationsChild', // The tab groups identifier
242
- });
243
-
244
- $(document).delegate('.options_tab_id .resp-tab-item', 'click', function () {
245
- var activeTabIndex = $('.resp-tabs-list.options_tab_id li.resp-tab-active').index();
246
- $.cookie('optionsActiveTabIndex', activeTabIndex, {expires: 30});
247
- });
248
- var savedIndex = $.cookie('optionsActiveTabIndex') >= 0 ? $.cookie('optionsActiveTabIndex') : 0;
249
- $('.resp-tabs-list.options_tab_id li').removeClass('resp-tab-active');
250
- $('.resp-tabs-container.options_tab_id > div').removeClass('resp-tab-content-active');
251
- $('.resp-tabs-container.options_tab_id > div').css('display', 'none');
252
- $('.resp-tabs-list.options_tab_id li').eq(savedIndex).addClass('resp-tab-active');
253
- $('.resp-tabs-container.options_tab_id > div').eq(savedIndex).addClass('resp-tab-content-active');
254
- $('.resp-tabs-container.options_tab_id > div').eq(savedIndex).css('display', 'block');
255
- });
256
- </script>
257
- <table class="form-table wc-form-table">
258
- <tbody>
259
- <tr valign="top">
260
- <td colspan="4">
261
- <p class="submit">
262
- <a style="float: left;" class="button button-secondary" href="<?php echo admin_url(); ?>edit-comments.php?page=wpdiscuz_options_page&wpdiscuz_reset_options=1"><?php _e('Reset Options', 'wpdiscuz'); ?></a>
263
- <?php $clearChildrenUrl = admin_url('admin-post.php/?action=clearChildrenData&clear=1'); ?>
264
- <a href="<?php echo wp_nonce_url($clearChildrenUrl, 'clear_children_data'); ?>" class="button button-secondary" title="Use this button if wpDiscuz has been deactivated for a while." style="margin-left: 5px;" id="wpdiscuz_synch_comments"><?php _e('Refresh comment optimization', 'wpdiscuz'); ?></a>
265
- <input style="float: right;" type="submit" class="button button-primary" name="wc_submit_options" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
266
- </p>
267
- </td>
268
- </tr>
269
- </tbody>
270
- </table>
271
- <input type="hidden" name="action" value="update" />
272
- </form>
273
- </div>
274
- <?php
275
  }
276
 
277
  public function phrasesOptionsForm() {
@@ -389,82 +196,12 @@ class WpdiscuzOptions {
389
  $this->dbManager->updatePhrases($this->optionsSerialized->phrases);
390
  }
391
  $this->optionsSerialized->initPhrasesOnLoad();
392
- ?>
393
- <div class="wrap wpdiscuz_options_page">
394
- <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
395
- <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/plugin-icon/plugin-icon-48.png'); ?>" style="height:43px;"/>
396
- </div>
397
- <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz Front-end Phrases', 'wpdiscuz'); ?></h2>
398
- <br style="clear:both" />
399
- <form action="<?php echo admin_url(); ?>edit-comments.php?page=wpdiscuz_phrases_page" method="post" name="wpdiscuz_phrases_page" class="wc-phrases-settings-form wc-form">
400
- <?php
401
- if (function_exists('wp_nonce_field')) {
402
- wp_nonce_field('wc_phrases_form');
403
- }
404
- ?>
405
- <div id="phrasesTab">
406
- <ul class="resp-tabs-list phrases_tab_id">
407
- <li><?php _e('General', 'wpdiscuz'); ?></li>
408
- <li><?php _e('Form', 'wpdiscuz'); ?></li>
409
- <li><?php _e('Comment', 'wpdiscuz'); ?></li>
410
- <li><?php _e('Date/Time', 'wpdiscuz'); ?></li>
411
- <li><?php _e('Email', 'wpdiscuz'); ?></li>
412
- <li><?php _e('Notification', 'wpdiscuz'); ?></li>
413
- </ul>
414
- <div class="resp-tabs-container phrases_tab_id">
415
- <?php include 'phrases-layouts/phrases-general.php'; ?>
416
- <?php include 'phrases-layouts/phrases-form.php'; ?>
417
- <?php include 'phrases-layouts/phrases-comment.php'; ?>
418
- <?php include 'phrases-layouts/phrases-datetime.php'; ?>
419
- <?php include 'phrases-layouts/phrases-email.php'; ?>
420
- <?php include 'phrases-layouts/phrases-notification.php'; ?>
421
- </div>
422
- </div>
423
- <script type="text/javascript">
424
- jQuery(document).ready(function ($) {
425
- var width = 0;
426
- var phrasesTabsType = 'default';
427
- $('#phrasesTab ul.resp-tabs-list.phrases_tab_id li').each(function () {
428
- width += $(this).outerWidth(true);
429
- });
430
 
431
- if (width > $('#phrasesTab').innerWidth()) {
432
- phrasesTabsType = 'vertical';
433
- }
434
- $('#phrasesTab').easyResponsiveTabs({
435
- type: phrasesTabsType, //Types: default, vertical, accordion
436
- width: 'auto', //auto or any width like 600px
437
- fit: true, // 100% fit in a container
438
- tabidentify: 'phrases_tab_id' // The tab groups identifier
439
- });
440
- $(document).delegate('.phrases_tab_id .resp-tab-item', 'click', function () {
441
- var activeTabIndex = $('.resp-tabs-list.phrases_tab_id li.resp-tab-active').index();
442
- $.cookie('phrasesActiveTabIndex', activeTabIndex, {expires: 30});
443
- });
444
- var savedIndex = $.cookie('phrasesActiveTabIndex') >= 0 ? $.cookie('phrasesActiveTabIndex') : 0;
445
- $('.resp-tabs-list.phrases_tab_id li').removeClass('resp-tab-active');
446
- $('.resp-tabs-container.phrases_tab_id > div').removeClass('resp-tab-content-active');
447
- $('.resp-tabs-container.phrases_tab_id > div').css('display', 'none');
448
- $('.resp-tabs-list.phrases_tab_id li').eq(savedIndex).addClass('resp-tab-active');
449
- $('.resp-tabs-container.phrases_tab_id > div').eq(savedIndex).addClass('resp-tab-content-active');
450
- $('.resp-tabs-container.phrases_tab_id > div').eq(savedIndex).css('display', 'block');
451
- });
452
- </script>
453
- <table class="form-table wc-form-table">
454
- <tbody>
455
- <tr valign="top">
456
- <td colspan="4">
457
- <p class="submit">
458
- <input type="submit" class="button button-primary" name="wc_submit_phrases" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
459
- </p>
460
- </td>
461
- </tr>
462
- <input type="hidden" name="action" value="update" />
463
- </tbody>
464
- </table>
465
- </form>
466
- </div>
467
- <?php
468
  }
469
 
470
  private function initShareButtons() {
14
  $this->initShareButtons();
15
  }
16
 
 
 
 
17
  public function mainOptionsForm() {
18
  $defaultPostTypes = get_post_types('', 'names');
19
  foreach ($defaultPostTypes as $postType) {
78
  $this->optionsSerialized->showHideCommentLink = isset($_POST['showHideCommentLink']) ? $_POST['showHideCommentLink'] : 0;
79
  $this->optionsSerialized->updateOptions();
80
  }
81
+ include_once 'html-options.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  }
83
 
84
  public function phrasesOptionsForm() {
196
  $this->dbManager->updatePhrases($this->optionsSerialized->phrases);
197
  }
198
  $this->optionsSerialized->initPhrasesOnLoad();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
 
200
+ include_once 'html-phrases.php';
201
+ }
202
+
203
+ public function addons() {
204
+ include_once 'html-addons.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  }
206
 
207
  private function initShareButtons() {
options/html-options.php ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wrap wpdiscuz_options_page">
2
+ <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
3
+ <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/plugin-icon/plugin-icon-48.png'); ?>" style="border:2px solid #fff;"/>
4
+ </div>
5
+ <h1 style="padding-bottom:20px; padding-top:15px;"><?php _e('wpDiscuz General Settings', 'wpdiscuz'); ?></h1>
6
+ <br style="clear:both" />
7
+ <table width="100%" border="0" cellspacing="1" class="widefat">
8
+ <tr>
9
+ <td valign="top" style="padding:10px;">
10
+ <table width="100%" border="0" cellspacing="1">
11
+ <thead>
12
+ <tr>
13
+ <th style="font-size:16px;"><strong>Like wpDiscuz?</strong> <br /><span style="font-size:14px">We really need your reviews!</span></th>
14
+ <th style="font-size:16px; width:135px; text-align:center; border-bottom:1px solid #008EC2;"><a href="http://wpdiscuz.com/wpdiscuz-documentation/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank">Documentation</a></th>
15
+ <th style="font-size:16px; width:75px; text-align:center; border-bottom:1px solid #008EC2;"><a href="http://gvectors.com/forum/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank">Support</a></th>
16
+ </tr>
17
+ </thead>
18
+ <tr valign="top">
19
+ <td colspan="3" style="background:#FFF; text-align:left; font-size:13px;">
20
+ We do our best to make wpDiscuz the best self-hosted comment plugin for Wordpress. Thousands users are currently satisfied with wpDiscuz but only about 1% of them give us 5 start rating.
21
+ However we have a very few users who for some very specific reasons are not satisfied and they are very active in decreasing wpDiscuz rating.
22
+ Please help us keep plugin rating high, encouraging us to develop and maintain this plugin. Take a one minute to leave <a href="https://wordpress.org/support/view/plugin-reviews/wpdiscuz?filter=5" title="Go to wpDiscuz Reviews section on Wordpress.org"><img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/gc/5s.png'); ?>" border="0" align="absmiddle" /></a> star review on <a href="https://wordpress.org/support/view/plugin-reviews/wpdiscuz?filter=5">Wordpress.org</a>. Thank You!
23
+ </td>
24
+ </tr>
25
+ </table>
26
+ </td>
27
+ </tr>
28
+ </table>
29
+ <?php
30
+ if (isset($_GET['wpdiscuz_reset_options']) && $_GET['wpdiscuz_reset_options'] == 1 && current_user_can('manage_options')) {
31
+ delete_option(WpdiscuzCore::OPTION_SLUG_OPTIONS);
32
+ $this->optionsSerialized->postTypes = array('post');
33
+ $this->optionsSerialized->shareButtons = array('fb', 'twitter', 'google');
34
+ $this->optionsSerialized->addOptions();
35
+ $this->optionsSerialized->initOptions(get_option(WpdiscuzCore::OPTION_SLUG_OPTIONS));
36
+ $this->optionsSerialized->blogRoles['post_author'] = '#00B38F';
37
+ $blogRoles = get_editable_roles();
38
+ foreach ($blogRoles as $roleName => $roleInfo) {
39
+ $this->optionsSerialized->blogRoles[$roleName] = '#00B38F';
40
+ }
41
+ $this->optionsSerialized->blogRoles['guest'] = '#00B38F';
42
+ $this->optionsSerialized->showPluginPoweredByLink = 1;
43
+ $this->optionsSerialized->updateOptions();
44
+ }
45
+ ?>
46
+
47
+ <form action="<?php echo admin_url(); ?>edit-comments.php?page=wpdiscuz_options_page" method="post" name="wpdiscuz_options_page" class="wc-main-settings-form wc-form">
48
+ <?php
49
+ if (function_exists('wp_nonce_field')) {
50
+ wp_nonce_field('wc_options_form');
51
+ }
52
+ ?>
53
+ <h2>&nbsp;</h2>
54
+ <div id="optionsTab">
55
+ <ul class="resp-tabs-list options_tab_id">
56
+ <li><?php _e('General settings', 'wpdiscuz'); ?></li>
57
+ <li><?php _e('Live Update', 'wpdiscuz'); ?></li>
58
+ <li><?php _e('Show/Hide Components', 'wpdiscuz'); ?></li>
59
+ <li><?php _e('Email Subscription', 'wpdiscuz'); ?> <?php if (class_exists('Prompt_Comment_Form_Handling')): ?> <?php _e('and Postmatic', 'wpdiscuz'); ?> <?php endif; ?></li>
60
+ <li><?php _e('Background and Colors', 'wpdiscuz'); ?></li>
61
+ <li><?php _e('Social Login', 'wpdiscuz'); ?></li>
62
+ <li><?php _e('Integrations', 'wpdiscuz'); ?></li>
63
+ </ul>
64
+ <div class="resp-tabs-container options_tab_id">
65
+ <?php
66
+ include 'options-layouts/settings-general.php';
67
+ include 'options-layouts/settings-live-update.php';
68
+ include 'options-layouts/settings-show-hide.php';
69
+ include 'options-layouts/settings-subscription.php';
70
+ include 'options-layouts/settings-style.php';
71
+ include 'options-layouts/settings-social.php';
72
+ include 'options-layouts/settings-integrations.php';
73
+ ?>
74
+ </div>
75
+ </div>
76
+ <script type="text/javascript">
77
+ jQuery(document).ready(function ($) {
78
+ var width = 0;
79
+ var optionsTabsType = 'default';
80
+ $('#optionsTab ul.resp-tabs-list.options_tab_id li').each(function () {
81
+ width += $(this).outerWidth(true);
82
+ });
83
+
84
+ if (width > $('#optionsTab').innerWidth()) {
85
+ optionsTabsType = 'vertical';
86
+ }
87
+
88
+ var url = '<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/social-icons/'); ?>';
89
+ $('.wpdiscuz-share-buttons').each(function () {
90
+ setBG($(this));
91
+ });
92
+ $('.wpdiscuz-share-buttons').click(function () {
93
+ setBG($(this));
94
+ });
95
+ function setBG(field) {
96
+ if ($('.wc_share_button', field).is(':checked')) {
97
+ $(field).css('background', 'url("' + url + $('.wc_share_button', field).val() + '-18x18-orig.png")');
98
+ } else {
99
+ $(field).css('background', 'url("' + url + $('.wc_share_button', field).val() + '-18x18.png")');
100
+ }
101
+ }
102
+ //Horizontal Tab
103
+ $('#optionsTab').easyResponsiveTabs({
104
+ type: optionsTabsType, //Types: default, vertical, accordion
105
+ width: 'auto', //auto or any width like 600px
106
+ fit: true, // 100% fit in a container
107
+ tabidentify: 'options_tab_id' // The tab groups identifier
108
+ });
109
+
110
+
111
+ // Child Tab
112
+ $('#integrationsChild').easyResponsiveTabs({
113
+ type: 'vertical',
114
+ width: 'auto',
115
+ fit: true,
116
+ tabidentify: 'integrationsChild', // The tab groups identifier
117
+ });
118
+
119
+ $(document).delegate('.options_tab_id .resp-tab-item', 'click', function () {
120
+ var activeTabIndex = $('.resp-tabs-list.options_tab_id li.resp-tab-active').index();
121
+ $.cookie('optionsActiveTabIndex', activeTabIndex, {expires: 30});
122
+ });
123
+ var savedIndex = $.cookie('optionsActiveTabIndex') >= 0 ? $.cookie('optionsActiveTabIndex') : 0;
124
+ $('.resp-tabs-list.options_tab_id li').removeClass('resp-tab-active');
125
+ $('.resp-tabs-container.options_tab_id > div').removeClass('resp-tab-content-active');
126
+ $('.resp-tabs-container.options_tab_id > div').css('display', 'none');
127
+ $('.resp-tabs-list.options_tab_id li').eq(savedIndex).addClass('resp-tab-active');
128
+ $('.resp-tabs-container.options_tab_id > div').eq(savedIndex).addClass('resp-tab-content-active');
129
+ $('.resp-tabs-container.options_tab_id > div').eq(savedIndex).css('display', 'block');
130
+ });
131
+ </script>
132
+ <table class="form-table wc-form-table">
133
+ <tbody>
134
+ <tr valign="top">
135
+ <td colspan="4">
136
+ <p class="submit">
137
+ <a style="float: left;" class="button button-secondary" href="<?php echo admin_url(); ?>edit-comments.php?page=wpdiscuz_options_page&wpdiscuz_reset_options=1"><?php _e('Reset Options', 'wpdiscuz'); ?></a>
138
+ <?php $clearChildrenUrl = admin_url('admin-post.php/?action=clearChildrenData&clear=1'); ?>
139
+ <a href="<?php echo wp_nonce_url($clearChildrenUrl, 'clear_children_data'); ?>" class="button button-secondary" title="Use this button if wpDiscuz has been deactivated for a while." style="margin-left: 5px;" id="wpdiscuz_synch_comments"><?php _e('Refresh comment optimization', 'wpdiscuz'); ?></a>
140
+ <input style="float: right;" type="submit" class="button button-primary" name="wc_submit_options" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
141
+ </p>
142
+ </td>
143
+ </tr>
144
+ </tbody>
145
+ </table>
146
+ <input type="hidden" name="action" value="update" />
147
+ </form>
148
+ </div>
options/html-phrases.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wrap wpdiscuz_options_page">
2
+ <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
3
+ <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/plugin-icon/plugin-icon-48.png'); ?>" style="border:2px solid #fff;"/>
4
+ </div>
5
+ <h1 style="padding-bottom:20px; padding-top:15px;"><?php _e('wpDiscuz Front-end Phrases', 'wpdiscuz'); ?></h1>
6
+ <br style="clear:both" />
7
+ <form action="<?php echo admin_url(); ?>edit-comments.php?page=wpdiscuz_phrases_page" method="post" name="wpdiscuz_phrases_page" class="wc-phrases-settings-form wc-form">
8
+ <?php
9
+ if (function_exists('wp_nonce_field')) {
10
+ wp_nonce_field('wc_phrases_form');
11
+ }
12
+ ?>
13
+ <div id="phrasesTab">
14
+ <ul class="resp-tabs-list phrases_tab_id">
15
+ <li><?php _e('General', 'wpdiscuz'); ?></li>
16
+ <li><?php _e('Form', 'wpdiscuz'); ?></li>
17
+ <li><?php _e('Comment', 'wpdiscuz'); ?></li>
18
+ <li><?php _e('Date/Time', 'wpdiscuz'); ?></li>
19
+ <li><?php _e('Email', 'wpdiscuz'); ?></li>
20
+ <li><?php _e('Notification', 'wpdiscuz'); ?></li>
21
+ </ul>
22
+ <div class="resp-tabs-container phrases_tab_id">
23
+ <?php include 'phrases-layouts/phrases-general.php'; ?>
24
+ <?php include 'phrases-layouts/phrases-form.php'; ?>
25
+ <?php include 'phrases-layouts/phrases-comment.php'; ?>
26
+ <?php include 'phrases-layouts/phrases-datetime.php'; ?>
27
+ <?php include 'phrases-layouts/phrases-email.php'; ?>
28
+ <?php include 'phrases-layouts/phrases-notification.php'; ?>
29
+ </div>
30
+ </div>
31
+ <script type="text/javascript">
32
+ jQuery(document).ready(function ($) {
33
+ var width = 0;
34
+ var phrasesTabsType = 'default';
35
+ $('#phrasesTab ul.resp-tabs-list.phrases_tab_id li').each(function () {
36
+ width += $(this).outerWidth(true);
37
+ });
38
+
39
+ if (width > $('#phrasesTab').innerWidth()) {
40
+ phrasesTabsType = 'vertical';
41
+ }
42
+ $('#phrasesTab').easyResponsiveTabs({
43
+ type: phrasesTabsType, //Types: default, vertical, accordion
44
+ width: 'auto', //auto or any width like 600px
45
+ fit: true, // 100% fit in a container
46
+ tabidentify: 'phrases_tab_id' // The tab groups identifier
47
+ });
48
+ $(document).delegate('.phrases_tab_id .resp-tab-item', 'click', function () {
49
+ var activeTabIndex = $('.resp-tabs-list.phrases_tab_id li.resp-tab-active').index();
50
+ $.cookie('phrasesActiveTabIndex', activeTabIndex, {expires: 30});
51
+ });
52
+ var savedIndex = $.cookie('phrasesActiveTabIndex') >= 0 ? $.cookie('phrasesActiveTabIndex') : 0;
53
+ $('.resp-tabs-list.phrases_tab_id li').removeClass('resp-tab-active');
54
+ $('.resp-tabs-container.phrases_tab_id > div').removeClass('resp-tab-content-active');
55
+ $('.resp-tabs-container.phrases_tab_id > div').css('display', 'none');
56
+ $('.resp-tabs-list.phrases_tab_id li').eq(savedIndex).addClass('resp-tab-active');
57
+ $('.resp-tabs-container.phrases_tab_id > div').eq(savedIndex).addClass('resp-tab-content-active');
58
+ $('.resp-tabs-container.phrases_tab_id > div').eq(savedIndex).css('display', 'block');
59
+ });
60
+ </script>
61
+ <table class="form-table wc-form-table">
62
+ <tbody>
63
+ <tr valign="top">
64
+ <td colspan="4">
65
+ <p class="submit">
66
+ <input type="submit" class="button button-primary" name="wc_submit_phrases" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
67
+ </p>
68
+ </td>
69
+ </tr>
70
+ <input type="hidden" name="action" value="update" />
71
+ </tbody>
72
+ </table>
73
+ </form>
74
+ </div>
options/options-layouts/settings-integrations.php CHANGED
@@ -5,24 +5,24 @@ if (!defined('ABSPATH')) {
5
  ?>
6
  <div>
7
  <h2 style="padding:5px 10px 10px 10px; margin:0px;"><?php _e('Integrations', 'wpdiscuz'); ?></h2>
8
- <!-- <table class="wp-list-table widefat plugins" style="margin-top:10px; border:none;" width="75">
9
  <tbody>
10
  <tr valign="top">
11
- <td>-->
12
- <div id="integrationsChild">
13
- <ul class="resp-tabs-list integrationsChild">
14
- <li><?php _e('BuddyPress', 'wpdiscuz'); ?></li>
15
- <li><?php _e('Users Ultra', 'wpdiscuz'); ?></li>
16
- <li><?php _e('User Pro', 'wpdiscuz'); ?></li>
17
- <li><?php _e('Ultimate Member', 'wpdiscuz'); ?></li>
18
- <li><?php _e('MyCred', 'wpdiscuz'); ?></li>
19
- </ul>
20
- <div class="resp-tabs-container integrationsChild">
21
- <div>
22
- <div style="width:100%; display:block;">
23
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
24
- <p>This code will integrate BuddyPress profile URL with wpDiscuz. BuddyPress Display Names and Avatars will be integrated automatically.</p>
25
- <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
26
  ////////////////////////////////////////////////////////////////////////
27
  // BuddyPress Profile URL Integration //////////////////////////////////
28
  ////////////////////////////////////////////////////////////////////////
@@ -35,14 +35,14 @@ function wpdiscuz_bp_profile_url($profile_url, $user) {
35
  }
36
  return $profile_url;
37
  }
38
- </pre>
39
- </div>
40
- </div>
41
- <div>
42
- <div style="width:100%; display:block;">
43
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
44
- <p>This code will integrate Users Ultra profile URL with wpDiscuz. Users Ultra Display Names and Avatars will be integrated automatically.</p>
45
- <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
46
  ////////////////////////////////////////////////////////////////////////
47
  // Users Ultra Profile URL Integration /////////////////////////////////
48
  ////////////////////////////////////////////////////////////////////////
@@ -55,14 +55,14 @@ function wpdiscuz_uu_profile_url($profile_url, $user) {
55
  }
56
  return $profile_url;
57
  }
58
- </pre>
59
- </div>
60
- </div>
61
- <div>
62
- <div style="width:100%; display:block;">
63
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
64
- <p>This code will integrate User Pro profile URL with wpDiscuz. User Pro Display Names and Avatars will be integrated automatically.</p>
65
- <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
66
  ////////////////////////////////////////////////////////////////////////
67
  // User Pro Profile URL Integration ////////////////////////////////////
68
  ////////////////////////////////////////////////////////////////////////
@@ -75,16 +75,16 @@ function wpdiscuz_up_profile_url($profile_url, $user) {
75
  }
76
  return $profile_url;
77
  }
78
- </pre>
79
- </div>
80
- </div>
81
 
82
- <div>
83
 
84
- <div style="width:100%; display:block;">
85
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
86
- <p>This code consists of two parts, which will integrate Ultimate Member profile Display Name and Profile URL with wpDiscuz. UM Avatars will be integrated automatically.</p>
87
- <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
88
  ////////////////////////////////////////////////////////////////////////
89
  // Ultimate Member Profile Display Name Integration ////////////////////
90
  ////////////////////////////////////////////////////////////////////////
@@ -113,14 +113,14 @@ function wpdiscuz_um_profile_url($profile_url, $user) {
113
  return $profile_url;
114
  }
115
 
116
- </pre>
117
- </div>
118
- </div>
119
- <div>
120
- <div style="width:100%; display:block;">
121
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
122
- <p>This code will integrate MyCred User Ranks and Badges under comment author avatar.</p>
123
- <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
124
  ////////////////////////////////////////////////////////////////////////
125
  // MyCred User Ranks and Badges Integration ////////////////////////////
126
  ////////////////////////////////////////////////////////////////////////
@@ -147,13 +147,13 @@ function wpdiscuz_mc_after_label_html($afterLabelHtml, $comment) {
147
  }
148
  return $afterLabelHtml;
149
  }
150
- </pre>
151
- </div>
152
- </div>
153
- </div>
154
- </div>
155
- <!-- </td>
156
- </tr>
157
- </tbody>
158
- </table>-->
159
  </div>
5
  ?>
6
  <div>
7
  <h2 style="padding:5px 10px 10px 10px; margin:0px;"><?php _e('Integrations', 'wpdiscuz'); ?></h2>
8
+ <table class="wp-list-table widefat plugins" style="margin-top:10px; border:none;" width="75">
9
  <tbody>
10
  <tr valign="top">
11
+ <td>
12
+ <div id="integrationsChild">
13
+ <ul class="resp-tabs-list integrationsChild">
14
+ <li><?php _e('BuddyPress', 'wpdiscuz'); ?></li>
15
+ <li><?php _e('Users Ultra', 'wpdiscuz'); ?></li>
16
+ <li><?php _e('User Pro', 'wpdiscuz'); ?></li>
17
+ <li><?php _e('Ultimate Member', 'wpdiscuz'); ?></li>
18
+ <li><?php _e('MyCred', 'wpdiscuz'); ?></li>
19
+ </ul>
20
+ <div class="resp-tabs-container integrationsChild">
21
+ <div>
22
+ <div style="width:100%; display:block;">
23
+ <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
24
+ <p>This code will integrate BuddyPress profile URL with wpDiscuz. BuddyPress Display Names and Avatars will be integrated automatically.</p>
25
+ <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
26
  ////////////////////////////////////////////////////////////////////////
27
  // BuddyPress Profile URL Integration //////////////////////////////////
28
  ////////////////////////////////////////////////////////////////////////
35
  }
36
  return $profile_url;
37
  }
38
+ </pre>
39
+ </div>
40
+ </div>
41
+ <div>
42
+ <div style="width:100%; display:block;">
43
+ <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
44
+ <p>This code will integrate Users Ultra profile URL with wpDiscuz. Users Ultra Display Names and Avatars will be integrated automatically.</p>
45
+ <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
46
  ////////////////////////////////////////////////////////////////////////
47
  // Users Ultra Profile URL Integration /////////////////////////////////
48
  ////////////////////////////////////////////////////////////////////////
55
  }
56
  return $profile_url;
57
  }
58
+ </pre>
59
+ </div>
60
+ </div>
61
+ <div>
62
+ <div style="width:100%; display:block;">
63
+ <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
64
+ <p>This code will integrate User Pro profile URL with wpDiscuz. User Pro Display Names and Avatars will be integrated automatically.</p>
65
+ <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
66
  ////////////////////////////////////////////////////////////////////////
67
  // User Pro Profile URL Integration ////////////////////////////////////
68
  ////////////////////////////////////////////////////////////////////////
75
  }
76
  return $profile_url;
77
  }
78
+ </pre>
79
+ </div>
80
+ </div>
81
 
82
+ <div>
83
 
84
+ <div style="width:100%; display:block;">
85
+ <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
86
+ <p>This code consists of two parts, which will integrate Ultimate Member profile Display Name and Profile URL with wpDiscuz. UM Avatars will be integrated automatically.</p>
87
+ <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
88
  ////////////////////////////////////////////////////////////////////////
89
  // Ultimate Member Profile Display Name Integration ////////////////////
90
  ////////////////////////////////////////////////////////////////////////
113
  return $profile_url;
114
  }
115
 
116
+ </pre>
117
+ </div>
118
+ </div>
119
+ <div>
120
+ <div style="width:100%; display:block;">
121
+ <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
122
+ <p>This code will integrate MyCred User Ranks and Badges under comment author avatar.</p>
123
+ <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
124
  ////////////////////////////////////////////////////////////////////////
125
  // MyCred User Ranks and Badges Integration ////////////////////////////
126
  ////////////////////////////////////////////////////////////////////////
147
  }
148
  return $afterLabelHtml;
149
  }
150
+ </pre>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </td>
156
+ </tr>
157
+ </tbody>
158
+ </table>
159
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: wordpress comments, ajax comments, ajax, live update, live comments, realtime chat, chat, realtime commenting, Lazy load, Lazy load comments, mobile commenting, post comments, advanced comment, comments box, community, discussion, discuss, disqus, discuz, Disqus alternative, Livefyre alternative, Jatpack comments alternative, Facebook comments alternative, comment form, commenting, reply, comments, better comments, discussions, comment notifications, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, email commenting, social login, boost comments, native comments
5
  Requires at least: 3.8.0
6
  Tested up to: 4.4
7
- Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -22,10 +22,7 @@ wpDiscuz 3.0 and all future 3.x versions have been named as Supercharged. It's s
22
 
23
  **wpDiscuz Features:**
24
 
25
-
26
- **Integration with User Profile Plugins**
27
-
28
- Please read the [Integrations] Tab in wpDiscuz Settings admin page
29
 
30
  * BuddyPress - Avatar, Profile page
31
  * Users Ultra - Avatar, Profile page
@@ -88,9 +85,6 @@ Please read the [Integrations] Tab in wpDiscuz Settings admin page
88
  * | Front-end phrase managing options, you'll be able to translate or change all phrases
89
 
90
 
91
- * Support Forum: http://gvectors.com/forum/
92
- * wpDiscuz Demo: http://wpdiscuz.com/wpdiscuz-3-0-0/
93
- * wpDiscuz Documentation: http://wpdiscuz.com/wpdiscuz-documentation/
94
 
95
  This comment system is also available for WooCommerce, Plugin name is WooDiscuz:
96
  https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
@@ -116,6 +110,8 @@ http://gvectors.com/forum/how-to-and-troubleshooting/resolved-wpdiscuz-comment-f
116
 
117
  wpDiscuz Documentation: http://wpdiscuz.com/wpdiscuz-documentation/
118
 
 
 
119
 
120
  * QUESTION: Does it fully replace the current comment system? That in this case what happens to old comments?
121
  * ANSWER: wpDiscuz changes default comment system to a new interactive system and shows all old comments, nothing will be lost.
@@ -149,21 +145,21 @@ wpDiscuz Documentation: http://wpdiscuz.com/wpdiscuz-documentation/
149
 
150
  == Changelog ==
151
 
152
- = 3.1.1 =
153
 
154
- * Fixed Bug: Conflict with Woocommerce
 
155
 
156
- If you have installed these plugins, please go to wpDiscuz Settings > Integrations tab and read the instruction:
157
 
158
- * BuddyPress,
159
- * Users Ultra,
160
- * Ultimate Member,
161
- * UserPro plugins,
162
- * MyCRED
163
 
164
  - If you have JatPack installed please deactivate JatPack comments, it affects wpDiscuz
165
  - If you have a Cache Plugin and CDN, please delete all caches and purge CDN after wpDiscuz update.
166
 
 
 
 
 
167
  = 3.1.0 =
168
 
169
  * Аccelerated: Better WordPress comments cache compatibility
4
  Tags: wordpress comments, ajax comments, ajax, live update, live comments, realtime chat, chat, realtime commenting, Lazy load, Lazy load comments, mobile commenting, post comments, advanced comment, comments box, community, discussion, discuss, disqus, discuz, Disqus alternative, Livefyre alternative, Jatpack comments alternative, Facebook comments alternative, comment form, commenting, reply, comments, better comments, discussions, comment notifications, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, email commenting, social login, boost comments, native comments
5
  Requires at least: 3.8.0
6
  Tested up to: 4.4
7
+ Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
22
 
23
  **wpDiscuz Features:**
24
 
25
+ Integration with User Profile Plugins - Please read the [Integrations] Tab in wpDiscuz Settings admin page
 
 
 
26
 
27
  * BuddyPress - Avatar, Profile page
28
  * Users Ultra - Avatar, Profile page
85
  * | Front-end phrase managing options, you'll be able to translate or change all phrases
86
 
87
 
 
 
 
88
 
89
  This comment system is also available for WooCommerce, Plugin name is WooDiscuz:
90
  https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
110
 
111
  wpDiscuz Documentation: http://wpdiscuz.com/wpdiscuz-documentation/
112
 
113
+ Support Forum: http://gvectors.com/forum/
114
+
115
 
116
  * QUESTION: Does it fully replace the current comment system? That in this case what happens to old comments?
117
  * ANSWER: wpDiscuz changes default comment system to a new interactive system and shows all old comments, nothing will be lost.
145
 
146
  == Changelog ==
147
 
148
+ = 3.1.2 =
149
 
150
+ * Fixed Bug: CAPTCHA issue on some hosting services and with some secure plugins
151
+ * Updated: Polish (pl_PL) translation, thanks to Radosław Rak
152
 
 
153
 
154
+ IMPORTANT:
 
 
 
 
155
 
156
  - If you have JatPack installed please deactivate JatPack comments, it affects wpDiscuz
157
  - If you have a Cache Plugin and CDN, please delete all caches and purge CDN after wpDiscuz update.
158
 
159
+ = 3.1.1 =
160
+
161
+ * Fixed Bug: Conflict with Woocommerce
162
+
163
  = 3.1.0 =
164
 
165
  * Аccelerated: Better WordPress comments cache compatibility
templates/comment/class.WpdiscuzWalker.php CHANGED
@@ -98,9 +98,8 @@ class WpdiscuzWalker extends Walker_Comment {
98
 
99
  $authorName = $comment->comment_author ? $comment->comment_author : __('Anonymous', 'wpdiscuz');
100
  $authorName = apply_filters('wpdiscuz_comment_author', $authorName, $comment);
101
-
102
  $profileUrl = apply_filters('wpdiscuz_profile_url', $profileUrl, $user);
103
-
104
  $authorAvatar = $this->optionsSerialized->wordpressShowAvatars ? get_avatar($authorAvatarField) : '';
105
 
106
  if ($profileUrl) {
98
 
99
  $authorName = $comment->comment_author ? $comment->comment_author : __('Anonymous', 'wpdiscuz');
100
  $authorName = apply_filters('wpdiscuz_comment_author', $authorName, $comment);
 
101
  $profileUrl = apply_filters('wpdiscuz_profile_url', $profileUrl, $user);
102
+ $authorAvatarField = apply_filters('wpdiscuz_author_avatar_field', $authorAvatarField, $comment, $user, $profileUrl);
103
  $authorAvatar = $this->optionsSerialized->wordpressShowAvatars ? get_avatar($authorAvatarField) : '';
104
 
105
  if ($profileUrl) {
utils/class.WpdiscuzHelper.php CHANGED
@@ -43,15 +43,21 @@ class WpdiscuzHelper {
43
  );
44
  private $captchaDir;
45
  private $captchaString;
46
- private $msgDirCreateError;
47
  private $msgImgCreateError;
 
 
 
 
48
 
49
  function __construct($wpdiscuzOptionsSerialized, $dbManager) {
50
  $this->optionsSerialized = $wpdiscuzOptionsSerialized;
51
  $this->dbManager = $dbManager;
52
  $this->captchaDir = WPDISCUZ_DIR_PATH . WPDISCUZ_DS . 'utils' . WPDISCUZ_DS . 'temp';
53
- $this->msgDirCreateError = __('Cannot create temp directory', 'wpdiscuz');
54
  $this->msgImgCreateError = __('Cannot create image file', 'wpdiscuz');
 
 
 
 
55
  }
56
 
57
  // Set timezone
@@ -321,10 +327,9 @@ class WpdiscuzHelper {
321
  <input type="text" maxlength="5" value="" required="required" name="wc_captcha" class="wc_field_input wc_field_captcha">
322
  <span class="wc-label wc-captcha-label">
323
  <?php
324
- $captchaData = $this->createCaptchaImage();
325
- $msg = $this->getCaptchaMessage($captchaData);
326
- $key = $msg['key'];
327
- $message = $msg['code'] ? 'src="' . plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'utils' . WPDISCUZ_DS . 'temp' . WPDISCUZ_DS . $msg['message']) . '"' : 'alt="' . $msg['message'] . '"';
328
  ?>
329
  <a class="wpdiscuz-nofollow" href="#" rel="nofollow">
330
  <img class="wc_captcha_img" <?php echo $message; ?>/>
@@ -437,29 +442,15 @@ class WpdiscuzHelper {
437
  }
438
  }
439
 
440
- private function getCaptchaMessage($captchaData) {
441
- $msgArray = array();
442
- if ($captchaData['code'] == 1) {
443
- $msgArray['key'] = $captchaData['key'];
444
- $msgArray['message'] = $captchaData['message'];
445
- } else {
446
- $msgArray['key'] = '';
447
- $msgArray['message'] = $this->msgImgCreateError;
448
- }
449
- $msgArray['code'] = $captchaData['code'];
450
- return $msgArray;
451
- }
452
-
453
  public function generateCaptcha() {
454
  $messageArray = array();
455
  if (isset($_POST['wpdiscuzAjaxData'])) {
456
  parse_str($_POST['wpdiscuzAjaxData']);
457
  $uniqueId = trim($uniqueId);
458
- $captchaData = $this->createCaptchaImage();
459
- $msg = $this->getCaptchaMessage($captchaData);
460
- $messageArray['code'] = $captchaData['code'];
461
- $messageArray['key'] = $msg['key'];
462
- $messageArray['message'] = $msg['message'];
463
  wp_die(json_encode($messageArray));
464
  }
465
  }
@@ -471,58 +462,84 @@ class WpdiscuzHelper {
471
 
472
  $captchaData = array();
473
  $filesPath = plugin_dir_path(__FILE__) . WPDISCUZ_DS . 'captcha' . WPDISCUZ_DS;
474
- $im = @imagecreatefrompng($filesPath . 'captcha_bg_easy.png');
475
- if ($im === false) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
476
  $captchaData['code'] = 0;
477
  $captchaData['key'] = '';
478
  $captchaData['message'] = $this->msgImgCreateError;
479
- } else {
480
- $t = time();
481
- $chars = '123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ';
482
- $randomString = '';
483
- $prefix = '';
484
- for ($i = 0; $i < WpdiscuzCore::CAPTCHA_LENGTH; $i++) {
485
- $randomString .= $chars[rand(0, strlen($chars) - 1)];
486
- $prefix .= $chars[rand(0, strlen($chars) - 1)];
487
- }
488
- $this->captchaString = $randomString;
489
-
490
- $size = 16;
491
- $angle = 0;
492
- $x = 5;
493
- $y = 20;
494
- $font = $filesPath . 'consolai.ttf';
495
- for ($i = 0; $i < strlen($randomString); $i++) {
496
- $color = imagecolorallocate($im, rand(0, 255), 0, rand(0, 255));
497
- $letter = substr($randomString, $i, 1);
498
- imagettftext($im, $size, $angle, $x, $y, $color, $font, $letter);
499
- $x += 13;
500
- }
 
501
 
502
- for ($i = 0; $i < 5; $i++) {
503
- $color = imagecolorallocate($im, rand(0, 255), rand(0, 200), rand(0, 255));
504
- imageline($im, rand(0, 20), rand(1, 50), rand(150, 180), rand(1, 50), $color);
505
- }
506
- $fileName = $prefix . '-' . $t . '.png';
507
- $filePath = $this->captchaDir . WPDISCUZ_DS . $fileName;
508
- if (imagepng($im, $filePath, 0)) {
509
- $captchaData['code'] = 1;
510
- $captchaData['message'] = $fileName;
511
- } else {
512
- $captchaData['code'] = 0;
513
- $captchaData['message'] = $this->msgImgCreateError;
514
- }
515
- imagedestroy($im);
516
- $key = $this->createAnswer($prefix, $t);
517
- $captchaData['key'] = $prefix . $key;
518
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  return $captchaData;
520
  }
521
 
522
  private function createAnswer($prefix, $t) {
523
  $key = '';
524
  $dir = trailingslashit($this->captchaDir);
525
- $answerFileName = $prefix . '-' . $t . '.txt';
526
  $answerFile = $dir . WPDISCUZ_DS . $answerFileName;
527
 
528
  if ($out = @fopen($answerFile, 'w')) {
@@ -540,7 +557,7 @@ class WpdiscuzHelper {
540
  return false;
541
  }
542
  $captcha = strtolower($captcha);
543
- $file = $fileName . '.txt';
544
  $filePath = $this->captchaDir . WPDISCUZ_DS . $file;
545
  $parts = explode('=', file_get_contents($filePath));
546
  $tKey = $parts[0];
@@ -563,18 +580,16 @@ class WpdiscuzHelper {
563
  }
564
 
565
  public function removeOldFiles($deactivate = false) {
566
- if (file_exists($this->captchaDir)) {
567
- $files = scandir($this->captchaDir);
568
- if ($files && is_array($files)) {
569
- foreach ($files as $file) {
570
- if ($file != '.' && $file != '..' && $file != '.htaccess') {
571
- $fileName = $this->captchaDir . WPDISCUZ_DS . $file;
572
- $fData = stat($fileName);
573
- if (is_file($fileName) && $fData) {
574
- $expired = $fData['mtime'] + (60 * 60 + 1000);
575
- if ($expired < time() || $deactivate) {
576
- unlink($fileName);
577
- }
578
  }
579
  }
580
  }
43
  );
44
  private $captchaDir;
45
  private $captchaString;
 
46
  private $msgImgCreateError;
47
+ private $msgPermsDeniedError;
48
+ private $msgDirectoryNotWritable;
49
+ private $msgGDLibraryDisabled;
50
+ private $msgPNGCreationDisabled;
51
 
52
  function __construct($wpdiscuzOptionsSerialized, $dbManager) {
53
  $this->optionsSerialized = $wpdiscuzOptionsSerialized;
54
  $this->dbManager = $dbManager;
55
  $this->captchaDir = WPDISCUZ_DIR_PATH . WPDISCUZ_DS . 'utils' . WPDISCUZ_DS . 'temp';
 
56
  $this->msgImgCreateError = __('Cannot create image file', 'wpdiscuz');
57
+ $this->msgPermsDeniedError = __('Permission denied for file creation', 'wpdiscuz');
58
+ $this->msgDirectoryNotWritable = __('The directory is not writable', 'wpdiscuz');
59
+ $this->msgGDLibraryDisabled = __('PHP GD2 library is disabled', 'wpdiscuz');
60
+ $this->msgPNGCreationDisabled = __('PNG image creation disabled', 'wpdiscuz');
61
  }
62
 
63
  // Set timezone
327
  <input type="text" maxlength="5" value="" required="required" name="wc_captcha" class="wc_field_input wc_field_captcha">
328
  <span class="wc-label wc-captcha-label">
329
  <?php
330
+ $cData = $this->createCaptchaImage();
331
+ $key = $cData['key'];
332
+ $message = $cData['code'] ? 'src="' . plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'utils' . WPDISCUZ_DS . 'temp' . WPDISCUZ_DS . $cData['message']) . '"' : 'alt="' . $cData['message'] . '"';
 
333
  ?>
334
  <a class="wpdiscuz-nofollow" href="#" rel="nofollow">
335
  <img class="wc_captcha_img" <?php echo $message; ?>/>
442
  }
443
  }
444
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  public function generateCaptcha() {
446
  $messageArray = array();
447
  if (isset($_POST['wpdiscuzAjaxData'])) {
448
  parse_str($_POST['wpdiscuzAjaxData']);
449
  $uniqueId = trim($uniqueId);
450
+ $cData = $this->createCaptchaImage();
451
+ $messageArray['code'] = $cData['code'];
452
+ $messageArray['key'] = $cData['key'];
453
+ $messageArray['message'] = $cData['message'];
 
454
  wp_die(json_encode($messageArray));
455
  }
456
  }
462
 
463
  $captchaData = array();
464
  $filesPath = plugin_dir_path(__FILE__) . WPDISCUZ_DS . 'captcha' . WPDISCUZ_DS;
465
+
466
+ if (!function_exists('imagecreatefrompng')) {
467
+ $captchaData['code'] = 0;
468
+ $captchaData['key'] = '';
469
+ $captchaData['message'] = $this->msgGDLibraryDisabled;
470
+ return $captchaData;
471
+ }
472
+
473
+ if (!@chmod($filesPath, 0777) || !@chmod($this->captchaDir, 0777)) {
474
+ $captchaData['code'] = 0;
475
+ $captchaData['key'] = '';
476
+ $captchaData['message'] = $this->msgPermsDeniedError;
477
+ return $captchaData;
478
+ }
479
+
480
+ if (!(@is_writable($this->captchaDir))) {
481
+ $captchaData['code'] = 0;
482
+ $captchaData['key'] = '';
483
+ $captchaData['message'] = $this->msgDirectoryNotWritable;
484
+ return $captchaData;
485
+ }
486
+
487
+
488
+ if (($im = @imagecreatefrompng($filesPath . 'captcha_bg_easy.png')) === false) {
489
  $captchaData['code'] = 0;
490
  $captchaData['key'] = '';
491
  $captchaData['message'] = $this->msgImgCreateError;
492
+ return $captchaData;
493
+ }
494
+ $t = time();
495
+ $chars = '123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ';
496
+ $randomString = '';
497
+ $prefix = '';
498
+ for ($i = 0; $i < WpdiscuzCore::CAPTCHA_LENGTH; $i++) {
499
+ $randomString .= $chars[rand(0, strlen($chars) - 1)];
500
+ $prefix .= $chars[rand(0, strlen($chars) - 1)];
501
+ }
502
+ $this->captchaString = $randomString;
503
+
504
+ $size = 16;
505
+ $angle = 0;
506
+ $x = 5;
507
+ $y = 20;
508
+ $font = $filesPath . 'consolai.ttf';
509
+ for ($i = 0; $i < strlen($randomString); $i++) {
510
+ $color = imagecolorallocate($im, rand(0, 255), 0, rand(0, 255));
511
+ $letter = substr($randomString, $i, 1);
512
+ imagettftext($im, $size, $angle, $x, $y, $color, $font, $letter);
513
+ $x += 13;
514
+ }
515
 
516
+ for ($i = 0; $i < 5; $i++) {
517
+ $color = imagecolorallocate($im, rand(0, 255), rand(0, 200), rand(0, 255));
518
+ imageline($im, rand(0, 20), rand(1, 50), rand(150, 180), rand(1, 50), $color);
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  }
520
+ $fileName = $prefix . '-' . $t . '.png';
521
+ $filePath = $this->captchaDir . WPDISCUZ_DS . $fileName;
522
+ if (imagepng($im, $filePath, 5)) {
523
+ $captchaData['code'] = 1;
524
+ $captchaData['message'] = $fileName;
525
+ } else {
526
+ $captchaData['code'] = 0;
527
+ $captchaData['key'] = '';
528
+ $captchaData['message'] = $this->msgPNGCreationDisabled;
529
+ return $captchaData;
530
+ }
531
+ imagedestroy($im);
532
+ $key = $this->createAnswer($prefix, $t);
533
+ $captchaData['key'] = $prefix . $key;
534
+ @chmod($filesPath, 0755);
535
+ @chmod($this->captchaDir, 0755);
536
  return $captchaData;
537
  }
538
 
539
  private function createAnswer($prefix, $t) {
540
  $key = '';
541
  $dir = trailingslashit($this->captchaDir);
542
+ $answerFileName = $prefix . '-' . $t . '.jpg';
543
  $answerFile = $dir . WPDISCUZ_DS . $answerFileName;
544
 
545
  if ($out = @fopen($answerFile, 'w')) {
557
  return false;
558
  }
559
  $captcha = strtolower($captcha);
560
+ $file = $fileName . '.jpg';
561
  $filePath = $this->captchaDir . WPDISCUZ_DS . $file;
562
  $parts = explode('=', file_get_contents($filePath));
563
  $tKey = $parts[0];
580
  }
581
 
582
  public function removeOldFiles($deactivate = false) {
583
+ $files = scandir($this->captchaDir);
584
+ if ($files && is_array($files)) {
585
+ foreach ($files as $file) {
586
+ if ($file != '.' && $file != '..' && $file != '.htaccess') {
587
+ $fileName = $this->captchaDir . WPDISCUZ_DS . $file;
588
+ $fData = stat($fileName);
589
+ if (is_file($fileName) && $fData) {
590
+ $expired = $fData['mtime'] + (60 * 60 + 1000);
591
+ if ($expired < time() || $deactivate) {
592
+ unlink($fileName);
 
 
593
  }
594
  }
595
  }