Version Description
- Fixed Bug: CSS Issues
- Added : wpDiscuz comment system supports all WordPress template hooks. It's compatible with all plugins which uses comment hooks.
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- comment-form/form.php +8 -3
- files/img/plugin-icon/icon_info.png +0 -0
- files/third-party/simple-tabs/css/simple-tabs.css +51 -51
- files/third-party/simple-tabs/js/simple-tabs.js +9 -9
- includes/wc-db-helper.php +1 -1
- readme.txt +20 -3
- wc-css.php +11 -9
- wc-options-serialize.php +1 -1
- wc-options.php +50 -50
- wc.php +11 -8
comment-form/form.php
CHANGED
@@ -46,8 +46,12 @@ $header_text .= ' "' . get_the_title($post) . '"';
|
|
46 |
<div style="clear:both"></div>
|
47 |
<div class="comments-area">
|
48 |
<h3 id="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
|
|
|
49 |
<div id="wpcomm">
|
50 |
-
<p class="wc-comment-title"
|
|
|
|
|
|
|
51 |
<div class="wc-form-wrapper">
|
52 |
<?php
|
53 |
if ($wc_core->is_guest_can_comment()) {
|
@@ -111,7 +115,7 @@ $header_text .= ' "' . get_the_title($post) . '"';
|
|
111 |
<?php } ?>
|
112 |
|
113 |
<div style="clear:both"></div>
|
114 |
-
<div class="by-wpdiscuz"><a href="http://gvectors.com/wpdiscuz/">wpDiscuz</a></div>
|
115 |
|
116 |
<div id="wc_openModalFormAction" class="modalDialog">
|
117 |
<div id="wc_response_info" class="wc_modal">
|
@@ -122,4 +126,5 @@ $header_text .= ' "' . get_the_title($post) . '"';
|
|
122 |
</div>
|
123 |
</div>
|
124 |
</div>
|
125 |
-
</div>
|
|
46 |
<div style="clear:both"></div>
|
47 |
<div class="comments-area">
|
48 |
<h3 id="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
|
49 |
+
<?php do_action('comment_form_before'); ?>
|
50 |
<div id="wpcomm">
|
51 |
+
<p class="wc-comment-title">
|
52 |
+
<?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?>
|
53 |
+
</p>
|
54 |
+
<?php do_action('comment_form_top'); ?>
|
55 |
<div class="wc-form-wrapper">
|
56 |
<?php
|
57 |
if ($wc_core->is_guest_can_comment()) {
|
115 |
<?php } ?>
|
116 |
|
117 |
<div style="clear:both"></div>
|
118 |
+
<div class="by-wpdiscuz"><span id="awpdiscuz" onclick='javascript:document.getElementById("bywpdiscuz").style.display = "inline";document.getElementById("awpdiscuz").style.display = "none";'><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/icon_info.png'); ?>" align="absmiddle" class="wpdimg"/></span> <a href="http://gvectors.com/wpdiscuz/" id="bywpdiscuz" title="wpDiscuz - Interactive Comment System">wpDiscuz</a></div>
|
119 |
|
120 |
<div id="wc_openModalFormAction" class="modalDialog">
|
121 |
<div id="wc_response_info" class="wc_modal">
|
126 |
</div>
|
127 |
</div>
|
128 |
</div>
|
129 |
+
</div>
|
130 |
+
<?php do_action('comment_form_after'); ?>
|
files/img/plugin-icon/icon_info.png
ADDED
Binary file
|
files/third-party/simple-tabs/css/simple-tabs.css
CHANGED
@@ -1,52 +1,52 @@
|
|
1 |
-
.tabs-menu {
|
2 |
-
height: 30px;
|
3 |
-
float: left;
|
4 |
-
clear: both;
|
5 |
-
}
|
6 |
-
|
7 |
-
.tabs-menu li {
|
8 |
-
height: 30px;
|
9 |
-
line-height: 30px;
|
10 |
-
float: left;
|
11 |
-
margin-right: 10px;
|
12 |
-
background-color: #ccc;
|
13 |
-
border-top: 1px solid #d4d4d1;
|
14 |
-
border-right: 1px solid #d4d4d1;
|
15 |
-
border-left: 1px solid #d4d4d1;
|
16 |
-
}
|
17 |
-
|
18 |
-
.tabs-menu li.current {
|
19 |
-
position: relative;
|
20 |
-
background-color: #fff;
|
21 |
-
border-bottom: 1px solid #fff;
|
22 |
-
z-index: 5;
|
23 |
-
}
|
24 |
-
|
25 |
-
.tabs-menu li a {
|
26 |
-
padding: 10px;
|
27 |
-
text-transform: uppercase;
|
28 |
-
color: #fff;
|
29 |
-
text-decoration: none;
|
30 |
-
}
|
31 |
-
|
32 |
-
.tabs-menu .current a {
|
33 |
-
color: #2e7da3;
|
34 |
-
}
|
35 |
-
|
36 |
-
.tab {
|
37 |
-
border: 1px solid #d4d4d1;
|
38 |
-
background-color: #fff;
|
39 |
-
float: left;
|
40 |
-
margin-bottom: 20px;
|
41 |
-
width: auto;
|
42 |
-
}
|
43 |
-
|
44 |
-
.tab-content {
|
45 |
-
width: 660px;
|
46 |
-
padding: 20px;
|
47 |
-
display: none;
|
48 |
-
}
|
49 |
-
|
50 |
-
#tab-1 {
|
51 |
-
display: block;
|
52 |
}
|
1 |
+
.tabs-menu {
|
2 |
+
height: 30px;
|
3 |
+
float: left;
|
4 |
+
clear: both;
|
5 |
+
}
|
6 |
+
|
7 |
+
.tabs-menu li {
|
8 |
+
height: 30px;
|
9 |
+
line-height: 30px;
|
10 |
+
float: left;
|
11 |
+
margin-right: 10px;
|
12 |
+
background-color: #ccc;
|
13 |
+
border-top: 1px solid #d4d4d1;
|
14 |
+
border-right: 1px solid #d4d4d1;
|
15 |
+
border-left: 1px solid #d4d4d1;
|
16 |
+
}
|
17 |
+
|
18 |
+
.tabs-menu li.current {
|
19 |
+
position: relative;
|
20 |
+
background-color: #fff;
|
21 |
+
border-bottom: 1px solid #fff;
|
22 |
+
z-index: 5;
|
23 |
+
}
|
24 |
+
|
25 |
+
.tabs-menu li a {
|
26 |
+
padding: 10px;
|
27 |
+
text-transform: uppercase;
|
28 |
+
color: #fff;
|
29 |
+
text-decoration: none;
|
30 |
+
}
|
31 |
+
|
32 |
+
.tabs-menu .current a {
|
33 |
+
color: #2e7da3;
|
34 |
+
}
|
35 |
+
|
36 |
+
.tab {
|
37 |
+
border: 1px solid #d4d4d1;
|
38 |
+
background-color: #fff;
|
39 |
+
float: left;
|
40 |
+
margin-bottom: 20px;
|
41 |
+
width: auto;
|
42 |
+
}
|
43 |
+
|
44 |
+
.tab-content {
|
45 |
+
width: 660px;
|
46 |
+
padding: 20px;
|
47 |
+
display: none;
|
48 |
+
}
|
49 |
+
|
50 |
+
#tab-1 {
|
51 |
+
display: block;
|
52 |
}
|
files/third-party/simple-tabs/js/simple-tabs.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
jQuery(document).ready(function ($) {
|
2 |
-
$(".tabs-menu a").click(function (event) {
|
3 |
-
event.preventDefault();
|
4 |
-
$(this).parent().addClass("current");
|
5 |
-
$(this).parent().siblings().removeClass("current");
|
6 |
-
var tab = $(this).attr("href");
|
7 |
-
$(".tab-content").not(tab).css("display", "none");
|
8 |
-
$(tab).fadeIn();
|
9 |
-
});
|
10 |
});
|
1 |
+
jQuery(document).ready(function ($) {
|
2 |
+
$(".tabs-menu a").click(function (event) {
|
3 |
+
event.preventDefault();
|
4 |
+
$(this).parent().addClass("current");
|
5 |
+
$(this).parent().siblings().removeClass("current");
|
6 |
+
var tab = $(this).attr("href");
|
7 |
+
$(".tab-content").not(tab).css("display", "none");
|
8 |
+
$(tab).fadeIn();
|
9 |
+
});
|
10 |
});
|
includes/wc-db-helper.php
CHANGED
@@ -77,7 +77,7 @@ class WC_DB_Helper {
|
|
77 |
}
|
78 |
|
79 |
public function is_phrase_exists($phrase_key) {
|
80 |
-
$sql = $this->db->prepare("SELECT `
|
81 |
return $this->db->get_var($sql);
|
82 |
}
|
83 |
|
77 |
}
|
78 |
|
79 |
public function is_phrase_exists($phrase_key) {
|
80 |
+
$sql = $this->db->prepare("SELECT `phrase_key` FROM `" . $this->phrases . "` WHERE `phrase_key` LIKE %s", $phrase_key);
|
81 |
return $this->db->get_var($sql);
|
82 |
}
|
83 |
|
readme.txt
CHANGED
@@ -4,15 +4,15 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: wordpress comments, ajax comments, ajax, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 4.0.1
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
New interactive,
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
New interactive,
|
16 |
|
17 |
**wpDiscuz Features:**
|
18 |
|
@@ -61,6 +61,19 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
|
|
61 |
|
62 |
== Frequently Asked Questions ==
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
= Please Check the Following wpDiscuz Resources =
|
65 |
|
66 |
* Support Forum: <http://gvectors.com/questions/>
|
@@ -77,6 +90,10 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
80 |
= 1.0.7 =
|
81 |
* Fixed Bug: wpDiscuz comments ordering conflict with wordpress comments ordering
|
82 |
|
4 |
Tags: wordpress comments, ajax comments, ajax, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 4.0.1
|
7 |
+
Stable tag: 1.0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
New interactive, AJAX comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
New interactive, AJAX comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
16 |
|
17 |
**wpDiscuz Features:**
|
18 |
|
61 |
|
62 |
== Frequently Asked Questions ==
|
63 |
|
64 |
+
|
65 |
+
* QUESTION: Does it fully replace the current comment system? That in this case what happens to old comments?
|
66 |
+
* ANSWER: wpDiscuz changes default comment system to a new interactive system and shows all old comments, nothing will be lost.
|
67 |
+
|
68 |
+
|
69 |
+
* QUESTION: Where comments are stored?
|
70 |
+
* ANSWER: wpDiscuz uses the default WordPress comment storage system, all comments are on your database and all comments are manageable from Dashboard > Comments admin page.
|
71 |
+
|
72 |
+
|
73 |
+
* QUESTION: The data will not be lost if I install this plugin, and then remove it? Old comments will remain in place?
|
74 |
+
* ANSWER: wpDiscuz doesn't affect any data. You can install and uninstall whenever you want without any worries.
|
75 |
+
|
76 |
+
|
77 |
= Please Check the Following wpDiscuz Resources =
|
78 |
|
79 |
* Support Forum: <http://gvectors.com/questions/>
|
90 |
|
91 |
== Changelog ==
|
92 |
|
93 |
+
= 1.0.8 =
|
94 |
+
* Fixed Bug: CSS Issues
|
95 |
+
* Added : wpDiscuz comment system supports all WordPress template hooks. It's compatible with all plugins which uses comment hooks.
|
96 |
+
|
97 |
= 1.0.7 =
|
98 |
* Fixed Bug: wpDiscuz comments ordering conflict with wordpress comments ordering
|
99 |
|
wc-css.php
CHANGED
@@ -28,13 +28,13 @@ class WC_CSS {
|
|
28 |
#wpcomm .wc-field-comment{ margin:5px auto 10px auto; }
|
29 |
#wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; }
|
30 |
#wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; }
|
31 |
-
#wpcomm .wc-field-name input[type="text"]{ width:95%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
|
32 |
-
#wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
|
33 |
-
#wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px; }
|
34 |
#wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
|
35 |
#wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px 25px; }
|
36 |
#wpcomm .captcha_msg{ color: #aaaaaa; font-family: Lato,sans-serif; font-size: 12px; line-height: 18px; display:block; clear:both; }
|
37 |
-
#wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:
|
38 |
#wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
|
39 |
#wpcomm .wc-field-captcha .wc-label{ font-size:18px; padding:5px; text-align:center; display:inline; }
|
40 |
#wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm textarea{ font-size:14px; color:#666666; font-family:Lato,sans-serif; box-sizing: border-box; margin:0px; }
|
@@ -51,8 +51,8 @@ class WC_CSS {
|
|
51 |
#wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; }
|
52 |
#wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px }
|
53 |
#wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; }
|
54 |
-
#wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px auto; float:none; }
|
55 |
-
#wpcomm .wc-comment-text{ font-size:
|
56 |
#wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; }
|
57 |
#wpcomm .wc-comment-author{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; width:40%; float:left; white-space:nowrap; }
|
58 |
#wpcomm .wc-comment-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; }
|
@@ -63,11 +63,11 @@ class WC_CSS {
|
|
63 |
#wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
|
64 |
#wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; }
|
65 |
#wpcomm .wc-comment-footer .wc-vote-result{ padding:2px 6px 2px 5px; background:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; color:#FFFFFF; font-size:12px; font-weight:bold; display:inline; margin-right:5px;}
|
66 |
-
#wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; }
|
67 |
#wpcomm .item { background: none; border-radius: 0px; box-shadow: none; }
|
68 |
#wc_response_info img{ margin: 0px auto 0px auto; }
|
69 |
#wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; }
|
70 |
-
#wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; }
|
71 |
#wpcomm .wc-reply-link, #wpcomm .wc-vote-link, #wpcomm .wc-share-link { cursor: pointer; font-size:13px; font-weight:bold; color: <?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; }
|
72 |
#wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
|
73 |
#wpcomm .wc-field-captcha .wc-captcha-label { margin-left: 5px; padding: 0; display: inline-block; }
|
@@ -80,8 +80,10 @@ class WC_CSS {
|
|
80 |
#wc_openModalFormAction > div#wc_response_info { width: 200px; background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;}
|
81 |
#wc_openModalFormAction > div#wc_response_info { /*z-index: 10000;*/ }
|
82 |
#wc_openModalFormAction > div#wc_response_info a.close { background: url("<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/x.png'); ?>") no-repeat; background-position-x: right; background-position-y: top; }
|
83 |
-
#wpcomm
|
|
|
84 |
#wpcomm .by-wpdiscuz a{ font-size:11px; font-weight:bold; text-align:right; color:#CCCCCC; padding:1px; margin:0px; line-height:12px; border:none; text-decoration:none; }
|
|
|
85 |
|
86 |
<?php echo $this->wc_options->wc_options_serialized->wc_custom_css; ?>
|
87 |
</style>
|
28 |
#wpcomm .wc-field-comment{ margin:5px auto 10px auto; }
|
29 |
#wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; }
|
30 |
#wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; }
|
31 |
+
#wpcomm .wc-field-name input[type="text"]{ width:95%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; }
|
32 |
+
#wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; }
|
33 |
+
#wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px; height:29px; }
|
34 |
#wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
|
35 |
#wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px 25px; }
|
36 |
#wpcomm .captcha_msg{ color: #aaaaaa; font-family: Lato,sans-serif; font-size: 12px; line-height: 18px; display:block; clear:both; }
|
37 |
+
#wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:46px; min-height: 46px !important; padding:5px; box-sizing: border-box; }
|
38 |
#wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
|
39 |
#wpcomm .wc-field-captcha .wc-label{ font-size:18px; padding:5px; text-align:center; display:inline; }
|
40 |
#wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm textarea{ font-size:14px; color:#666666; font-family:Lato,sans-serif; box-sizing: border-box; margin:0px; }
|
51 |
#wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; }
|
52 |
#wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px }
|
53 |
#wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; }
|
54 |
+
#wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px auto; float:none; display:inline; }
|
55 |
+
#wpcomm .wc-comment-text{ font-size:14px; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; line-height: 20px; }
|
56 |
#wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; }
|
57 |
#wpcomm .wc-comment-author{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; width:40%; float:left; white-space:nowrap; }
|
58 |
#wpcomm .wc-comment-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; }
|
63 |
#wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
|
64 |
#wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; }
|
65 |
#wpcomm .wc-comment-footer .wc-vote-result{ padding:2px 6px 2px 5px; background:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; color:#FFFFFF; font-size:12px; font-weight:bold; display:inline; margin-right:5px;}
|
66 |
+
#wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; white-space:nowrap; }
|
67 |
#wpcomm .item { background: none; border-radius: 0px; box-shadow: none; }
|
68 |
#wc_response_info img{ margin: 0px auto 0px auto; }
|
69 |
#wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; }
|
70 |
+
#wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; vertical-align:middle; }
|
71 |
#wpcomm .wc-reply-link, #wpcomm .wc-vote-link, #wpcomm .wc-share-link { cursor: pointer; font-size:13px; font-weight:bold; color: <?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; }
|
72 |
#wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
|
73 |
#wpcomm .wc-field-captcha .wc-captcha-label { margin-left: 5px; padding: 0; display: inline-block; }
|
80 |
#wc_openModalFormAction > div#wc_response_info { width: 200px; background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;}
|
81 |
#wc_openModalFormAction > div#wc_response_info { /*z-index: 10000;*/ }
|
82 |
#wc_openModalFormAction > div#wc_response_info a.close { background: url("<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/x.png'); ?>") no-repeat; background-position-x: right; background-position-y: top; }
|
83 |
+
#wpcomm #bywpdiscuz{ display:none; }
|
84 |
+
#wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:1px 1px 1px 1px; }
|
85 |
#wpcomm .by-wpdiscuz a{ font-size:11px; font-weight:bold; text-align:right; color:#CCCCCC; padding:1px; margin:0px; line-height:12px; border:none; text-decoration:none; }
|
86 |
+
#wpcomm .wpdimg{ border:none; padding:0px; margin:0px; height:12px; cursor:pointer; display:inline; clear:both; }
|
87 |
|
88 |
<?php echo $this->wc_options->wc_options_serialized->wc_custom_css; ?>
|
89 |
</style>
|
wc-options-serialize.php
CHANGED
@@ -256,7 +256,7 @@ class WC_Options_Serialize {
|
|
256 |
'wc_self_vote' => 'You cannot vote for your comment',
|
257 |
'wc_invalid_captcha' => 'Invalid Captcha Code',
|
258 |
'wc_invalid_field' => 'Some of field value is invalid',
|
259 |
-
'wc_held_for_moderate' => 'Your Comment awaiting moderation'
|
260 |
);
|
261 |
}
|
262 |
|
256 |
'wc_self_vote' => 'You cannot vote for your comment',
|
257 |
'wc_invalid_captcha' => 'Invalid Captcha Code',
|
258 |
'wc_invalid_field' => 'Some of field value is invalid',
|
259 |
+
'wc_held_for_moderate' => 'Your Comment awaiting moderation'
|
260 |
);
|
261 |
}
|
262 |
|
wc-options.php
CHANGED
@@ -177,56 +177,56 @@ class WC_Options {
|
|
177 |
check_admin_referer('wc_phrases_form');
|
178 |
}
|
179 |
|
180 |
-
$this->wc_options_serialized->wc_phrases['wc_leave_a_reply_text'] =
|
181 |
-
$this->wc_options_serialized->wc_phrases['wc_be_the_first_text'] =
|
182 |
-
$this->wc_options_serialized->wc_phrases['wc_header_text'] =
|
183 |
-
$this->wc_options_serialized->wc_phrases['wc_header_on_text'] =
|
184 |
-
$this->wc_options_serialized->wc_phrases['wc_comment_start_text'] =
|
185 |
-
$this->wc_options_serialized->wc_phrases['wc_comment_join_text'] =
|
186 |
-
$this->wc_options_serialized->wc_phrases['wc_email_text'] =
|
187 |
-
$this->wc_options_serialized->wc_phrases['wc_name_text'] =
|
188 |
-
$this->wc_options_serialized->wc_phrases['wc_captcha_text'] =
|
189 |
-
$this->wc_options_serialized->wc_phrases['wc_submit_text'] =
|
190 |
-
$this->wc_options_serialized->wc_phrases['wc_load_more_submit_text'] =
|
191 |
-
$this->wc_options_serialized->wc_phrases['wc_reply_text'] =
|
192 |
-
$this->wc_options_serialized->wc_phrases['wc_share_text'] =
|
193 |
-
$this->wc_options_serialized->wc_phrases['wc_share_facebook'] =
|
194 |
-
$this->wc_options_serialized->wc_phrases['wc_share_twitter'] =
|
195 |
-
$this->wc_options_serialized->wc_phrases['wc_share_google'] =
|
196 |
-
$this->wc_options_serialized->wc_phrases['wc_hide_replies_text'] =
|
197 |
-
$this->wc_options_serialized->wc_phrases['wc_show_replies_text'] =
|
198 |
-
$this->wc_options_serialized->wc_phrases['wc_user_title_guest_text'] =
|
199 |
-
$this->wc_options_serialized->wc_phrases['wc_user_title_member_text'] =
|
200 |
-
$this->wc_options_serialized->wc_phrases['wc_user_title_author_text'] =
|
201 |
-
$this->wc_options_serialized->wc_phrases['wc_user_title_admin_text'] =
|
202 |
-
$this->wc_options_serialized->wc_phrases['wc_email_subject'] =
|
203 |
-
$this->wc_options_serialized->wc_phrases['wc_email_message'] =
|
204 |
-
$this->wc_options_serialized->wc_phrases['wc_error_empty_text'] =
|
205 |
-
$this->wc_options_serialized->wc_phrases['wc_error_email_text'] =
|
206 |
-
|
207 |
-
$this->wc_options_serialized->wc_phrases['wc_year_text']['datetime'][0] =
|
208 |
-
$this->wc_options_serialized->wc_phrases['wc_month_text']['datetime'][0] =
|
209 |
-
$this->wc_options_serialized->wc_phrases['wc_day_text']['datetime'][0] =
|
210 |
-
$this->wc_options_serialized->wc_phrases['wc_hour_text']['datetime'][0] =
|
211 |
-
$this->wc_options_serialized->wc_phrases['wc_minute_text']['datetime'][0] =
|
212 |
-
$this->wc_options_serialized->wc_phrases['wc_second_text']['datetime'][0] =
|
213 |
-
$this->wc_options_serialized->wc_phrases['wc_plural_text'] =
|
214 |
-
$this->wc_options_serialized->wc_phrases['wc_right_now_text'] =
|
215 |
-
$this->wc_options_serialized->wc_phrases['wc_ago_text'] =
|
216 |
-
|
217 |
-
$this->wc_options_serialized->wc_phrases['wc_you_must_be_text'] =
|
218 |
-
$this->wc_options_serialized->wc_phrases['wc_logged_in_text'] =
|
219 |
-
$this->wc_options_serialized->wc_phrases['wc_to_post_comment_text'] =
|
220 |
-
$this->wc_options_serialized->wc_phrases['wc_vote_counted'] =
|
221 |
-
$this->wc_options_serialized->wc_phrases['wc_vote_up'] =
|
222 |
-
$this->wc_options_serialized->wc_phrases['wc_vote_down'] =
|
223 |
-
$this->wc_options_serialized->wc_phrases['wc_held_for_moderate'] =
|
224 |
-
$this->wc_options_serialized->wc_phrases['wc_vote_only_one_time'] =
|
225 |
-
$this->wc_options_serialized->wc_phrases['wc_voting_error'] =
|
226 |
-
$this->wc_options_serialized->wc_phrases['wc_self_vote'] =
|
227 |
-
$this->wc_options_serialized->wc_phrases['wc_login_to_vote'] =
|
228 |
-
$this->wc_options_serialized->wc_phrases['wc_invalid_captcha'] =
|
229 |
-
$this->wc_options_serialized->wc_phrases['wc_invalid_field'] =
|
230 |
|
231 |
$this->wc_db_helper->update_phrases($this->wc_options_serialized->wc_phrases);
|
232 |
}
|
177 |
check_admin_referer('wc_phrases_form');
|
178 |
}
|
179 |
|
180 |
+
$this->wc_options_serialized->wc_phrases['wc_leave_a_reply_text'] = $_POST['wc_leave_a_reply_text'];
|
181 |
+
$this->wc_options_serialized->wc_phrases['wc_be_the_first_text'] = $_POST['wc_be_the_first_text'];
|
182 |
+
$this->wc_options_serialized->wc_phrases['wc_header_text'] = $_POST['wc_header_text'];
|
183 |
+
$this->wc_options_serialized->wc_phrases['wc_header_on_text'] = $_POST['wc_header_on_text'];
|
184 |
+
$this->wc_options_serialized->wc_phrases['wc_comment_start_text'] = $_POST['wc_comment_start_text'];
|
185 |
+
$this->wc_options_serialized->wc_phrases['wc_comment_join_text'] = $_POST['wc_comment_join_text'];
|
186 |
+
$this->wc_options_serialized->wc_phrases['wc_email_text'] = $_POST['wc_email_text'];
|
187 |
+
$this->wc_options_serialized->wc_phrases['wc_name_text'] = $_POST['wc_name_text'];
|
188 |
+
$this->wc_options_serialized->wc_phrases['wc_captcha_text'] = $_POST['wc_captcha_text'];
|
189 |
+
$this->wc_options_serialized->wc_phrases['wc_submit_text'] = $_POST['wc_submit_text'];
|
190 |
+
$this->wc_options_serialized->wc_phrases['wc_load_more_submit_text'] = $_POST['wc_load_more_submit_text'];
|
191 |
+
$this->wc_options_serialized->wc_phrases['wc_reply_text'] = $_POST['wc_reply_text'];
|
192 |
+
$this->wc_options_serialized->wc_phrases['wc_share_text'] = $_POST['wc_share_text'];
|
193 |
+
$this->wc_options_serialized->wc_phrases['wc_share_facebook'] = $_POST['wc_share_facebook'];
|
194 |
+
$this->wc_options_serialized->wc_phrases['wc_share_twitter'] = $_POST['wc_share_twitter'];
|
195 |
+
$this->wc_options_serialized->wc_phrases['wc_share_google'] = $_POST['wc_share_google'];
|
196 |
+
$this->wc_options_serialized->wc_phrases['wc_hide_replies_text'] = $_POST['wc_hide_replies_text'];
|
197 |
+
$this->wc_options_serialized->wc_phrases['wc_show_replies_text'] = $_POST['wc_show_replies_text'];
|
198 |
+
$this->wc_options_serialized->wc_phrases['wc_user_title_guest_text'] = $_POST['wc_user_title_guest_text'];
|
199 |
+
$this->wc_options_serialized->wc_phrases['wc_user_title_member_text'] = $_POST['wc_user_title_member_text'];
|
200 |
+
$this->wc_options_serialized->wc_phrases['wc_user_title_author_text'] = $_POST['wc_user_title_author_text'];
|
201 |
+
$this->wc_options_serialized->wc_phrases['wc_user_title_admin_text'] = $_POST['wc_user_title_admin_text'];
|
202 |
+
$this->wc_options_serialized->wc_phrases['wc_email_subject'] = $_POST['wc_email_subject'];
|
203 |
+
$this->wc_options_serialized->wc_phrases['wc_email_message'] = $_POST['wc_email_message'];
|
204 |
+
$this->wc_options_serialized->wc_phrases['wc_error_empty_text'] = $_POST['wc_error_empty_text'];
|
205 |
+
$this->wc_options_serialized->wc_phrases['wc_error_email_text'] = $_POST['wc_error_email_text'];
|
206 |
+
|
207 |
+
$this->wc_options_serialized->wc_phrases['wc_year_text']['datetime'][0] = $_POST['wc_year_text'];
|
208 |
+
$this->wc_options_serialized->wc_phrases['wc_month_text']['datetime'][0] = $_POST['wc_month_text'];
|
209 |
+
$this->wc_options_serialized->wc_phrases['wc_day_text']['datetime'][0] = $_POST['wc_day_text'];
|
210 |
+
$this->wc_options_serialized->wc_phrases['wc_hour_text']['datetime'][0] = $_POST['wc_hour_text'];
|
211 |
+
$this->wc_options_serialized->wc_phrases['wc_minute_text']['datetime'][0] = $_POST['wc_minute_text'];
|
212 |
+
$this->wc_options_serialized->wc_phrases['wc_second_text']['datetime'][0] = $_POST['wc_second_text'];
|
213 |
+
$this->wc_options_serialized->wc_phrases['wc_plural_text'] = $_POST['wc_plural_text'];
|
214 |
+
$this->wc_options_serialized->wc_phrases['wc_right_now_text'] = $_POST['wc_right_now_text'];
|
215 |
+
$this->wc_options_serialized->wc_phrases['wc_ago_text'] = $_POST['wc_ago_text'];
|
216 |
+
|
217 |
+
$this->wc_options_serialized->wc_phrases['wc_you_must_be_text'] = $_POST['wc_you_must_be_text'];
|
218 |
+
$this->wc_options_serialized->wc_phrases['wc_logged_in_text'] = $_POST['wc_logged_in_text'];
|
219 |
+
$this->wc_options_serialized->wc_phrases['wc_to_post_comment_text'] = $_POST['wc_to_post_comment_text'];
|
220 |
+
$this->wc_options_serialized->wc_phrases['wc_vote_counted'] = $_POST['wc_vote_counted'];
|
221 |
+
$this->wc_options_serialized->wc_phrases['wc_vote_up'] = $_POST['wc_vote_up'];
|
222 |
+
$this->wc_options_serialized->wc_phrases['wc_vote_down'] = $_POST['wc_vote_down'];
|
223 |
+
$this->wc_options_serialized->wc_phrases['wc_held_for_moderate'] = $_POST['wc_held_for_moderate'];
|
224 |
+
$this->wc_options_serialized->wc_phrases['wc_vote_only_one_time'] = $_POST['wc_vote_only_one_time'];
|
225 |
+
$this->wc_options_serialized->wc_phrases['wc_voting_error'] = $_POST['wc_voting_error'];
|
226 |
+
$this->wc_options_serialized->wc_phrases['wc_self_vote'] = $_POST['wc_self_vote'];
|
227 |
+
$this->wc_options_serialized->wc_phrases['wc_login_to_vote'] = $_POST['wc_login_to_vote'];
|
228 |
+
$this->wc_options_serialized->wc_phrases['wc_invalid_captcha'] = $_POST['wc_invalid_captcha'];
|
229 |
+
$this->wc_options_serialized->wc_phrases['wc_invalid_field'] = $_POST['wc_invalid_field'];
|
230 |
|
231 |
$this->wc_db_helper->update_phrases($this->wc_options_serialized->wc_phrases);
|
232 |
}
|
wc.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: wpDiscuz - Wordpress Comments
|
5 |
Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
6 |
-
Version: 1.0.
|
7 |
Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
Author URI: http://www.gvectors.com/
|
9 |
Plugin URI: http://www.gvectors.com/wpdiscuz/
|
@@ -143,7 +143,7 @@ class WC_Core {
|
|
143 |
wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
|
144 |
wp_enqueue_style('validator-style');
|
145 |
|
146 |
-
wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '1.0.
|
147 |
wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
|
148 |
|
149 |
wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
|
@@ -370,7 +370,7 @@ class WC_Core {
|
|
370 |
}
|
371 |
$wc_comment_count = $this->wc_options->wc_options_serialized->wc_comment_count;
|
372 |
$wc_comment_list_order = $this->wc_options->wc_options_serialized->wc_comment_list_order;
|
373 |
-
|
374 |
$comm_list_args = array(
|
375 |
'callback' => array(&$this, 'wc_comment_callback'),
|
376 |
'style' => 'div',
|
@@ -378,14 +378,14 @@ class WC_Core {
|
|
378 |
'max_depth' => 2,
|
379 |
'reverse_top_level' => false
|
380 |
);
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
$comments = get_comments(array('post_id' => $post_id, 'status' => 'approve', 'order' => $wc_comment_list_order));
|
385 |
-
|
386 |
$wc_comments = $this->init_wc_comments($comments);
|
387 |
wp_list_comments($comm_list_args, $wc_comments);
|
388 |
-
|
389 |
return $this->wc_parent_comments_count;
|
390 |
}
|
391 |
|
@@ -444,6 +444,7 @@ class WC_Core {
|
|
444 |
global $post;
|
445 |
if (in_array($post->post_type, $this->wc_options->wc_options_serialized->wc_post_types) && comments_open($post->ID)) {
|
446 |
add_filter('comments_template', array(&$this, 'remove_comments_template_on_pages'), 1);
|
|
|
447 |
}
|
448 |
}
|
449 |
|
@@ -454,5 +455,7 @@ class WC_Core {
|
|
454 |
|
455 |
}
|
456 |
|
|
|
|
|
457 |
$wc_core = new WC_Core();
|
458 |
?>
|
3 |
/*
|
4 |
Plugin Name: wpDiscuz - Wordpress Comments
|
5 |
Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
6 |
+
Version: 1.0.8
|
7 |
Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
|
8 |
Author URI: http://www.gvectors.com/
|
9 |
Plugin URI: http://www.gvectors.com/wpdiscuz/
|
143 |
wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
|
144 |
wp_enqueue_style('validator-style');
|
145 |
|
146 |
+
wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '1.0.8', false);
|
147 |
wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
|
148 |
|
149 |
wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
|
370 |
}
|
371 |
$wc_comment_count = $this->wc_options->wc_options_serialized->wc_comment_count;
|
372 |
$wc_comment_list_order = $this->wc_options->wc_options_serialized->wc_comment_list_order;
|
373 |
+
|
374 |
$comm_list_args = array(
|
375 |
'callback' => array(&$this, 'wc_comment_callback'),
|
376 |
'style' => 'div',
|
378 |
'max_depth' => 2,
|
379 |
'reverse_top_level' => false
|
380 |
);
|
381 |
+
|
382 |
+
|
383 |
+
|
384 |
$comments = get_comments(array('post_id' => $post_id, 'status' => 'approve', 'order' => $wc_comment_list_order));
|
385 |
+
|
386 |
$wc_comments = $this->init_wc_comments($comments);
|
387 |
wp_list_comments($comm_list_args, $wc_comments);
|
388 |
+
|
389 |
return $this->wc_parent_comments_count;
|
390 |
}
|
391 |
|
444 |
global $post;
|
445 |
if (in_array($post->post_type, $this->wc_options->wc_options_serialized->wc_post_types) && comments_open($post->ID)) {
|
446 |
add_filter('comments_template', array(&$this, 'remove_comments_template_on_pages'), 1);
|
447 |
+
// add_action('comment_form', array(&$this, 'remove_comments_template_on_pages'), 1);
|
448 |
}
|
449 |
}
|
450 |
|
455 |
|
456 |
}
|
457 |
|
458 |
+
|
459 |
+
|
460 |
$wc_core = new WC_Core();
|
461 |
?>
|