Version Description
- Changed: wpDiscuz Tip messages only left in wpDiscuz admin page.
- Changed: One click permanent dismiss of all Tips messages (no need for each one).
- Added: CSS to display post rating sections horizontal
- Added: Disable Profiles URL option in case you have profile URL conflict with other plugins
- New Addon: wpDiscuz - Subscription Manager
- Fixed Bug: Pending comments now appearing for Frontend Moderation addon, during live update(admins and editors).
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 | Comments – wpDiscuz |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.4
- assets/addons/subscriptions/header-off.png +0 -0
- assets/addons/subscriptions/header.png +0 -0
- assets/css/wpdiscuz.css +8 -0
- class.WpdiscuzCore.php +2 -2
- forms/wpdFormAttr/Form.php +2 -0
- manager/class.WpdiscuzDBManager.php +19 -11
- options/class.WpdiscuzOptions.php +6 -3
- options/class.WpdiscuzOptionsSerialized.php +11 -0
- options/options-layouts/settings-show-hide.php +3 -3
- readme.txt +18 -9
- templates/comment/class.WpdiscuzWalker.php +8 -6
assets/addons/subscriptions/header-off.png
ADDED
Binary file
|
assets/addons/subscriptions/header.png
ADDED
Binary file
|
assets/css/wpdiscuz.css
CHANGED
@@ -315,6 +315,14 @@
|
|
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){
|
319 |
#wpcomm .wpdiscuz-subscribe-form-option{width:100%!important;padding:0!important}
|
320 |
#wpcomm .wpdiscuz-subscribe-form-email{width:100%!important;padding:0!important;margin-top:5px}
|
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 |
+
.wpdiscuz-post-rating-wrap.wpd-custom-field{
|
319 |
+
display: flex;
|
320 |
+
flex-wrap: wrap;
|
321 |
+
}
|
322 |
+
.wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
|
323 |
+
flex-basis: 25%;
|
324 |
+
margin-bottom: 10px;
|
325 |
+
}
|
326 |
@media screen and (max-width:650px){
|
327 |
#wpcomm .wpdiscuz-subscribe-form-option{width:100%!important;padding:0!important}
|
328 |
#wpcomm .wpdiscuz-subscribe-form-email{width:100%!important;padding:0!important;margin-top:5px}
|
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.
|
7 |
* Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
* Author URI: http://gvectors.com/
|
9 |
* Plugin URI: http://wpdiscuz.com/
|
@@ -921,7 +921,7 @@ class WpdiscuzCore implements WpDiscuzConstants {
|
|
921 |
|
922 |
public function getCommentListArgs($postId) {
|
923 |
$post = get_post($postId);
|
924 |
-
$postsAuthors = $post->comment_count ? $this->dbManager->getPostsAuthors() : array();
|
925 |
$args = array(
|
926 |
'style' => 'div',
|
927 |
'echo' => false,
|
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.4
|
7 |
* Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
* Author URI: http://gvectors.com/
|
9 |
* Plugin URI: http://wpdiscuz.com/
|
921 |
|
922 |
public function getCommentListArgs($postId) {
|
923 |
$post = get_post($postId);
|
924 |
+
$postsAuthors = ($post->comment_count && (!$this->optionsSerialized->disableProfileURLs || !$this->optionsSerialized->authorTitlesShowHide))? $this->dbManager->getPostsAuthors() : array();
|
925 |
$args = array(
|
926 |
'style' => 'div',
|
927 |
'echo' => false,
|
forms/wpdFormAttr/Form.php
CHANGED
@@ -256,6 +256,7 @@ class Form {
|
|
256 |
foreach ($ratingList as $key => $value) {
|
257 |
if (key_exists($key, $this->formCustomFields)) {
|
258 |
$icon = $this->formCustomFields[$key]['icon'];
|
|
|
259 |
$content .= '<div class="wpdiscuz-stars-label">' . $this->formCustomFields[$key]['name'] . ' (' . $value['average'] . ' / ' . $value['count'] . ') </div>';
|
260 |
$content .= '<div class="wpdiscuz-stars-wrapper">
|
261 |
<div class="wpdiscuz-stars-wrapper-inner">
|
@@ -273,6 +274,7 @@ class Form {
|
|
273 |
<i class="fa ' . $icon . ' wcf-activ-star"></i>
|
274 |
<i class="fa ' . $icon . ' wcf-activ-star"></i>
|
275 |
</div></div></div><div style="display:inline-block; position:relative;"></div>';
|
|
|
276 |
}
|
277 |
}
|
278 |
$content .= '</div>';
|
256 |
foreach ($ratingList as $key => $value) {
|
257 |
if (key_exists($key, $this->formCustomFields)) {
|
258 |
$icon = $this->formCustomFields[$key]['icon'];
|
259 |
+
$content .= '<div class="wpdiscuz-post-rating-wrap-'.$key.'">';
|
260 |
$content .= '<div class="wpdiscuz-stars-label">' . $this->formCustomFields[$key]['name'] . ' (' . $value['average'] . ' / ' . $value['count'] . ') </div>';
|
261 |
$content .= '<div class="wpdiscuz-stars-wrapper">
|
262 |
<div class="wpdiscuz-stars-wrapper-inner">
|
274 |
<i class="fa ' . $icon . ' wcf-activ-star"></i>
|
275 |
<i class="fa ' . $icon . ' wcf-activ-star"></i>
|
276 |
</div></div></div><div style="display:inline-block; position:relative;"></div>';
|
277 |
+
$content .='</div>';
|
278 |
}
|
279 |
}
|
280 |
$content .= '</div>';
|
manager/class.WpdiscuzDBManager.php
CHANGED
@@ -11,8 +11,8 @@ class WpdiscuzDBManager {
|
|
11 |
function __construct() {
|
12 |
$this->initDB();
|
13 |
}
|
14 |
-
|
15 |
-
private function initDB(){
|
16 |
global $wpdb;
|
17 |
$this->db = $wpdb;
|
18 |
$this->dbprefix = $wpdb->prefix;
|
@@ -183,7 +183,11 @@ class WpdiscuzDBManager {
|
|
183 |
*/
|
184 |
public function getLastCommentId($args) {
|
185 |
if ($args['post_id']) {
|
186 |
-
$
|
|
|
|
|
|
|
|
|
187 |
} else {
|
188 |
$sql = "SELECT `comment_ID` FROM `" . $this->dbprefix . "comments` ORDER BY `comment_ID` DESC LIMIT 1;";
|
189 |
}
|
@@ -194,7 +198,11 @@ class WpdiscuzDBManager {
|
|
194 |
* retrives new comment ids for live update (UA - Update Automatically)
|
195 |
*/
|
196 |
public function getNewCommentIds($args, $loadLastCommentId, $email) {
|
197 |
-
$
|
|
|
|
|
|
|
|
|
198 |
return $this->matrixToArray($this->db->get_results($sqlCommentIds, ARRAY_N));
|
199 |
}
|
200 |
|
@@ -550,18 +558,18 @@ class WpdiscuzDBManager {
|
|
550 |
$this->db->query($sql);
|
551 |
}
|
552 |
}
|
553 |
-
|
554 |
/* MULTI SITE */
|
555 |
-
|
556 |
-
public function getBlogID(){
|
557 |
return $this->db->blogid;
|
558 |
}
|
559 |
-
|
560 |
-
public function getBlogIDs(){
|
561 |
return $this->db->get_col("SELECT blog_id FROM {$this->db->blogs}");
|
562 |
}
|
563 |
-
|
564 |
-
public function dropTables(){
|
565 |
$this->initDB();
|
566 |
$this->db->query("DROP TABLE IF EXISTS `{$this->emailNotification}`");
|
567 |
$this->db->query("DROP TABLE IF EXISTS `{$this->phrases}`");
|
11 |
function __construct() {
|
12 |
$this->initDB();
|
13 |
}
|
14 |
+
|
15 |
+
private function initDB() {
|
16 |
global $wpdb;
|
17 |
$this->db = $wpdb;
|
18 |
$this->dbprefix = $wpdb->prefix;
|
183 |
*/
|
184 |
public function getLastCommentId($args) {
|
185 |
if ($args['post_id']) {
|
186 |
+
$approved = '';
|
187 |
+
if ($args['status'] != 'all') {
|
188 |
+
$approved = " AND `comment_approved` = 1 ";
|
189 |
+
}
|
190 |
+
$sql = $this->db->prepare("SELECT `comment_ID` FROM `" . $this->dbprefix . "comments` WHERE `comment_post_ID` = %d " . $approved . " ORDER BY `comment_ID` DESC LIMIT 1;", $args['post_id']);
|
191 |
} else {
|
192 |
$sql = "SELECT `comment_ID` FROM `" . $this->dbprefix . "comments` ORDER BY `comment_ID` DESC LIMIT 1;";
|
193 |
}
|
198 |
* retrives new comment ids for live update (UA - Update Automatically)
|
199 |
*/
|
200 |
public function getNewCommentIds($args, $loadLastCommentId, $email) {
|
201 |
+
$approved = '';
|
202 |
+
if ($args['status'] != 'all') {
|
203 |
+
$approved = " AND `comment_approved` = 1 ";
|
204 |
+
}
|
205 |
+
$sqlCommentIds = $this->db->prepare("SELECT `comment_ID` FROM `" . $this->dbprefix . "comments` WHERE `comment_post_ID` = %d AND `comment_ID` > %d AND `comment_author_email` != %s ".$approved." ORDER BY `comment_date_gmt` ASC;", $args['post_id'], $loadLastCommentId, $email);
|
206 |
return $this->matrixToArray($this->db->get_results($sqlCommentIds, ARRAY_N));
|
207 |
}
|
208 |
|
558 |
$this->db->query($sql);
|
559 |
}
|
560 |
}
|
561 |
+
|
562 |
/* MULTI SITE */
|
563 |
+
|
564 |
+
public function getBlogID() {
|
565 |
return $this->db->blogid;
|
566 |
}
|
567 |
+
|
568 |
+
public function getBlogIDs() {
|
569 |
return $this->db->get_col("SELECT blog_id FROM {$this->db->blogs}");
|
570 |
}
|
571 |
+
|
572 |
+
public function dropTables() {
|
573 |
$this->initDB();
|
574 |
$this->db->query("DROP TABLE IF EXISTS `{$this->emailNotification}`");
|
575 |
$this->db->query("DROP TABLE IF EXISTS `{$this->phrases}`");
|
options/class.WpdiscuzOptions.php
CHANGED
@@ -68,6 +68,7 @@ class WpdiscuzOptions {
|
|
68 |
$this->optionsSerialized->newLoadedCommentBGColor = isset($_POST['wc_new_loaded_comment_bg_color']) ? $_POST['wc_new_loaded_comment_bg_color'] : '#FFFAD6';
|
69 |
$this->optionsSerialized->disableFontAwesome = isset($_POST['disableFontAwesome']) ? $_POST['disableFontAwesome'] : 0;
|
70 |
$this->optionsSerialized->disableTips = isset($_POST['disableTips']) ? $_POST['disableTips'] : 0;
|
|
|
71 |
$this->optionsSerialized->customCss = isset($_POST['wc_custom_css']) ? $_POST['wc_custom_css'] : '.comments-area{width:auto; margin: 0 auto;}';
|
72 |
$this->optionsSerialized->showPluginPoweredByLink = isset($_POST['wc_show_plugin_powerid_by']) ? $_POST['wc_show_plugin_powerid_by'] : 0;
|
73 |
$this->optionsSerialized->isUsePoMo = isset($_POST['wc_is_use_po_mo']) ? $_POST['wc_is_use_po_mo'] : 0;
|
@@ -244,6 +245,7 @@ class WpdiscuzOptions {
|
|
244 |
private function initAddons() {
|
245 |
$this->addons = array(
|
246 |
'emoticons' => array('version' => '1.1.1', 'requires' => '4.0.0', 'class' => 'wpDiscuzSmile', 'title' => 'Emoticons', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'emoticons' . WPDISCUZ_DS . 'header.png'), 'desc' => __('Brings an ocean of emotions to your comments. It comes with an awesome smile package.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-emoticons/'),
|
|
|
247 |
'ads-manager' => array('version' => '1.0.0', 'requires' => '4.0.0', 'class' => 'WpdiscuzAdsManager', 'title' => 'Ads Manager', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'ads-manager' . WPDISCUZ_DS . 'header.png'), 'desc' => __('A full-fledged tool-kit for advertising in comment section of your website. Separate banner and ad managment.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-ads-manager/'),
|
248 |
'user-mention' => array('version' => '1.0.0', 'requires' => '4.0.0', 'class' => 'Wpdiscuz_UCM', 'title' => 'User & Comment Mentioning', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'user-mention' . WPDISCUZ_DS . 'header.png'), 'desc' => __('Allows to mention comments and users in comment text using #comment-id and @username tags.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-user-comment-mentioning/'),
|
249 |
'likers' => array('version' => '1.0.0', 'requires' => '4.0.0', 'class' => 'WpdiscuzVoters', 'title' => 'Advanced Likers', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'likers' . WPDISCUZ_DS . 'header.png'), 'desc' => __('See comment likers and voters of each comment. Adds user reputation and badges based on received likes.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-advanced-likers/'),
|
@@ -340,10 +342,10 @@ class WpdiscuzOptions {
|
|
340 |
}
|
341 |
|
342 |
public function tipNote() {
|
343 |
-
if ($this->optionsSerialized->disableTips) {
|
344 |
return false;
|
345 |
}
|
346 |
-
if (strpos($_SERVER['REQUEST_URI'], 'edit-comments.php') === FALSE && strpos($_SERVER['REQUEST_URI'], 'edit.php?post_type=wpdiscuz_form') === FALSE) {
|
347 |
return false;
|
348 |
}
|
349 |
else{
|
@@ -395,7 +397,8 @@ class WpdiscuzOptions {
|
|
395 |
}
|
396 |
|
397 |
public function dismissTipNote() {
|
398 |
-
|
|
|
399 |
update_option('wpdiscuz-tip-note-dismissed', $hash);
|
400 |
exit();
|
401 |
}
|
68 |
$this->optionsSerialized->newLoadedCommentBGColor = isset($_POST['wc_new_loaded_comment_bg_color']) ? $_POST['wc_new_loaded_comment_bg_color'] : '#FFFAD6';
|
69 |
$this->optionsSerialized->disableFontAwesome = isset($_POST['disableFontAwesome']) ? $_POST['disableFontAwesome'] : 0;
|
70 |
$this->optionsSerialized->disableTips = isset($_POST['disableTips']) ? $_POST['disableTips'] : 0;
|
71 |
+
$this->optionsSerialized->disableProfileURLs = isset($_POST['disableProfileURLs']) ? $_POST['disableProfileURLs'] : 0;
|
72 |
$this->optionsSerialized->customCss = isset($_POST['wc_custom_css']) ? $_POST['wc_custom_css'] : '.comments-area{width:auto; margin: 0 auto;}';
|
73 |
$this->optionsSerialized->showPluginPoweredByLink = isset($_POST['wc_show_plugin_powerid_by']) ? $_POST['wc_show_plugin_powerid_by'] : 0;
|
74 |
$this->optionsSerialized->isUsePoMo = isset($_POST['wc_is_use_po_mo']) ? $_POST['wc_is_use_po_mo'] : 0;
|
245 |
private function initAddons() {
|
246 |
$this->addons = array(
|
247 |
'emoticons' => array('version' => '1.1.1', 'requires' => '4.0.0', 'class' => 'wpDiscuzSmile', 'title' => 'Emoticons', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'emoticons' . WPDISCUZ_DS . 'header.png'), 'desc' => __('Brings an ocean of emotions to your comments. It comes with an awesome smile package.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-emoticons/'),
|
248 |
+
'subscriptions' => array('version' => '1.0.0', 'requires' => '4.0.4', 'class' => 'wpdSubscribeManager', 'title' => 'Subscription Manager', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'subscriptions' . WPDISCUZ_DS . 'header.png'), 'desc' => __('Total control over comment subscriptions. Full list, monitor, manage, filter, unsubscribe, confirm...', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-subscribe-manager/'),
|
249 |
'ads-manager' => array('version' => '1.0.0', 'requires' => '4.0.0', 'class' => 'WpdiscuzAdsManager', 'title' => 'Ads Manager', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'ads-manager' . WPDISCUZ_DS . 'header.png'), 'desc' => __('A full-fledged tool-kit for advertising in comment section of your website. Separate banner and ad managment.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-ads-manager/'),
|
250 |
'user-mention' => array('version' => '1.0.0', 'requires' => '4.0.0', 'class' => 'Wpdiscuz_UCM', 'title' => 'User & Comment Mentioning', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'user-mention' . WPDISCUZ_DS . 'header.png'), 'desc' => __('Allows to mention comments and users in comment text using #comment-id and @username tags.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-user-comment-mentioning/'),
|
251 |
'likers' => array('version' => '1.0.0', 'requires' => '4.0.0', 'class' => 'WpdiscuzVoters', 'title' => 'Advanced Likers', 'thumb' => plugins_url(WPDISCUZ_DIR_NAME . WPDISCUZ_DS . 'assets' . WPDISCUZ_DS . 'addons' . WPDISCUZ_DS . 'likers' . WPDISCUZ_DS . 'header.png'), 'desc' => __('See comment likers and voters of each comment. Adds user reputation and badges based on received likes.', 'wpdiscuz'), 'url' => 'http://gvectors.com/product/wpdiscuz-advanced-likers/'),
|
342 |
}
|
343 |
|
344 |
public function tipNote() {
|
345 |
+
if ( isset($this->optionsSerialized->disableTips) && $this->optionsSerialized->disableTips ) {
|
346 |
return false;
|
347 |
}
|
348 |
+
if (strpos($_SERVER['REQUEST_URI'], 'edit-comments.php?') === FALSE && strpos($_SERVER['REQUEST_URI'], 'edit.php?post_type=wpdiscuz_form') === FALSE) {
|
349 |
return false;
|
350 |
}
|
351 |
else{
|
397 |
}
|
398 |
|
399 |
public function dismissTipNote() {
|
400 |
+
//$hash = $this->tipDisplayed();
|
401 |
+
$hash = $this->tipHash();
|
402 |
update_option('wpdiscuz-tip-note-dismissed', $hash);
|
403 |
exit();
|
404 |
}
|
options/class.WpdiscuzOptionsSerialized.php
CHANGED
@@ -443,6 +443,14 @@ class WpdiscuzOptionsSerialized {
|
|
443 |
* Default Value - unchecked
|
444 |
*/
|
445 |
public $disableTips;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
|
447 |
/**
|
448 |
* Type - Input
|
@@ -539,6 +547,7 @@ class WpdiscuzOptionsSerialized {
|
|
539 |
$this->newLoadedCommentBGColor = isset($options['wc_new_loaded_comment_bg_color']) ? $options['wc_new_loaded_comment_bg_color'] : '#FFFAD6';
|
540 |
$this->disableFontAwesome = isset($options['disableFontAwesome']) ? $options['disableFontAwesome'] : 0;
|
541 |
$this->disableTips = isset($options['disableTips']) ? $options['disableTips'] : 0;
|
|
|
542 |
$this->customCss = isset($options['wc_custom_css']) ? $options['wc_custom_css'] : '.comments-area{width:auto; margin: 0 auto;}';
|
543 |
$this->showPluginPoweredByLink = isset($options['wc_show_plugin_powerid_by']) ? $options['wc_show_plugin_powerid_by'] : 0;
|
544 |
$this->isUsePoMo = isset($options['wc_is_use_po_mo']) ? $options['wc_is_use_po_mo'] : 0;
|
@@ -701,6 +710,7 @@ class WpdiscuzOptionsSerialized {
|
|
701 |
'wc_new_loaded_comment_bg_color' => $this->newLoadedCommentBGColor,
|
702 |
'disableFontAwesome' => $this->disableFontAwesome,
|
703 |
'disableTips' => $this->disableTips,
|
|
|
704 |
'wc_custom_css' => $this->customCss,
|
705 |
'wc_show_plugin_powerid_by' => $this->showPluginPoweredByLink,
|
706 |
'wc_is_use_po_mo' => $this->isUsePoMo,
|
@@ -771,6 +781,7 @@ class WpdiscuzOptionsSerialized {
|
|
771 |
'wc_new_loaded_comment_bg_color' => '#FFFAD6',
|
772 |
'disableFontAwesome' => '0',
|
773 |
'disableTips' => '0',
|
|
|
774 |
'wc_custom_css' => '.comments-area{width:auto;}',
|
775 |
'wc_show_plugin_powerid_by' => '0',
|
776 |
'wc_is_use_po_mo' => '0',
|
443 |
* Default Value - unchecked
|
444 |
*/
|
445 |
public $disableTips;
|
446 |
+
|
447 |
+
/**
|
448 |
+
* Type - Checkbox
|
449 |
+
* Available Values - checked / unchecked
|
450 |
+
* Description - Disable profile urls
|
451 |
+
* Default Value - unchecked
|
452 |
+
*/
|
453 |
+
public $disableProfileURLs;
|
454 |
|
455 |
/**
|
456 |
* Type - Input
|
547 |
$this->newLoadedCommentBGColor = isset($options['wc_new_loaded_comment_bg_color']) ? $options['wc_new_loaded_comment_bg_color'] : '#FFFAD6';
|
548 |
$this->disableFontAwesome = isset($options['disableFontAwesome']) ? $options['disableFontAwesome'] : 0;
|
549 |
$this->disableTips = isset($options['disableTips']) ? $options['disableTips'] : 0;
|
550 |
+
$this->disableProfileURLs = isset($options['disableProfileURLs']) ? $options['disableProfileURLs'] : 0;
|
551 |
$this->customCss = isset($options['wc_custom_css']) ? $options['wc_custom_css'] : '.comments-area{width:auto; margin: 0 auto;}';
|
552 |
$this->showPluginPoweredByLink = isset($options['wc_show_plugin_powerid_by']) ? $options['wc_show_plugin_powerid_by'] : 0;
|
553 |
$this->isUsePoMo = isset($options['wc_is_use_po_mo']) ? $options['wc_is_use_po_mo'] : 0;
|
710 |
'wc_new_loaded_comment_bg_color' => $this->newLoadedCommentBGColor,
|
711 |
'disableFontAwesome' => $this->disableFontAwesome,
|
712 |
'disableTips' => $this->disableTips,
|
713 |
+
'disableProfileURLs' => $this->disableProfileURLs,
|
714 |
'wc_custom_css' => $this->customCss,
|
715 |
'wc_show_plugin_powerid_by' => $this->showPluginPoweredByLink,
|
716 |
'wc_is_use_po_mo' => $this->isUsePoMo,
|
781 |
'wc_new_loaded_comment_bg_color' => '#FFFAD6',
|
782 |
'disableFontAwesome' => '0',
|
783 |
'disableTips' => '0',
|
784 |
+
'disableProfileURLs' => '0',
|
785 |
'wc_custom_css' => '.comments-area{width:auto;}',
|
786 |
'wc_show_plugin_powerid_by' => '0',
|
787 |
'wc_is_use_po_mo' => '0',
|
options/options-layouts/settings-show-hide.php
CHANGED
@@ -118,9 +118,9 @@ if (!defined('ABSPATH')) {
|
|
118 |
<th scope="row"><label for="enableImageConversion"><?php _e('Enable automatic image URL to image HTML conversion', 'wpdiscuz'); ?></label></th>
|
119 |
<td><input type="checkbox" <?php checked($this->optionsSerialized->enableImageConversion == 1) ?> value="1" name="enableImageConversion" id="enableImageConversion" /></td>
|
120 |
</tr>
|
121 |
-
<tr valign="top">
|
122 |
-
<th scope="row"><label for="
|
123 |
-
<td><input type="checkbox" <?php checked($this->optionsSerialized->
|
124 |
</tr>
|
125 |
</tbody>
|
126 |
</table>
|
118 |
<th scope="row"><label for="enableImageConversion"><?php _e('Enable automatic image URL to image HTML conversion', 'wpdiscuz'); ?></label></th>
|
119 |
<td><input type="checkbox" <?php checked($this->optionsSerialized->enableImageConversion == 1) ?> value="1" name="enableImageConversion" id="enableImageConversion" /></td>
|
120 |
</tr>
|
121 |
+
<tr valign="top" style="d">
|
122 |
+
<th scope="row"><label for="disableProfileURLs"><?php _e('Disable Profiles URL', 'wpdiscuz'); ?></label></th>
|
123 |
+
<td><input type="checkbox" <?php checked($this->optionsSerialized->disableProfileURLs == 1) ?> value="1" name="disableProfileURLs" id="disableProfileURLs" /></td>
|
124 |
</tr>
|
125 |
</tbody>
|
126 |
</table>
|
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.7.
|
6 |
-
Stable tag: 4.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -76,6 +76,7 @@ Integration with AntiSpam plugins
|
|
76 |
* | [wpDiscuz - myCRED Integration](http://gvectors.com/product/wpdiscuz-mycred/)
|
77 |
* | [wpDiscuz - Widgets](http://gvectors.com/product/wpdiscuz-widgets/)
|
78 |
* | [wpDiscuz - Front-end Moderation](http://gvectors.com/product/wpdiscuz-frontend-moderation/)
|
|
|
79 |
* | [wpDiscuz - Comment Search](http://gvectors.com/product/wpdiscuz-comment-search/)
|
80 |
* | [wpDiscuz - Comment Translation](http://gvectors.com/product/wpdiscuz-comment-translation/)
|
81 |
* | [wpDiscuz - Comment Report and Flagging](http://gvectors.com/product/wpdiscuz-report-flagging/)
|
@@ -138,14 +139,14 @@ Support Forum: http://gvectors.com/forum/
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
-
= 4.0.
|
142 |
|
143 |
-
*
|
144 |
-
*
|
145 |
-
*
|
146 |
-
*
|
147 |
-
*
|
148 |
-
*
|
149 |
|
150 |
IMPORTANT:
|
151 |
|
@@ -154,6 +155,14 @@ IMPORTANT:
|
|
154 |
- If you use CDN and found some issue please purge it.
|
155 |
- 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/)
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
= 4.0.2 =
|
159 |
|
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.2
|
6 |
+
Stable tag: 4.0.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
76 |
* | [wpDiscuz - myCRED Integration](http://gvectors.com/product/wpdiscuz-mycred/)
|
77 |
* | [wpDiscuz - Widgets](http://gvectors.com/product/wpdiscuz-widgets/)
|
78 |
* | [wpDiscuz - Front-end Moderation](http://gvectors.com/product/wpdiscuz-frontend-moderation/)
|
79 |
+
* | [wpDiscuz - Subscription Manager](http://gvectors.com/product/wpdiscuz-subscribe-manager/)
|
80 |
* | [wpDiscuz - Comment Search](http://gvectors.com/product/wpdiscuz-comment-search/)
|
81 |
* | [wpDiscuz - Comment Translation](http://gvectors.com/product/wpdiscuz-comment-translation/)
|
82 |
* | [wpDiscuz - Comment Report and Flagging](http://gvectors.com/product/wpdiscuz-report-flagging/)
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 4.0.4 =
|
143 |
|
144 |
+
* Changed: wpDiscuz Tip messages only left in wpDiscuz admin page.
|
145 |
+
* Changed: One click permanent dismiss of all Tips messages (no need for each one).
|
146 |
+
* Added: CSS to display post rating sections horizontal
|
147 |
+
* Added: Disable Profiles URL option in case you have profile URL conflict with other plugins
|
148 |
+
* New Addon: [wpDiscuz - Subscription Manager](http://gvectors.com/product/wpdiscuz-subscribe-manager/)
|
149 |
+
* Fixed Bug: Pending comments now appearing for Frontend Moderation addon, during live update(admins and editors).
|
150 |
|
151 |
IMPORTANT:
|
152 |
|
155 |
- If you use CDN and found some issue please purge it.
|
156 |
- 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/)
|
157 |
|
158 |
+
= 4.0.3 =
|
159 |
+
|
160 |
+
* Added: Option to enable wpDiscuz on home page.
|
161 |
+
* Added: Supports network activation in WordPress MultiSites
|
162 |
+
* Fixed Bug: Comment template and style overwriting problem in child theme folder.
|
163 |
+
* Fixed Bug: Missing Frontend Moderation button on replies (the addon is also updated).
|
164 |
+
* Fixed Bug: Error output in dynamic CSS file
|
165 |
+
* Security: Proper data filtering
|
166 |
|
167 |
= 4.0.2 =
|
168 |
|
templates/comment/class.WpdiscuzWalker.php
CHANGED
@@ -123,18 +123,20 @@ class WpdiscuzWalker extends Walker_Comment {
|
|
123 |
$authorAvatar = '<img class="avatar avatar-64 photo" width="64" height="64" src="' . plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/trackback.png') . '" alt="trackback">';
|
124 |
}
|
125 |
|
126 |
-
if ($profileUrl) {
|
127 |
$commentAuthorAvatar = "<a href='$profileUrl' target='_blank'>$authorAvatar</a>";
|
128 |
} else {
|
129 |
$commentAuthorAvatar = $authorAvatar;
|
130 |
}
|
131 |
|
132 |
-
if
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
136 |
}
|
137 |
-
|
138 |
if (!$this->optionsSerialized->isGuestCanVote && !$current_user->ID) {
|
139 |
$voteClass = ' wc_tooltipster';
|
140 |
$voteTitleText = $this->optionsSerialized->phrases['wc_login_to_vote'];
|
123 |
$authorAvatar = '<img class="avatar avatar-64 photo" width="64" height="64" src="' . plugins_url(WPDISCUZ_DIR_NAME . '/assets/img/trackback.png') . '" alt="trackback">';
|
124 |
}
|
125 |
|
126 |
+
if ($profileUrl && !$this->optionsSerialized->disableProfileURLs) {
|
127 |
$commentAuthorAvatar = "<a href='$profileUrl' target='_blank'>$authorAvatar</a>";
|
128 |
} else {
|
129 |
$commentAuthorAvatar = $authorAvatar;
|
130 |
}
|
131 |
|
132 |
+
if(!$this->optionsSerialized->disableProfileURLs) {
|
133 |
+
if ($commentAuthorUrl) {
|
134 |
+
$authorName = "<a rel='nofollow' href='$commentAuthorUrl' target='_blank'>$authorName</a>";
|
135 |
+
} else if ($profileUrl) {
|
136 |
+
$authorName = "<a rel='nofollow' href='$profileUrl' target='_blank'>$authorName</a>";
|
137 |
+
}
|
138 |
}
|
139 |
+
|
140 |
if (!$this->optionsSerialized->isGuestCanVote && !$current_user->ID) {
|
141 |
$voteClass = ' wc_tooltipster';
|
142 |
$voteTitleText = $this->optionsSerialized->phrases['wc_login_to_vote'];
|