Comments – wpDiscuz - Version 4.0.2

Version Description

  • Fixed Bug: Translation Issues
  • Fixed Bug: Error open_basedir restriction in admin menu
  • Fixed Bug: Comment field validation issue, no message on Mac and iPhone
  • Fixed Bug: Submit button stopped working after update

IMPORTANT:

  • If you have JetPack installed please deactivate Jetpack comments, it affects wpDiscuz
  • If you have a Cache Plugin, please delete all caches after wpDiscuz update.
  • If you use CDN and found some issue please purge it.
  • If your server PHP version is lower than 5.4, please change it to hogher
Download this release

Release Info

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

Code changes from version 4.0.1 to 4.0.2

assets/css/wpdiscuz.css CHANGED
@@ -157,7 +157,8 @@
157
  #wpcomm .wc-field-textarea .commentTextMaxLength{display:none;font-size:11px;color:#aaa;position:absolute;top:3px;right:5px}
158
  #wpcomm .wc-field-textarea .wpdiscuz-quicktags-enabled .commentTextMaxLength{top:39px}
159
  #wpcomm .wc-field-textarea .commentTextMaxLength.left10{color:#f00}
160
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap{padding:0;margin:0;background:transparent}
 
161
  #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot{border:0;padding:3px 0;width:97%;text-align:right;line-height:14px;margin:0 auto;border-top:1px dotted #ddd}
162
  #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot .wpdiscuz-button{line-height:14px;display:inline-block;min-width:20px;width:auto;height:20px;padding:0;margin:2px 3px;cursor:pointer;border:0;float:none}
163
  #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot label{float:none;display:inline-block}
@@ -296,6 +297,11 @@
296
  #wpcomm span.wc-comment-img-link-wrap span:after{ content: '';position: absolute;top: 100%;left: 50%; margin-left: -8px;width: 0; height: 0; border-top: 8px solid #333;border-right: 8px solid transparent; border-left: 8px solid transparent;}
297
  #wpcomm span:hover.wc-comment-img-link-wrap span{opacity: 1;z-index: 999999;}
298
  #wpcomm span.wc-comment-img-link-wrap span.wc-comment-img-link-show{visibility: visible;}
 
 
 
 
 
299
  /* EDIT COMMENT FORM */
300
  #wpcomm .wc-comment-right textarea.wc_edit_comment{height:auto; font-size:13px; width:99%; overflow-y:hidden; margin:5px 0px;}
301
  #wpcomm table.editcomment{ width:100%; border:none; }
@@ -308,7 +314,7 @@
308
 
309
  .wpdiscuz-edit-form-wrap{ display:block; margin:10px;}
310
  .wpd-cursor-pointer{cursor: pointer;}
311
-
312
  @media screen and (max-width:650px){#wpcomm .wpdiscuz-subscribe-form-option{width:100%!important;padding:0!important}
313
  #wpcomm .wpdiscuz-subscribe-form-email{width:100%!important;padding:0!important;margin-top:5px}
314
  #wpcomm .wpdiscuz-subscribe-form-button{width:100%!important;padding:0!important}
157
  #wpcomm .wc-field-textarea .commentTextMaxLength{display:none;font-size:11px;color:#aaa;position:absolute;top:3px;right:5px}
158
  #wpcomm .wc-field-textarea .wpdiscuz-quicktags-enabled .commentTextMaxLength{top:39px}
159
  #wpcomm .wc-field-textarea .commentTextMaxLength.left10{color:#f00}
160
+ #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap{padding:0;margin:0;background:transparent;}
161
+ #wpcomm #wpdiscuz-edit-form .wpdiscuz-textarea-wrap{padding:0;margin:0;background:transparent;position: relative;border: none;}
162
  #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot{border:0;padding:3px 0;width:97%;text-align:right;line-height:14px;margin:0 auto;border-top:1px dotted #ddd}
163
  #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot .wpdiscuz-button{line-height:14px;display:inline-block;min-width:20px;width:auto;height:20px;padding:0;margin:2px 3px;cursor:pointer;border:0;float:none}
164
  #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot label{float:none;display:inline-block}
297
  #wpcomm span.wc-comment-img-link-wrap span:after{ content: '';position: absolute;top: 100%;left: 50%; margin-left: -8px;width: 0; height: 0; border-top: 8px solid #333;border-right: 8px solid transparent; border-left: 8px solid transparent;}
298
  #wpcomm span:hover.wc-comment-img-link-wrap span{opacity: 1;z-index: 999999;}
299
  #wpcomm span.wc-comment-img-link-wrap span.wc-comment-img-link-show{visibility: visible;}
300
+ /* TOLTIP VALIDATOR */
301
+ #wpcomm div.wpd-field-invalid {display: inline;}
302
+ #wpcomm div.wpd-field-invalid span {position: absolute;max-width:200px;color: #FFFFFF;background: #d99;height:auto;line-height: 17px;padding:8px 10px;font-size:12px;text-align: center;visibility: hidden;border-radius: 6px;}
303
+ #wpcomm div.wpd-field-invalid span:after { content: '';position: absolute;top: -7px;left: 15px;margin-left: -8px;width: 0;height: 0;border-top: 0px;border-right: 8px solid transparent;border-left: 8px solid transparent;border-bottom: 8px solid #d99;}
304
+ #wpcomm div.wpd-field-invalid span {visibility: visible;opacity: 1;bottom: auto;top:calc(100% + 8px);left: 0;z-index: 999999;}
305
  /* EDIT COMMENT FORM */
306
  #wpcomm .wc-comment-right textarea.wc_edit_comment{height:auto; font-size:13px; width:99%; overflow-y:hidden; margin:5px 0px;}
307
  #wpcomm table.editcomment{ width:100%; border:none; }
314
 
315
  .wpdiscuz-edit-form-wrap{ display:block; margin:10px;}
316
  .wpd-cursor-pointer{cursor: pointer;}
317
+ #wpcomm .wpdiscuz-item input[type=checkbox]:focus{line-height: 1;}
318
  @media screen and (max-width:650px){#wpcomm .wpdiscuz-subscribe-form-option{width:100%!important;padding:0!important}
319
  #wpcomm .wpdiscuz-subscribe-form-email{width:100%!important;padding:0!important;margin-top:5px}
320
  #wpcomm .wpdiscuz-subscribe-form-button{width:100%!important;padding:0!important}
assets/js/wpdiscuz.js CHANGED
@@ -41,6 +41,7 @@ jQuery(document).ready(function ($) {
41
 
42
  if ($('.wc_main_comm_form').length) {
43
  setCookieInForm();
 
44
  }
45
  $(document).delegate('.wc-reply-button', 'click', function () {
46
  wpdiscuzReplyButton = $(this);
@@ -53,10 +54,10 @@ jQuery(document).ready(function ($) {
53
  setCookieInForm();
54
  });
55
 
56
- $(document).delegate('.wc-comment-img-link','click',function(){
57
  $(this).parents('.wc-comment-img-link-wrap').find('span').toggleClass('wc-comment-img-link-show');
58
  });
59
-
60
  $(document).delegate('textarea.wc_comment', 'focus', function () {
61
  var parent = $(this).parents('.wc-form-wrapper');
62
  $('.commentTextMaxLength', parent).show();
@@ -286,7 +287,7 @@ jQuery(document).ready(function ($) {
286
  currTArea.css('height', '72px');
287
  setTextareaCharCount(currTArea, commentTextMaxLength);
288
  $('.wmu-preview-wrap', wcForm).remove();
289
- if(wpdiscuzReplyButton.length){
290
  wpdiscuzReplyButton.removeClass('wc-cta-active');
291
  }
292
  } else {
@@ -419,6 +420,8 @@ jQuery(document).ready(function ($) {
419
  $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-text').replaceWith(obj.message);
420
  $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_editable_comment').hide();
421
  $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_cancel_edit').css('display', 'inline-block');
 
 
422
  } else {
423
  message = wpdiscuzAjaxObj.wpdiscuz_options[messageKey];
424
  wpdiscuzAjaxObj.setCommentMessage(editButton, messageKey, message, false);
@@ -851,6 +854,7 @@ jQuery(document).ready(function ($) {
851
  var uniqueId = getUniqueID(field, 0);
852
  $('#wpdiscuz_form_anchor-' + uniqueId).before(replaceUniqueId(uniqueId));
853
  var secondaryFormWrapper = $('#wc-secondary-form-wrapper-' + uniqueId);
 
854
  secondaryFormWrapper.slideToggle(700, function () {
855
  field.addClass('wpdiscuz-clonned');
856
  });
@@ -999,8 +1003,11 @@ jQuery(document).ready(function ($) {
999
  var checkedFields = $('input:checked', this);
1000
  if (checkedFields.length === 0) {
1001
  $('input', $(this)).attr('required', 'required');
 
 
1002
  }
1003
  });
 
1004
  if (wpdiscuzRecaptcha && $('input[name=wpdiscuz_recaptcha]', form).length && !$('input[name=wpdiscuz_recaptcha]', form).val().length) {
1005
  wpdGoogleRecaptchaValid = false;
1006
  $('.wpdiscuz-recaptcha', form).css('border', '1px solid red');
@@ -1010,4 +1017,62 @@ jQuery(document).ready(function ($) {
1010
  }
1011
 
1012
  //============================== FUNCTIONS ============================== //
1013
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  if ($('.wc_main_comm_form').length) {
43
  setCookieInForm();
44
+ wpdiscuzReplaceValidationUI($('.wc_main_comm_form')[0]);
45
  }
46
  $(document).delegate('.wc-reply-button', 'click', function () {
47
  wpdiscuzReplyButton = $(this);
54
  setCookieInForm();
55
  });
56
 
57
+ $(document).delegate('.wc-comment-img-link', 'click', function () {
58
  $(this).parents('.wc-comment-img-link-wrap').find('span').toggleClass('wc-comment-img-link-show');
59
  });
60
+
61
  $(document).delegate('textarea.wc_comment', 'focus', function () {
62
  var parent = $(this).parents('.wc-form-wrapper');
63
  $('.commentTextMaxLength', parent).show();
287
  currTArea.css('height', '72px');
288
  setTextareaCharCount(currTArea, commentTextMaxLength);
289
  $('.wmu-preview-wrap', wcForm).remove();
290
+ if (wpdiscuzReplyButton.length) {
291
  wpdiscuzReplyButton.removeClass('wc-cta-active');
292
  }
293
  } else {
420
  $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-text').replaceWith(obj.message);
421
  $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_editable_comment').hide();
422
  $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_cancel_edit').css('display', 'inline-block');
423
+ var editForm = $('#wc-comm-' + uniqueID + ' > .wc-comment-right #wpdiscuz-edit-form');
424
+ wpdiscuzReplaceValidationUI(editForm[0]);
425
  } else {
426
  message = wpdiscuzAjaxObj.wpdiscuz_options[messageKey];
427
  wpdiscuzAjaxObj.setCommentMessage(editButton, messageKey, message, false);
854
  var uniqueId = getUniqueID(field, 0);
855
  $('#wpdiscuz_form_anchor-' + uniqueId).before(replaceUniqueId(uniqueId));
856
  var secondaryFormWrapper = $('#wc-secondary-form-wrapper-' + uniqueId);
857
+ wpdiscuzReplaceValidationUI($('.wc_comm_form', secondaryFormWrapper)[0]);
858
  secondaryFormWrapper.slideToggle(700, function () {
859
  field.addClass('wpdiscuz-clonned');
860
  });
1003
  var checkedFields = $('input:checked', this);
1004
  if (checkedFields.length === 0) {
1005
  $('input', $(this)).attr('required', 'required');
1006
+ } else {
1007
+ $('.wpd-field-invalid', this).remove();
1008
  }
1009
  });
1010
+
1011
  if (wpdiscuzRecaptcha && $('input[name=wpdiscuz_recaptcha]', form).length && !$('input[name=wpdiscuz_recaptcha]', form).val().length) {
1012
  wpdGoogleRecaptchaValid = false;
1013
  $('.wpdiscuz-recaptcha', form).css('border', '1px solid red');
1017
  }
1018
 
1019
  //============================== FUNCTIONS ============================== //
1020
+
1021
+ //=================== FORM VALIDATION ================================//
1022
+ function wpdiscuzReplaceValidationUI(form) {
1023
+ form.addEventListener("invalid", function (event) {
1024
+ event.preventDefault();
1025
+ }, true);
1026
+ form.addEventListener("submit", function (event) {
1027
+ if (!this.checkValidity()) {
1028
+ event.preventDefault();
1029
+ }
1030
+ });
1031
+ }
1032
+
1033
+ $(document).delegate('.wc_comm_submit, .wc_save_edited_comment', 'click', function () {
1034
+ var curentForm = $(this).parents('form');
1035
+ var invalidFields = $(':invalid', curentForm),
1036
+ errorMessages = $('.error-message', curentForm),
1037
+ parent;
1038
+
1039
+ for (var i = 0; i < errorMessages.length; i++) {
1040
+ errorMessages[ i ].parentNode.removeChild(errorMessages[ i ]);
1041
+ }
1042
+ for (var i = 0; i < invalidFields.length; i++) {
1043
+ parent = invalidFields[ i ].parentNode;
1044
+ var oldMsg = parent.querySelector('.wpd-field-invalid');
1045
+ if (oldMsg) {
1046
+ parent.removeChild(oldMsg);
1047
+ }
1048
+ if (invalidFields[ i ].validationMessage !== '') {
1049
+ parent.insertAdjacentHTML("beforeend", "<div class='wpd-field-invalid'><span>" +
1050
+ invalidFields[ i ].validationMessage +
1051
+ "</span></div>");
1052
+ }
1053
+ }
1054
+ });
1055
+
1056
+ function wpdiscuzRemoveError(field) {
1057
+ var wpdiscuzErrorDiv = $(field).parents('div.wpdiscuz-item').find('.wpd-field-invalid');
1058
+ if (wpdiscuzErrorDiv) {
1059
+ wpdiscuzErrorDiv.remove();
1060
+ }
1061
+ }
1062
+ $(document).delegate('.wpdiscuz-item input,.wpdiscuz-item textarea,.wpdiscuz-item select', 'click', function () {
1063
+ wpdiscuzRemoveError($(this));
1064
+ });
1065
+
1066
+ $(document).delegate('.wpdiscuz-item input,.wpdiscuz-item textarea,.wpdiscuz-item select', 'focus', function () {
1067
+ wpdiscuzRemoveError($(this));
1068
+ });
1069
+
1070
+ $(document).delegate('.wpd-required-group', 'change', function () {
1071
+ if ($('input:checked', this).length !== 0) {
1072
+ $('.wpd-field-invalid', this).remove();
1073
+ $('input', $(this)).removeAttr('required');
1074
+ } else {
1075
+ $('input', $(this)).attr('required', 'required');
1076
+ }
1077
+ });
1078
+ });
class.WpdiscuzCore.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: Comments - wpDiscuz
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- * Version: 4.0.1
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://gvectors.com/
9
  * Plugin URI: http://wpdiscuz.com/
@@ -685,12 +685,12 @@ class WpdiscuzCore implements WpDiscuzConstants {
685
  */
686
  public function addPluginOptionsPage() {
687
  add_submenu_page('edit-comments.php', 'WPDISCUZ', 'WPDISCUZ', 'manage_options', '#', '');
688
- add_submenu_page('edit-comments.php', '&raquo; Settings', '&raquo; Settings', 'manage_options', self::PAGE_SETTINGS, array(&$this->options, 'mainOptionsForm'));
689
  if (!$this->optionsSerialized->isUsePoMo) {
690
- add_submenu_page('edit-comments.php', '&raquo; Phrases', '&raquo; Phrases', 'manage_options', self::PAGE_PHRASES, array(&$this->options, 'phrasesOptionsForm'));
691
  }
692
- add_submenu_page('edit-comments.php', '&raquo; Tools', '&raquo; Tools', 'manage_options', self::PAGE_TOOLS, array(&$this->options, 'tools'));
693
- add_submenu_page('edit-comments.php', '&raquo; Addons', '&raquo; Addons', 'manage_options', self::PAGE_ADDONS, array(&$this->options, 'addons'));
694
  }
695
 
696
  /**
3
  /*
4
  * Plugin Name: Comments - wpDiscuz
5
  * Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ * Version: 4.0.2
7
  * Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  * Author URI: http://gvectors.com/
9
  * Plugin URI: http://wpdiscuz.com/
685
  */
686
  public function addPluginOptionsPage() {
687
  add_submenu_page('edit-comments.php', 'WPDISCUZ', 'WPDISCUZ', 'manage_options', '#', '');
688
+ add_submenu_page('edit-comments.php', '&raquo; '.__('Settings','wpdiscuz'), '&raquo; '.__('Settings','wpdiscuz'), 'manage_options', self::PAGE_SETTINGS, array(&$this->options, 'mainOptionsForm'));
689
  if (!$this->optionsSerialized->isUsePoMo) {
690
+ add_submenu_page('edit-comments.php', '&raquo; '.__('Phrases','wpdiscuz'), '&raquo; '.__('Phrases','wpdiscuz'), 'manage_options', self::PAGE_PHRASES, array(&$this->options, 'phrasesOptionsForm'));
691
  }
692
+ add_submenu_page('edit-comments.php', '&raquo; '.__('Tools','wpdiscuz'), '&raquo; '.__('Tools','wpdiscuz'), 'manage_options', self::PAGE_TOOLS, array(&$this->options, 'tools'));
693
+ add_submenu_page('edit-comments.php', '&raquo; '.__('Addons','wpdiscuz'), '&raquo; '.__('Addons','wpdiscuz'), 'manage_options', self::PAGE_ADDONS, array(&$this->options, 'addons'));
694
  }
695
 
696
  /**
forms/wpDiscuzForm.php CHANGED
@@ -14,6 +14,7 @@ class wpDiscuzForm implements wpdFormConst {
14
  private $formPostRel;
15
 
16
  public function __construct($options, $pluginVersion) {
 
17
  $this->options = $options;
18
  $this->pluginVersion = $pluginVersion;
19
  $this->form = new Form($this->options);
@@ -41,7 +42,7 @@ class wpDiscuzForm implements wpdFormConst {
41
  add_filter('comment_save_pre', array(&$this, 'validateMetaCommentSavePre'), 10);
42
  add_action('edit_comment', array(&$this, 'updateCommentMeta'), 10);
43
  add_filter('wpdiscuz_comment_text', array(&$this, 'renderFrontCommentMetaHtml'), 10, 2);
44
- if (is_admin()) {
45
  add_filter('get_comment_text', array(&$this, 'renderAdminCommentMetaHtml'), 10, 2);
46
  }
47
  add_filter('post_row_actions', array(&$this, 'addCloneFormAction'), 10, 2);
@@ -123,6 +124,8 @@ class wpDiscuzForm implements wpdFormConst {
123
  $role->add_cap('edit_others_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
124
  $role->add_cap('edit_published_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
125
  $role->add_cap('publish_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
 
 
126
  $role->add_cap('delete_others_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
127
  $role->add_cap('delete_private_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
128
  $role->add_cap('delete_published_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
@@ -140,7 +143,7 @@ class wpDiscuzForm implements wpdFormConst {
140
 
141
  public function addFormToAdminMenu() {
142
  global $submenu;
143
- $submenu['edit-comments.php'][] = array('<div id="wpd-form-menu-item"></div>&raquo; ' . __('Forms'), 'manage_options', admin_url() . 'edit.php?post_type=' . self::WPDISCUZ_FORMS_CONTENT_TYPE);
144
  }
145
 
146
  /* Display custom column */
@@ -334,7 +337,12 @@ class wpDiscuzForm implements wpdFormConst {
334
  }
335
 
336
  public function createDefaultForm($version) {
337
- if ($version == '1.0.0' || version_compare($version, '4.0.0', '<=')) {
 
 
 
 
 
338
  $wpdGeneralOptions = maybe_unserialize(get_option('wc_options'));
339
  $phrases = array();
340
  if (!$this->options->isUsePoMo && $this->options->dbManager->isPhraseExists('wc_be_the_first_text')) {
@@ -453,18 +461,20 @@ class wpDiscuzForm implements wpdFormConst {
453
  }
454
 
455
  public function formExists() {
456
- $forms = get_posts(array('posts_per_page' => 5,
457
- 'post_type' => self::WPDISCUZ_FORMS_CONTENT_TYPE,
458
- 'post_status' => 'publish'));
459
- if (!$forms) {
460
- ?>
461
- <div class="error" style="padding-top: 5px;padding-bottom: 5px;">
462
- <p>
463
- <?php _e('Comment Form is not detected, please navigate to form manager page to create it. ', 'wpdiscuz'); ?>
464
- <a href="<?php echo admin_url('post-new.php?post_type=' . self::WPDISCUZ_FORMS_CONTENT_TYPE); ?>" class="button button-primary"><?php _e('Add Comment Form', 'wpdiscuz'); ?></a>
465
- </p>
466
- </div>
467
- <?php
 
 
468
  }
469
  }
470
 
14
  private $formPostRel;
15
 
16
  public function __construct($options, $pluginVersion) {
17
+ global $pagenow;
18
  $this->options = $options;
19
  $this->pluginVersion = $pluginVersion;
20
  $this->form = new Form($this->options);
42
  add_filter('comment_save_pre', array(&$this, 'validateMetaCommentSavePre'), 10);
43
  add_action('edit_comment', array(&$this, 'updateCommentMeta'), 10);
44
  add_filter('wpdiscuz_comment_text', array(&$this, 'renderFrontCommentMetaHtml'), 10, 2);
45
+ if (strstr('edit-comments.php', $pagenow)) {
46
  add_filter('get_comment_text', array(&$this, 'renderAdminCommentMetaHtml'), 10, 2);
47
  }
48
  add_filter('post_row_actions', array(&$this, 'addCloneFormAction'), 10, 2);
124
  $role->add_cap('edit_others_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
125
  $role->add_cap('edit_published_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
126
  $role->add_cap('publish_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
127
+ $role->add_cap('delete_' . self::WPDISCUZ_FORMS_CONTENT_TYPE);
128
+ $role->add_cap('delete_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
129
  $role->add_cap('delete_others_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
130
  $role->add_cap('delete_private_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
131
  $role->add_cap('delete_published_' . self::WPDISCUZ_FORMS_CONTENT_TYPE . 's');
143
 
144
  public function addFormToAdminMenu() {
145
  global $submenu;
146
+ $submenu['edit-comments.php'][] = array('<div id="wpd-form-menu-item"></div>&raquo; ' . __('Forms', 'wpdiscuz'), 'manage_options', 'edit.php?post_type=' . self::WPDISCUZ_FORMS_CONTENT_TYPE);
147
  }
148
 
149
  /* Display custom column */
337
  }
338
 
339
  public function createDefaultForm($version) {
340
+ if ($version == '1.0.0' || version_compare($version, '4.0.0', '<')) {
341
+ $oldForms = get_posts(array('posts_per_page' => 1,
342
+ 'post_type' => self::WPDISCUZ_FORMS_CONTENT_TYPE));
343
+ if ($oldForms) {
344
+ return;
345
+ }
346
  $wpdGeneralOptions = maybe_unserialize(get_option('wc_options'));
347
  $phrases = array();
348
  if (!$this->options->isUsePoMo && $this->options->dbManager->isPhraseExists('wc_be_the_first_text')) {
461
  }
462
 
463
  public function formExists() {
464
+ if (current_user_can('manage_options')) {
465
+ $forms = get_posts(array('posts_per_page' => 1,
466
+ 'post_type' => self::WPDISCUZ_FORMS_CONTENT_TYPE,
467
+ 'post_status' => 'publish'));
468
+ if (!$forms) {
469
+ ?>
470
+ <div class="error" style="padding-top: 5px;padding-bottom: 5px;">
471
+ <p>
472
+ <?php _e('Comment Form is not detected, please navigate to form manager page to create it. ', 'wpdiscuz'); ?>
473
+ <a href="<?php echo admin_url('post-new.php?post_type=' . self::WPDISCUZ_FORMS_CONTENT_TYPE); ?>" class="button button-primary"><?php _e('Add Comment Form', 'wpdiscuz'); ?></a>
474
+ </p>
475
+ </div>
476
+ <?php
477
+ }
478
  }
479
  }
480
 
forms/wpdFormAttr/Field/DateField.php CHANGED
@@ -111,7 +111,7 @@ class DateField extends Field {
111
  'icon' => 'fa-calendar',
112
  'required' => '0',
113
  'loc' => 'bottom',
114
- 'is_show_sform' => 0
115
  );
116
  }
117
 
111
  'icon' => 'fa-calendar',
112
  'required' => '0',
113
  'loc' => 'bottom',
114
+ 'is_show_on_comment' => 1
115
  );
116
  }
117
 
forms/wpdFormAttr/Field/DefaultField/Captcha.php CHANGED
@@ -121,7 +121,7 @@ class Captcha extends Field {
121
  ?>
122
  <div class="wc-field-captcha wpdiscuz-item">
123
  <div class="wc-captcha-input">
124
- <input type="text" maxlength="5" value="" required="required" name="wc_captcha" class="wpd-field wc_field_captcha" placeholder="<?php echo $args['name']; ?>" title="Insert the CAPTCHA code">
125
  </div>
126
  <div class="wc-label wc-captcha-label">
127
  <?php
121
  ?>
122
  <div class="wc-field-captcha wpdiscuz-item">
123
  <div class="wc-captcha-input">
124
+ <input type="text" maxlength="5" value="" autocomplete="off" required="required" name="wc_captcha" class="wpd-field wc_field_captcha" placeholder="<?php echo $args['name']; ?>" title="Insert the CAPTCHA code">
125
  </div>
126
  <div class="wc-label wc-captcha-label">
127
  <?php
forms/wpdFormAttr/Field/DefaultField/Website.php CHANGED
@@ -49,7 +49,7 @@ class Website extends Field {
49
  <?php if ($hasIcon) { ?>
50
  <div class="wpd-field-icon"><i class="fa <?php echo $args['icon']; ?>"></i></div>
51
  <?php } ?>
52
- <input class="<?php echo $name; ?> wpd-field" type="url" name="<?php echo $name; ?>" value="" placeholder="<?php echo $args['name']; ?>">
53
  <?php if ($args['desc']) { ?>
54
  <div class="wpd-field-desc"><i class="fa fa-question-circle-o" aria-hidden="true"></i><span><?php echo esc_html($args['desc']); ?></span></div>
55
  <?php } ?>
@@ -88,7 +88,7 @@ class Website extends Field {
88
  }
89
 
90
  public function validateFieldData($fieldName,$args, $options, $currentUser) {
91
- $website_url = isset($_POST[$fieldName]) ? trim($_POST[$fieldName]) : '';
92
  if ($website_url != '' && (strpos($website_url, 'http://') !== '' && strpos($website_url, 'http://') !== 0) && (strpos($website_url, 'https://') !== '' && strpos($website_url, 'https://') !== 0)) {
93
  $website_url = 'http://' . $website_url;
94
  }
49
  <?php if ($hasIcon) { ?>
50
  <div class="wpd-field-icon"><i class="fa <?php echo $args['icon']; ?>"></i></div>
51
  <?php } ?>
52
+ <input class="<?php echo $name; ?> wpd-field" type="text" name="<?php echo $name; ?>" value="" placeholder="<?php echo $args['name']; ?>">
53
  <?php if ($args['desc']) { ?>
54
  <div class="wpd-field-desc"><i class="fa fa-question-circle-o" aria-hidden="true"></i><span><?php echo esc_html($args['desc']); ?></span></div>
55
  <?php } ?>
88
  }
89
 
90
  public function validateFieldData($fieldName,$args, $options, $currentUser) {
91
+ $website_url = trim(filter_input(INPUT_POST, $fieldName, FILTER_SANITIZE_STRING));
92
  if ($website_url != '' && (strpos($website_url, 'http://') !== '' && strpos($website_url, 'http://') !== 0) && (strpos($website_url, 'https://') !== '' && strpos($website_url, 'https://') !== 0)) {
93
  $website_url = 'http://' . $website_url;
94
  }
forms/wpdFormAttr/Field/Field.php CHANGED
@@ -137,6 +137,8 @@ abstract class Field {
137
  }
138
  if (isset($data['is_show_on_comment'])) {
139
  $cleanData['is_show_on_comment'] = intval($data['is_show_on_comment']);
 
 
140
  }
141
  if (isset($data['is_show_sform'])) {
142
  $cleanData['is_show_sform'] = intval($data['is_show_sform']);
137
  }
138
  if (isset($data['is_show_on_comment'])) {
139
  $cleanData['is_show_on_comment'] = intval($data['is_show_on_comment']);
140
+ }else{
141
+ $cleanData['is_show_on_comment'] = 0;
142
  }
143
  if (isset($data['is_show_sform'])) {
144
  $cleanData['is_show_sform'] = intval($data['is_show_sform']);
forms/wpdFormAttr/Field/NumberField.php CHANGED
@@ -172,7 +172,8 @@ class NumberField extends Field {
172
  'loc' => 'bottom',
173
  'min' => '',
174
  'max' => '',
175
- 'is_show_sform' => 0
 
176
  );
177
  }
178
 
172
  'loc' => 'bottom',
173
  'min' => '',
174
  'max' => '',
175
+ 'is_show_sform' => 0,
176
+ 'is_show_on_comment' => 1
177
  );
178
  }
179
 
forms/wpdFormAttr/Field/RatingField.php CHANGED
@@ -120,7 +120,8 @@ class RatingField extends Field {
120
  'desc' => '',
121
  'required' => '0',
122
  'loc' => 'top',
123
- 'icon' => 'fa-star'
 
124
  );
125
  }
126
 
120
  'desc' => '',
121
  'required' => '0',
122
  'loc' => 'top',
123
+ 'icon' => 'fa-star',
124
+ 'is_show_on_comment' => 1
125
  );
126
  }
127
 
forms/wpdFormAttr/Form.php CHANGED
@@ -478,7 +478,7 @@ class Form {
478
 
479
  public function renderEditFrontCommentForm($comment) {
480
  $html = '<div class="wpdiscuz-edit-form-wrap"><form id="wpdiscuz-edit-form">';
481
- $html .= '<textarea required="required" name="wc_comment" class="wc_comment wpd-field wc_edit_comment" style="min-height: 2em;">' . str_replace(array('<code>', '</code>'), array('`', '`'), $comment->comment_content) . '</textarea>';
482
  if ($this->formCustomFields) {
483
  $html .= '<table class="form-table editcomment wpd-form-row"><tbody>';
484
  foreach ($this->formCustomFields as $key => $data) {
478
 
479
  public function renderEditFrontCommentForm($comment) {
480
  $html = '<div class="wpdiscuz-edit-form-wrap"><form id="wpdiscuz-edit-form">';
481
+ $html .= '<div class="wpdiscuz-item wpdiscuz-textarea-wrap"><textarea required="required" name="wc_comment" class="wc_comment wpd-field wc_edit_comment" style="min-height: 2em;">' . str_replace(array('<code>', '</code>'), array('`', '`'), $comment->comment_content) . '</textarea></div>';
482
  if ($this->formCustomFields) {
483
  $html .= '<table class="form-table editcomment wpd-form-row"><tbody>';
484
  foreach ($this->formCustomFields as $key => $data) {
languages/wpdiscuz.pot CHANGED
@@ -3,8 +3,8 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Comments - wpDiscuz\n"
6
- "POT-Creation-Date: 2016-11-07 15:01+0400\n"
7
- "PO-Revision-Date: 2016-11-07 15:01+0400\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
@@ -20,17 +20,27 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: class.WpdiscuzCore.php:857 options/options-layouts/settings-social.php:40
 
24
  #: options/options-layouts/settings-social.php:42
25
  #: options/options-layouts/settings-social.php:44
26
  #: options/options-layouts/settings-social.php:46
27
  msgid "Settings"
28
  msgstr ""
29
 
30
- #: class.WpdiscuzCore.php:859
31
  msgid "Phrases"
32
  msgstr ""
33
 
 
 
 
 
 
 
 
 
 
34
  #: class.WpdiscuzCore.php:900 options/phrases-layouts/phrases-comment.php:116
35
  msgid "Admin"
36
  msgstr ""
@@ -48,121 +58,121 @@ msgstr ""
48
  msgid "Guest"
49
  msgstr ""
50
 
51
- #: forms/wpDiscuzForm.php:89
52
  msgid "Invalid Data !!!"
53
  msgstr ""
54
 
55
- #: forms/wpDiscuzForm.php:97 forms/wpDiscuzForm.php:143
56
  msgid "Forms"
57
  msgstr ""
58
 
59
- #: forms/wpDiscuzForm.php:98 options/html-phrases.php:21
60
  msgid "Form"
61
  msgstr ""
62
 
63
- #: forms/wpDiscuzForm.php:99
64
  msgid "Add New"
65
  msgstr ""
66
 
67
- #: forms/wpDiscuzForm.php:100
68
  msgid "Add New Form"
69
  msgstr ""
70
 
71
- #: forms/wpDiscuzForm.php:101
72
  msgid "Edit Form"
73
  msgstr ""
74
 
75
- #: forms/wpDiscuzForm.php:102
76
  msgid "You did not create any forms yet"
77
  msgstr ""
78
 
79
- #: forms/wpDiscuzForm.php:103
80
  msgid "Nothing found in Trash"
81
  msgstr ""
82
 
83
- #: forms/wpDiscuzForm.php:104
84
  msgid "Search Forms"
85
  msgstr ""
86
 
87
- #: forms/wpDiscuzForm.php:157
88
  msgid "Title"
89
  msgstr ""
90
 
91
- #: forms/wpDiscuzForm.php:158
92
  msgid "Post Types"
93
  msgstr ""
94
 
95
- #: forms/wpDiscuzForm.php:159
96
  msgid "Post IDs"
97
  msgstr ""
98
 
99
- #: forms/wpDiscuzForm.php:160 forms/wpdFormAttr/Form.php:534
100
  msgid "Language"
101
  msgstr ""
102
 
103
- #: forms/wpDiscuzForm.php:161
104
  msgid "Date"
105
  msgstr ""
106
 
107
- #: forms/wpDiscuzForm.php:206
108
  msgid "Field Types"
109
  msgstr ""
110
 
111
- #: forms/wpDiscuzForm.php:207 forms/wpdFormAttr/Row.php:23
112
  msgid "Two column"
113
  msgstr ""
114
 
115
- #: forms/wpDiscuzForm.php:208 forms/wpdFormAttr/Field/Field.php:61
116
  #: forms/wpdFormAttr/Row.php:24
117
  msgid "Delete"
118
  msgstr ""
119
 
120
- #: forms/wpDiscuzForm.php:209 forms/wpdFormAttr/Row.php:25
121
  msgid "Move"
122
  msgstr ""
123
 
124
- #: forms/wpDiscuzForm.php:210 forms/wpdFormAttr/Row.php:69
125
  msgid "Add Field"
126
  msgstr ""
127
 
128
- #: forms/wpDiscuzForm.php:211 forms/wpdFormAttr/Field/Field.php:58
129
  #: options/class.WpdiscuzOptionsSerialized.php:567
130
  #: options/phrases-layouts/phrases-comment.php:32
131
  msgid "Edit"
132
  msgstr ""
133
 
134
- #: forms/wpDiscuzForm.php:212
135
  msgid "You can not delete default field."
136
  msgstr ""
137
 
138
- #: forms/wpDiscuzForm.php:213
139
  msgid "You really want to delete this item ?"
140
  msgstr ""
141
 
142
- #: forms/wpDiscuzForm.php:220
143
  msgid "Permission Denied !!!"
144
  msgstr ""
145
 
146
- #: forms/wpDiscuzForm.php:245 forms/wpdFormAttr/Form.php:504
147
  #: forms/wpdFormAttr/html/admin-form-fields-list.php:18
148
  #: options/options-layouts/settings-customfields.php:7
149
  msgid "Custom Fields"
150
  msgstr ""
151
 
152
- #: forms/wpDiscuzForm.php:293
153
  msgid "Custom CSS"
154
  msgstr ""
155
 
156
- #: forms/wpDiscuzForm.php:344
157
  msgid "Default Form"
158
  msgstr ""
159
 
160
- #: forms/wpDiscuzForm.php:375 forms/wpDiscuzForm.php:383
161
  #: forms/wpdFormAttr/Form.php:569
162
  msgid "Leave a Reply"
163
  msgstr ""
164
 
165
- #: forms/wpDiscuzForm.php:398 forms/wpdFormAttr/Field/CheckboxField.php:12
166
  #: forms/wpdFormAttr/Field/ColorField.php:12
167
  #: forms/wpdFormAttr/Field/DateField.php:12
168
  #: forms/wpdFormAttr/Field/DefaultField/Captcha.php:25
@@ -181,37 +191,37 @@ msgstr ""
181
  msgid "Name"
182
  msgstr ""
183
 
184
- #: forms/wpDiscuzForm.php:400 forms/wpdFormAttr/Field/DefaultField/Email.php:64
185
  #: forms/wpdFormAttr/Form.php:665
186
  #: options/class.WpdiscuzOptionsSerialized.php:554 options/html-phrases.php:24
187
  msgid "Email"
188
  msgstr ""
189
 
190
- #: forms/wpDiscuzForm.php:402
191
  msgid "WebSite URL"
192
  msgstr ""
193
 
194
- #: forms/wpDiscuzForm.php:405
195
  #: forms/wpdFormAttr/Field/DefaultField/Submit.php:78
196
  #: forms/wpdFormAttr/Form.php:688
197
  msgid "Post Comment"
198
  msgstr ""
199
 
200
- #: forms/wpDiscuzForm.php:414
201
  msgid "Clone Form"
202
  msgstr ""
203
 
204
- #: forms/wpDiscuzForm.php:426
205
  msgid "Clone"
206
  msgstr ""
207
 
208
- #: forms/wpDiscuzForm.php:463
209
  msgid ""
210
  "Comment Form is not detected, please navigate to form manager page to create "
211
  "it. "
212
  msgstr ""
213
 
214
- #: forms/wpDiscuzForm.php:464
215
  msgid "Add Comment Form"
216
  msgstr ""
217
 
@@ -1012,18 +1022,70 @@ msgstr ""
1012
  msgid "wpDiscuz Addons"
1013
  msgstr ""
1014
 
1015
- #: options/html-addons.php:54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1016
  msgid "Installed"
1017
  msgstr ""
1018
 
1019
- #: options/html-addons.php:61
 
 
 
 
 
 
 
 
1020
  msgid "Live Preview | Buy"
1021
  msgstr ""
1022
 
 
 
 
 
1023
  #: options/html-options.php:10
1024
  msgid "wpDiscuz General Settings"
1025
  msgstr ""
1026
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
  #: options/html-options.php:54 options/options-layouts/settings-general.php:7
1028
  msgid "General Settings"
1029
  msgstr ""
@@ -1058,10 +1120,6 @@ msgstr ""
1058
  msgid "Integrations"
1059
  msgstr ""
1060
 
1061
- #: options/html-options.php:61 options/options-layouts/settings-addons.php:7
1062
- msgid "Addons"
1063
- msgstr ""
1064
-
1065
  #: options/html-options.php:148
1066
  msgid "Reset Options"
1067
  msgstr ""
@@ -1107,6 +1165,28 @@ msgstr ""
1107
  msgid "Import options"
1108
  msgstr ""
1109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1110
  #: options/options-layouts/settings-customfields.php:12
1111
  msgid "Google Map API Key"
1112
  msgstr ""
@@ -1305,6 +1385,45 @@ msgstr ""
1305
  msgid "MyCred"
1306
  msgstr ""
1307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1308
  #: options/options-layouts/settings-live-update.php:12
1309
  msgid "Live update options"
1310
  msgstr ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Comments - wpDiscuz\n"
6
+ "POT-Creation-Date: 2016-11-15 19:10+0400\n"
7
+ "PO-Revision-Date: 2016-11-15 19:09+0400\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: class.WpdiscuzCore.php:688 class.WpdiscuzCore.php:857
24
+ #: options/options-layouts/settings-social.php:40
25
  #: options/options-layouts/settings-social.php:42
26
  #: options/options-layouts/settings-social.php:44
27
  #: options/options-layouts/settings-social.php:46
28
  msgid "Settings"
29
  msgstr ""
30
 
31
+ #: class.WpdiscuzCore.php:690 class.WpdiscuzCore.php:859
32
  msgid "Phrases"
33
  msgstr ""
34
 
35
+ #: class.WpdiscuzCore.php:692
36
+ msgid "Tools"
37
+ msgstr ""
38
+
39
+ #: class.WpdiscuzCore.php:693 options/html-options.php:21
40
+ #: options/html-options.php:61 options/options-layouts/settings-addons.php:7
41
+ msgid "Addons"
42
+ msgstr ""
43
+
44
  #: class.WpdiscuzCore.php:900 options/phrases-layouts/phrases-comment.php:116
45
  msgid "Admin"
46
  msgstr ""
58
  msgid "Guest"
59
  msgstr ""
60
 
61
+ #: forms/wpDiscuzForm.php:90
62
  msgid "Invalid Data !!!"
63
  msgstr ""
64
 
65
+ #: forms/wpDiscuzForm.php:98 forms/wpDiscuzForm.php:146
66
  msgid "Forms"
67
  msgstr ""
68
 
69
+ #: forms/wpDiscuzForm.php:99 options/html-phrases.php:21
70
  msgid "Form"
71
  msgstr ""
72
 
73
+ #: forms/wpDiscuzForm.php:100
74
  msgid "Add New"
75
  msgstr ""
76
 
77
+ #: forms/wpDiscuzForm.php:101
78
  msgid "Add New Form"
79
  msgstr ""
80
 
81
+ #: forms/wpDiscuzForm.php:102
82
  msgid "Edit Form"
83
  msgstr ""
84
 
85
+ #: forms/wpDiscuzForm.php:103
86
  msgid "You did not create any forms yet"
87
  msgstr ""
88
 
89
+ #: forms/wpDiscuzForm.php:104
90
  msgid "Nothing found in Trash"
91
  msgstr ""
92
 
93
+ #: forms/wpDiscuzForm.php:105
94
  msgid "Search Forms"
95
  msgstr ""
96
 
97
+ #: forms/wpDiscuzForm.php:160
98
  msgid "Title"
99
  msgstr ""
100
 
101
+ #: forms/wpDiscuzForm.php:161
102
  msgid "Post Types"
103
  msgstr ""
104
 
105
+ #: forms/wpDiscuzForm.php:162
106
  msgid "Post IDs"
107
  msgstr ""
108
 
109
+ #: forms/wpDiscuzForm.php:163 forms/wpdFormAttr/Form.php:534
110
  msgid "Language"
111
  msgstr ""
112
 
113
+ #: forms/wpDiscuzForm.php:164
114
  msgid "Date"
115
  msgstr ""
116
 
117
+ #: forms/wpDiscuzForm.php:209
118
  msgid "Field Types"
119
  msgstr ""
120
 
121
+ #: forms/wpDiscuzForm.php:210 forms/wpdFormAttr/Row.php:23
122
  msgid "Two column"
123
  msgstr ""
124
 
125
+ #: forms/wpDiscuzForm.php:211 forms/wpdFormAttr/Field/Field.php:61
126
  #: forms/wpdFormAttr/Row.php:24
127
  msgid "Delete"
128
  msgstr ""
129
 
130
+ #: forms/wpDiscuzForm.php:212 forms/wpdFormAttr/Row.php:25
131
  msgid "Move"
132
  msgstr ""
133
 
134
+ #: forms/wpDiscuzForm.php:213 forms/wpdFormAttr/Row.php:69
135
  msgid "Add Field"
136
  msgstr ""
137
 
138
+ #: forms/wpDiscuzForm.php:214 forms/wpdFormAttr/Field/Field.php:58
139
  #: options/class.WpdiscuzOptionsSerialized.php:567
140
  #: options/phrases-layouts/phrases-comment.php:32
141
  msgid "Edit"
142
  msgstr ""
143
 
144
+ #: forms/wpDiscuzForm.php:215
145
  msgid "You can not delete default field."
146
  msgstr ""
147
 
148
+ #: forms/wpDiscuzForm.php:216
149
  msgid "You really want to delete this item ?"
150
  msgstr ""
151
 
152
+ #: forms/wpDiscuzForm.php:223
153
  msgid "Permission Denied !!!"
154
  msgstr ""
155
 
156
+ #: forms/wpDiscuzForm.php:248 forms/wpdFormAttr/Form.php:504
157
  #: forms/wpdFormAttr/html/admin-form-fields-list.php:18
158
  #: options/options-layouts/settings-customfields.php:7
159
  msgid "Custom Fields"
160
  msgstr ""
161
 
162
+ #: forms/wpDiscuzForm.php:296
163
  msgid "Custom CSS"
164
  msgstr ""
165
 
166
+ #: forms/wpDiscuzForm.php:352
167
  msgid "Default Form"
168
  msgstr ""
169
 
170
+ #: forms/wpDiscuzForm.php:383 forms/wpDiscuzForm.php:391
171
  #: forms/wpdFormAttr/Form.php:569
172
  msgid "Leave a Reply"
173
  msgstr ""
174
 
175
+ #: forms/wpDiscuzForm.php:406 forms/wpdFormAttr/Field/CheckboxField.php:12
176
  #: forms/wpdFormAttr/Field/ColorField.php:12
177
  #: forms/wpdFormAttr/Field/DateField.php:12
178
  #: forms/wpdFormAttr/Field/DefaultField/Captcha.php:25
191
  msgid "Name"
192
  msgstr ""
193
 
194
+ #: forms/wpDiscuzForm.php:408 forms/wpdFormAttr/Field/DefaultField/Email.php:64
195
  #: forms/wpdFormAttr/Form.php:665
196
  #: options/class.WpdiscuzOptionsSerialized.php:554 options/html-phrases.php:24
197
  msgid "Email"
198
  msgstr ""
199
 
200
+ #: forms/wpDiscuzForm.php:410
201
  msgid "WebSite URL"
202
  msgstr ""
203
 
204
+ #: forms/wpDiscuzForm.php:413
205
  #: forms/wpdFormAttr/Field/DefaultField/Submit.php:78
206
  #: forms/wpdFormAttr/Form.php:688
207
  msgid "Post Comment"
208
  msgstr ""
209
 
210
+ #: forms/wpDiscuzForm.php:422
211
  msgid "Clone Form"
212
  msgstr ""
213
 
214
+ #: forms/wpDiscuzForm.php:434
215
  msgid "Clone"
216
  msgstr ""
217
 
218
+ #: forms/wpDiscuzForm.php:472
219
  msgid ""
220
  "Comment Form is not detected, please navigate to form manager page to create "
221
  "it. "
222
  msgstr ""
223
 
224
+ #: forms/wpDiscuzForm.php:473
225
  msgid "Add Comment Form"
226
  msgstr ""
227
 
1022
  msgid "wpDiscuz Addons"
1023
  msgstr ""
1024
 
1025
+ #: options/html-addons.php:19
1026
+ msgid "wpDiscuz Add-ons"
1027
+ msgstr ""
1028
+
1029
+ #: options/html-addons.php:20
1030
+ msgid "Addons Support Forum"
1031
+ msgstr ""
1032
+
1033
+ #: options/html-addons.php:25
1034
+ msgid ""
1035
+ "All wpDiscuz addons are being developed by wpDiscuz developers at gVectors "
1036
+ "Team, those are very solid premium level extensions and come with premium "
1037
+ "support.\n"
1038
+ " These addons help us to keep top level "
1039
+ "development of the free wpDiscuz plugin. All essential and even dozens of "
1040
+ "extra-cool features are already available for free in core wpDiscuz. \n"
1041
+ " There will never be any limits, any pro and paid "
1042
+ "versions for wpDiscuz. We have another dozens of awesome features in our to-"
1043
+ "do list which will also be added for free in future releases. \n"
1044
+ " So the free wpDiscuz development always stays on "
1045
+ "the first priority and wpDiscuz is being extended with new free functions "
1046
+ "and features even faster than before."
1047
+ msgstr ""
1048
+
1049
+ #: options/html-addons.php:31
1050
+ msgid " Thank you!<br/> Sincerely yours,<br/> gVectors Team&nbsp;"
1051
+ msgstr ""
1052
+
1053
+ #: options/html-addons.php:53
1054
  msgid "Installed"
1055
  msgstr ""
1056
 
1057
+ #: options/html-addons.php:57
1058
+ msgid "Version"
1059
+ msgstr ""
1060
+
1061
+ #: options/html-addons.php:58
1062
+ msgid "at least"
1063
+ msgstr ""
1064
+
1065
+ #: options/html-addons.php:60
1066
  msgid "Live Preview | Buy"
1067
  msgstr ""
1068
 
1069
+ #: options/html-addons.php:66
1070
+ msgid "More information about"
1071
+ msgstr ""
1072
+
1073
  #: options/html-options.php:10
1074
  msgid "wpDiscuz General Settings"
1075
  msgstr ""
1076
 
1077
+ #: options/html-options.php:18
1078
+ msgid "Like wpDiscuz?"
1079
+ msgstr ""
1080
+
1081
+ #: options/html-options.php:19
1082
+ msgid "Documentation"
1083
+ msgstr ""
1084
+
1085
+ #: options/html-options.php:20
1086
+ msgid "Support"
1087
+ msgstr ""
1088
+
1089
  #: options/html-options.php:54 options/options-layouts/settings-general.php:7
1090
  msgid "General Settings"
1091
  msgstr ""
1120
  msgid "Integrations"
1121
  msgstr ""
1122
 
 
 
 
 
1123
  #: options/html-options.php:148
1124
  msgid "Reset Options"
1125
  msgstr ""
1165
  msgid "Import options"
1166
  msgstr ""
1167
 
1168
+ #: options/options-layouts/settings-addons.php:13
1169
+ msgid ""
1170
+ "Here you can find wpDiscuz Addons' setting options in vertical subTabs with "
1171
+ "according addon titles. All wpDiscuz addons are listed on wpDiscuz"
1172
+ msgstr ""
1173
+
1174
+ #: options/options-layouts/settings-addons.php:13
1175
+ msgid "Addons subMenu"
1176
+ msgstr ""
1177
+
1178
+ #: options/options-layouts/settings-addons.php:13
1179
+ msgid ""
1180
+ "We'll add new free and paid addons with almost every wpDiscuz release. There "
1181
+ "will be dozens of very useful addons in near future. Currently wpDiscuz "
1182
+ "consists of about 70 free features/addons like \"Live Update\", \"First "
1183
+ "comment redirection\", \"Comment sorting\", \"Simple CAPTCHA\", \"AJAX "
1184
+ "Pagination\", \"Lazy Load\", \"Comment Likes\", \"Comment Share\" and dozens "
1185
+ "of other addons and there will be more. All new and free addons will be "
1186
+ "built-in with wpDiscuz plugin and all paid addons will be listed separately "
1187
+ "on"
1188
+ msgstr ""
1189
+
1190
  #: options/options-layouts/settings-customfields.php:12
1191
  msgid "Google Map API Key"
1192
  msgstr ""
1385
  msgid "MyCred"
1386
  msgstr ""
1387
 
1388
+ #: options/options-layouts/settings-integrations.php:23
1389
+ #: options/options-layouts/settings-integrations.php:41
1390
+ #: options/options-layouts/settings-integrations.php:59
1391
+ #: options/options-layouts/settings-integrations.php:90
1392
+ #: options/options-layouts/settings-integrations.php:124
1393
+ msgid "Please add the code below in current active theme's functions.php file"
1394
+ msgstr ""
1395
+
1396
+ #: options/options-layouts/settings-integrations.php:24
1397
+ msgid ""
1398
+ "This code will integrate BuddyPress profile URL with wpDiscuz. BuddyPress "
1399
+ "Display Names and Avatars will be integrated automatically."
1400
+ msgstr ""
1401
+
1402
+ #: options/options-layouts/settings-integrations.php:42
1403
+ msgid ""
1404
+ "This code will integrate Users Ultra profile URL with wpDiscuz. Users Ultra "
1405
+ "Display Names and Avatars will be integrated automatically."
1406
+ msgstr ""
1407
+
1408
+ #: options/options-layouts/settings-integrations.php:60
1409
+ msgid ""
1410
+ "This code will integrate User Pro profile URL with wpDiscuz. User Pro "
1411
+ "Display Names and Avatars will be integrated automatically."
1412
+ msgstr ""
1413
+
1414
+ #: options/options-layouts/settings-integrations.php:91
1415
+ msgid ""
1416
+ "This code consists of two parts, which will integrate Ultimate Member "
1417
+ "profile Display Name and Profile URL with wpDiscuz. UM Avatars will be "
1418
+ "integrated automatically."
1419
+ msgstr ""
1420
+
1421
+ #: options/options-layouts/settings-integrations.php:125
1422
+ msgid ""
1423
+ "This code will integrate MyCred User Ranks and Badges under comment author "
1424
+ "avatar."
1425
+ msgstr ""
1426
+
1427
  #: options/options-layouts/settings-live-update.php:12
1428
  msgid "Live update options"
1429
  msgstr ""
options/html-addons.php CHANGED
@@ -16,20 +16,19 @@ if (!defined('ABSPATH')) {
16
  <table width="100%" border="0" cellspacing="1">
17
  <thead>
18
  <tr>
19
- <th style="font-size:16px; padding-bottom:15px;"><strong>wpDiscuz Add-ons</strong></th>
20
- <th style="font-size:16px; padding-bottom:15px; width:205px; text-align:center; border-bottom:1px solid #008EC2;"><a href="http://gvectors.com/forum/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank">Addons Support Forum</a></th>
21
  </tr>
22
  </thead>
23
  <tr valign="top">
24
  <td colspan="2" style="background:#FFF; text-align:left; font-size:13px;">
25
- All wpDiscuz addons are being developed by wpDiscuz developers at gVectors Team, those are very solid premium level extensions and come with premium support.
26
  These addons help us to keep top level development of the free wpDiscuz plugin. All essential and even dozens of extra-cool features are already available for free in core wpDiscuz.
27
  There will never be any limits, any pro and paid versions for wpDiscuz. We have another dozens of awesome features in our to-do list which will also be added for free in future releases.
28
- So the free wpDiscuz development always stays on the first priority and wpDiscuz is being extended with new free functions and features even faster than before.
29
  <br />
30
  <p style="font-size:10px; color:#B1B1B1; font-style:italic; text-align:right; line-height:12px; padding-top:6px; margin:0px;">
31
- Thank you!<br/> Sincerely yours,<br/>
32
- gVectors Team&nbsp;
33
  </p>
34
  </td>
35
  </tr>
@@ -55,8 +54,8 @@ if (!defined('ABSPATH')) {
55
  <?php } else { ?>
56
  <h3 style="font-weight:normal; font-size:22px; line-height: 25px; margin-bottom:2px; text-shadow: 0 0 2px #999;"><?php echo $addon['title'] ?></h3>
57
  <ul>
58
- <li style="line-height:16px;">Version: <?php echo $addon['version']; ?></li>
59
- <li style="line-height:16px;">wpDiscuz: at least <?php echo $addon['requires']; ?></li>
60
  </ul>
61
  <a class="button button-primary addon-button" href="<?php echo $addon['url']; ?>" target="_blank" style="font-size:14px;"><?php echo __('Live Preview | Buy', 'wpdiscuz'); ?></a>
62
  <?php } ?>
@@ -64,7 +63,7 @@ if (!defined('ABSPATH')) {
64
  </div>
65
  <div style="clear:both"></div>
66
  <div class="addon-info" style="<?php if ($installed) echo 'background-color:#bbbbbb'; ?>">
67
- <a href="<?php echo $addon['url']; ?>" target="_blank" title="More information about <?php echo $addon['title'] ?> add-on &raquo;">
68
  <p class="addon-title"><?php echo $addon['title']; ?></p>
69
  </a>
70
  <div class="addon-desc"><?php echo $addon['desc']; ?></div>
16
  <table width="100%" border="0" cellspacing="1">
17
  <thead>
18
  <tr>
19
+ <th style="font-size:16px; padding-bottom:15px;"><strong><?php _e('wpDiscuz Add-ons','wpdiscuz');?></strong></th>
20
+ <th style="font-size:16px; padding-bottom:15px; width:205px; text-align:center; border-bottom:1px solid #008EC2;"><a href="http://gvectors.com/forum/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank"><?php _e('Addons Support Forum','wpdiscuz');?></a></th>
21
  </tr>
22
  </thead>
23
  <tr valign="top">
24
  <td colspan="2" style="background:#FFF; text-align:left; font-size:13px;">
25
+ <?php _e('All wpDiscuz addons are being developed by wpDiscuz developers at gVectors Team, those are very solid premium level extensions and come with premium support.
26
  These addons help us to keep top level development of the free wpDiscuz plugin. All essential and even dozens of extra-cool features are already available for free in core wpDiscuz.
27
  There will never be any limits, any pro and paid versions for wpDiscuz. We have another dozens of awesome features in our to-do list which will also be added for free in future releases.
28
+ So the free wpDiscuz development always stays on the first priority and wpDiscuz is being extended with new free functions and features even faster than before.','wpdiscuz');?>
29
  <br />
30
  <p style="font-size:10px; color:#B1B1B1; font-style:italic; text-align:right; line-height:12px; padding-top:6px; margin:0px;">
31
+ <?php _e(' Thank you!<br/> Sincerely yours,<br/> gVectors Team&nbsp;','wpdiscuz');?>
 
32
  </p>
33
  </td>
34
  </tr>
54
  <?php } else { ?>
55
  <h3 style="font-weight:normal; font-size:22px; line-height: 25px; margin-bottom:2px; text-shadow: 0 0 2px #999;"><?php echo $addon['title'] ?></h3>
56
  <ul>
57
+ <li style="line-height:16px;"><?php _e('Version', 'default'); ?>: <?php echo $addon['version']; ?></li>
58
+ <li style="line-height:16px;">wpDiscuz: <?php _e('at least', 'default'); ?> <?php echo $addon['requires']; ?></li>
59
  </ul>
60
  <a class="button button-primary addon-button" href="<?php echo $addon['url']; ?>" target="_blank" style="font-size:14px;"><?php echo __('Live Preview | Buy', 'wpdiscuz'); ?></a>
61
  <?php } ?>
63
  </div>
64
  <div style="clear:both"></div>
65
  <div class="addon-info" style="<?php if ($installed) echo 'background-color:#bbbbbb'; ?>">
66
+ <a href="<?php echo $addon['url']; ?>" target="_blank" title="<?php _e('More information about', 'default'); ?> <?php echo $addon['title'] ?> add-on &raquo;">
67
  <p class="addon-title"><?php echo $addon['title']; ?></p>
68
  </a>
69
  <div class="addon-desc"><?php echo $addon['desc']; ?></div>
options/html-options.php CHANGED
@@ -15,10 +15,10 @@ if (!defined('ABSPATH')) {
15
  <td valign="top" style="padding:3px;">
16
  <table width="100%" border="0" cellspacing="2">
17
  <tr>
18
- <th style="font-size:16px;"><a href="https://wordpress.org/support/view/plugin-reviews/wpdiscuz?filter=5" target="_blank" title="We'd greatly appreciate your feedback on WordPress.org">Like wpDiscuz?</a></th>
19
- <th style="font-size:16px; width:135px; text-align:center;"><a href="http://wpdiscuz.com/wpdiscuz-documentation/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank">Documentation</a></th>
20
- <th style="font-size:16px; width:75px; text-align:center;"><a href="http://gvectors.com/forum/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank">Support</a></th>
21
- <th style="font-size:16px; width:75px; text-align:center;"><a href="http://wpdiscuz.com/addons/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank">Addons</a></th>
22
  </tr>
23
  </table>
24
  </td>
15
  <td valign="top" style="padding:3px;">
16
  <table width="100%" border="0" cellspacing="2">
17
  <tr>
18
+ <th style="font-size:16px;"><a href="https://wordpress.org/support/view/plugin-reviews/wpdiscuz?filter=5" target="_blank" title="We'd greatly appreciate your feedback on WordPress.org"><?php _e('Like wpDiscuz?','wpdiscuz');?></a></th>
19
+ <th style="font-size:16px; width:135px; text-align:center;"><a href="http://wpdiscuz.com/wpdiscuz-documentation/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank"><?php _e('Documentation','wpdiscuz');?></a></th>
20
+ <th style="font-size:16px; width:75px; text-align:center;"><a href="http://gvectors.com/forum/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank"><?php _e('Support','wpdiscuz');?></a></th>
21
+ <th style="font-size:16px; width:75px; text-align:center;"><a href="http://wpdiscuz.com/addons/" style="color:#008EC2; overflow:hidden; outline:none;" target="_blank"><?php _e('Addons','wpdiscuz');?></a></th>
22
  </tr>
23
  </table>
24
  </td>
options/options-layouts/settings-addons.php CHANGED
@@ -10,7 +10,7 @@ if (!defined('ABSPATH')) {
10
  <tr valign="top">
11
  <th scope="row">
12
 
13
- <p style="padding:10px; font-style:italic;">Here you can find wpDiscuz Addons' setting options in vertical subTabs with according addon titles. All wpDiscuz addons are listed on wpDiscuz &gt; <a href="<?php echo admin_url('edit-comments.php?page=' . WpdiscuzCore::PAGE_ADDONS) ?>">Addons subMenu</a>. We'll add new free and paid addons with almost every wpDiscuz release. There will be dozens of very useful addons in near future. Currently wpDiscuz consists of about 70 free features/addons like "Live Update", "First comment redirection", "Comment sorting", "Simple CAPTCHA", "AJAX Pagination", "Lazy Load", "Comment Likes", "Comment Share" and dozens of other addons and there will be more. All new and free addons will be built-in with wpDiscuz plugin and all paid addons will be listed separately on <a href="<?php echo admin_url('edit-comments.php?page=' . WpdiscuzCore::PAGE_ADDONS) ?>">Addons subMenu</a>.</p>
14
  <hr style="margin-bottom:25px; border-color:#fff;" />
15
 
16
  <div id="wpdiscuz-addons-options">
10
  <tr valign="top">
11
  <th scope="row">
12
 
13
+ <p style="padding:10px; font-style:italic;"><?php _e('Here you can find wpDiscuz Addons\' setting options in vertical subTabs with according addon titles. All wpDiscuz addons are listed on wpDiscuz', 'wpdiscuz'); ?> &gt; <a href="<?php echo admin_url('edit-comments.php?page=' . WpdiscuzCore::PAGE_ADDONS) ?>"><?php _e('Addons subMenu', 'wpdiscuz'); ?></a>. <?php _e('We\'ll add new free and paid addons with almost every wpDiscuz release. There will be dozens of very useful addons in near future. Currently wpDiscuz consists of about 70 free features/addons like "Live Update", "First comment redirection", "Comment sorting", "Simple CAPTCHA", "AJAX Pagination", "Lazy Load", "Comment Likes", "Comment Share" and dozens of other addons and there will be more. All new and free addons will be built-in with wpDiscuz plugin and all paid addons will be listed separately on', 'wpdiscuz'); ?> <a href="<?php echo admin_url('edit-comments.php?page=' . WpdiscuzCore::PAGE_ADDONS) ?>"><?php _e('Addons subMenu','wpdiscuz');?></a>.</p>
14
  <hr style="margin-bottom:25px; border-color:#fff;" />
15
 
16
  <div id="wpdiscuz-addons-options">
options/options-layouts/settings-general.php CHANGED
@@ -102,7 +102,7 @@ if (!defined('ABSPATH')) {
102
  wp_dropdown_pages(array(
103
  'name' => 'wpdiscuz_redirect_page',
104
  'selected' => isset($this->optionsSerialized->redirectPage) ? $this->optionsSerialized->redirectPage : 0,
105
- 'show_option_none' => __('Do not redirect'),
106
  'option_none_value' => 0
107
  ));
108
  ?>
102
  wp_dropdown_pages(array(
103
  'name' => 'wpdiscuz_redirect_page',
104
  'selected' => isset($this->optionsSerialized->redirectPage) ? $this->optionsSerialized->redirectPage : 0,
105
+ 'show_option_none' => __('Do not redirect','wpdiscuz'),
106
  'option_none_value' => 0
107
  ));
108
  ?>
options/options-layouts/settings-integrations.php CHANGED
@@ -20,8 +20,8 @@ if (!defined('ABSPATH')) {
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 //////////////////////////////////
@@ -38,8 +38,8 @@ function wpdiscuz_bp_profile_url($profile_url, $user) {
38
  </div>
39
  <div>
40
  <div style="width:100%; display:block;">
41
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
42
- <p>This code will integrate Users Ultra profile URL with wpDiscuz. Users Ultra Display Names and Avatars will be integrated automatically.</p>
43
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
44
  ////////////////////////////////////////////////////////////////////////
45
  // Users Ultra Profile URL Integration /////////////////////////////////
@@ -56,8 +56,8 @@ function wpdiscuz_uu_profile_url($profile_url, $user) {
56
  </div>
57
  <div>
58
  <div style="width:100%; display:block;">
59
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
60
- <p>This code will integrate User Pro profile URL with wpDiscuz. User Pro Display Names and Avatars will be integrated automatically.</p>
61
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
62
  ////////////////////////////////////////////////////////////////////////
63
  // User Pro Profile URL Integration ////////////////////////////////////
@@ -87,8 +87,8 @@ function wpdiscuz_up_after_label_html($afterLabelHtml, $comment) {
87
  <div>
88
 
89
  <div style="width:100%; display:block;">
90
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
91
- <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>
92
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
93
  ////////////////////////////////////////////////////////////////////////
94
  // Ultimate Member Profile Display Name Integration ////////////////////
@@ -121,8 +121,8 @@ function wpdiscuz_um_profile_url($profile_url, $user) {
121
  </div>
122
  <div>
123
  <div style="width:100%; display:block;">
124
- <h3 style="margin-bottom:5px;">Please add the code below in current active theme's functions.php file </h3>
125
- <p>This code will integrate MyCred User Ranks and Badges under comment author avatar.</p>
126
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
127
  ////////////////////////////////////////////////////////////////////////
128
  // MyCred User Ranks and Badges Integration ////////////////////////////
20
  <div class="resp-tabs-container integrationsChild">
21
  <div>
22
  <div style="width:100%; display:block;">
23
+ <h3 style="margin-bottom:5px;"><?php _e('Please add the code below in current active theme\'s functions.php file','wpdiscuz');?> </h3>
24
+ <p><?php _e('This code will integrate BuddyPress profile URL with wpDiscuz. BuddyPress Display Names and Avatars will be integrated automatically.','wpdiscuz');?></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 //////////////////////////////////
38
  </div>
39
  <div>
40
  <div style="width:100%; display:block;">
41
+ <h3 style="margin-bottom:5px;"><?php _e('Please add the code below in current active theme\'s functions.php file','wpdiscuz');?> </h3>
42
+ <p><?php _e('This code will integrate Users Ultra profile URL with wpDiscuz. Users Ultra Display Names and Avatars will be integrated automatically.','wpdiscuz');?></p>
43
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
44
  ////////////////////////////////////////////////////////////////////////
45
  // Users Ultra Profile URL Integration /////////////////////////////////
56
  </div>
57
  <div>
58
  <div style="width:100%; display:block;">
59
+ <h3 style="margin-bottom:5px;"><?php _e('Please add the code below in current active theme\'s functions.php file','wpdiscuz');?> </h3>
60
+ <p><?php _e('This code will integrate User Pro profile URL with wpDiscuz. User Pro Display Names and Avatars will be integrated automatically.','wpdiscuz');?></p>
61
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
62
  ////////////////////////////////////////////////////////////////////////
63
  // User Pro Profile URL Integration ////////////////////////////////////
87
  <div>
88
 
89
  <div style="width:100%; display:block;">
90
+ <h3 style="margin-bottom:5px;"><?php _e('Please add the code below in current active theme\'s functions.php file','wpdiscuz');?> </h3>
91
+ <p><?php _e('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.','wpdiscuz');?></p>
92
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
93
  ////////////////////////////////////////////////////////////////////////
94
  // Ultimate Member Profile Display Name Integration ////////////////////
121
  </div>
122
  <div>
123
  <div style="width:100%; display:block;">
124
+ <h3 style="margin-bottom:5px;"><?php _e('Please add the code below in current active theme\'s functions.php file','wpdiscuz');?> </h3>
125
+ <p><?php _e('This code will integrate MyCred User Ranks and Badges under comment author avatar.','wpdiscuz');?></p>
126
  <pre style="color:#006666; background-color:#FFF4EA; font-size:12px; padding:10px 20px 10px 20px; width:98%; overflow:auto;box-sizing:border-box;">
127
  ////////////////////////////////////////////////////////////////////////
128
  // MyCred User Ranks and Badges Integration ////////////////////////////
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: gVectors Team
3
  Tags: wordpress comments, ajax comments, ajax, custom form, custom fields, 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, Jetpack 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
4
  Requires at least: 3.8.0
5
- Tested up to: 4.6.1
6
- Stable tag: 4.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -138,6 +138,21 @@ Support Forum: http://gvectors.com/forum/
138
 
139
  == Changelog ==
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  = 4.0.1 =
142
 
143
  * Fixed Bug: Unable to disable comment author labels
@@ -189,11 +204,6 @@ Support Forum: http://gvectors.com/forum/
189
  * New Addons: Comment Report and Flagging, Comment Translation
190
  * Added: Armenian (hy) translation, thanks to Taron Antonyan
191
 
192
- IMPORTANT:
193
-
194
- - If you have JetPack installed please deactivate Jetpack comments, it affects wpDiscuz
195
- - If you have a Cache Plugin, please delete all caches after wpDiscuz update.
196
- - If you use CDN and found some issue please purge it.
197
 
198
  = 3.2.7 =
199
 
2
  Contributors: gVectors Team
3
  Tags: wordpress comments, ajax comments, ajax, custom form, custom fields, 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, Jetpack 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
4
  Requires at least: 3.8.0
5
+ Tested up to: 4.7.1
6
+ Stable tag: 4.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
138
 
139
  == Changelog ==
140
 
141
+ = 4.0.2 =
142
+
143
+ * Fixed Bug: Translation Issues
144
+ * Fixed Bug: Error open_basedir restriction in admin menu
145
+ * Fixed Bug: Comment field validation issue, no message on Mac and iPhone
146
+ * Fixed Bug: Submit button stopped working after update
147
+
148
+ IMPORTANT:
149
+
150
+ - If you have JetPack installed please deactivate Jetpack comments, it affects wpDiscuz
151
+ - If you have a Cache Plugin, please delete all caches after wpDiscuz update.
152
+ - If you use CDN and found some issue please purge it.
153
+ - If your server PHP version is lower than 5.4, [please change it to hogher](https://wordpress.org/support/topic/wpdiscuz-4-requires-php-5-4-and-higher/)
154
+
155
+
156
  = 4.0.1 =
157
 
158
  * Fixed Bug: Unable to disable comment author labels
204
  * New Addons: Comment Report and Flagging, Comment Translation
205
  * Added: Armenian (hy) translation, thanks to Taron Antonyan
206
 
 
 
 
 
 
207
 
208
  = 3.2.7 =
209
 
utils/class.WpdiscuzHelper.php CHANGED
@@ -27,7 +27,7 @@ class WpdiscuzHelper {
27
  'strong' => array(),
28
  's' => array(),
29
  'p' => array('class' => array()),
30
- 'img' => array('src' => array(), 'width' => array(), 'height' => array(), 'alt' => array()),
31
  'blockquote' => array('cite' => array()),
32
  'ul' => array(),
33
  'li' => array(),
@@ -329,7 +329,7 @@ class WpdiscuzHelper {
329
 
330
  public function registerWpDiscuzStyle($version){
331
  $templateDir = get_template_directory();
332
- $wpcTemplateStyleFile = $templateDir . '/wpdiscuz/wpdiscuz.css';
333
  $wpdiscuzStyleURL = plugins_url(WPDISCUZ_DIR_NAME . '/assets/css/wpdiscuz.css');
334
  if(file_exists($wpcTemplateStyleFile)){
335
  $wpdiscuzStyleURL = get_template_directory_uri() . '/wpdiscuz/wpdiscuz.css';
27
  'strong' => array(),
28
  's' => array(),
29
  'p' => array('class' => array()),
30
+ 'img' => array('src' => array(), 'width' => array(), 'height' => array(), 'alt' => array() , 'title' => array()),
31
  'blockquote' => array('cite' => array()),
32
  'ul' => array(),
33
  'li' => array(),
329
 
330
  public function registerWpDiscuzStyle($version){
331
  $templateDir = get_template_directory();
332
+ $wpcTemplateStyleFile = $templateDir . DIRECTORY_SEPARATOR . 'wpdiscuz'. DIRECTORY_SEPARATOR .'wpdiscuz.css';
333
  $wpdiscuzStyleURL = plugins_url(WPDISCUZ_DIR_NAME . '/assets/css/wpdiscuz.css');
334
  if(file_exists($wpcTemplateStyleFile)){
335
  $wpdiscuzStyleURL = get_template_directory_uri() . '/wpdiscuz/wpdiscuz.css';
utils/functions.php CHANGED
@@ -3,9 +3,9 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
  $wpcCurrentThemDir = get_template_directory();
6
- $wpdiscuzWalkerThemePath = $wpcCurrentThemDir . '/wpdiscuz/class.WpdiscuzWalker.php';
7
  if (file_exists($wpdiscuzWalkerThemePath)) {
8
  include_once $wpdiscuzWalkerThemePath;
9
  } else {
10
- include_once apply_filters('wpdiscuz_walker_include', WPDISCUZ_DIR_PATH . '/templates/comment/class.WpdiscuzWalker.php');
11
  }
3
  exit();
4
  }
5
  $wpcCurrentThemDir = get_template_directory();
6
+ $wpdiscuzWalkerThemePath = $wpcCurrentThemDir . DIRECTORY_SEPARATOR. 'wpdiscuz'. DIRECTORY_SEPARATOR .'class.WpdiscuzWalker.php';
7
  if (file_exists($wpdiscuzWalkerThemePath)) {
8
  include_once $wpdiscuzWalkerThemePath;
9
  } else {
10
+ include_once apply_filters('wpdiscuz_walker_include', WPDISCUZ_DIR_PATH . DIRECTORY_SEPARATOR . 'templates'. DIRECTORY_SEPARATOR .'comment'. DIRECTORY_SEPARATOR .'class.WpdiscuzWalker.php');
11
  }