content.php
11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
if (!defined("ABSPATH")) {
exit();
}
if (!$isRafExists) {
?>
<style>
.flag-inner input[type=text], .flag-inner input[type=email]{height: 30px;width: 95%;padding:3px 5px;}
.flag-inner input[type=number]{height: 30px;padding:3px 5px;width:80px;}
.flag-inner textarea{padding:10px;width: 95%;margin-left:10px;}
.add_new{border: 1px solid rgba(0, 91, 255, 0.34);border-radius: 4px;padding: 5px 10px !important;cursor: pointer;}
.add_new:hover{background-color: lightgrey;}
.report_remove{width: 30px;height: 30px; background:url("../images/minus-sign.png") center no-repeat; background-color: white; border: 0 !important;}
.report_remove:hover{opacity: 0.8;cursor: pointer;}
.flag-inner p.wpd-info{font-size:13px; line-height:15px; color:#999999; width:95%; padding:0px; margin:0px; font-style:italic; margin-top:5px;}
.flag-inner label{ vertical-align:top; font-size:14px;}
</style>
<div class="flag-inner">
<h3 style="padding:5px 10px 10px 10px; margin:0px; text-align:right; border-bottom:1px solid #ddd; max-width:60%; margin:0px 0px 20px auto; font-weight:normal;">
Addon - Report & Flagging
</h3>
<p style="border: 1px dotted #07B290; padding: 15px; font-size: 14px; text-align: center; margin: 10px; background: #EFFFF5">
wpDiscuz Report & Flagging addon is a comment reporting tools. Auto-moderates comments based on number of flags and dislikes.
This is a demo admin page of the wpDiscuz Report & Flagging addon. You can buy this addon on gVectors Team Store.
<br>
<a href="https://gvectors.com/product/wpdiscuz-report-flagging/" target="_blank"
style="padding: 6px 15px; background: #07B290; color: #fff; display: inline-block; margin: 15px 5px 5px 5px;">
Addon Details and Screenshots »</a>
</p>
<table style="opacity: 0.6;">
<tbody>
<tr valign="top">
<th scope="row" style="width:55%;">
<label for="wpdiscuz_show_flag">
Show flag icon on comments </label>
<p class="wpd-info">If this option is disabled, comment auto-moderation will only be based on down votes / dislikes.</p>
</th>
<td>
<input name="" checked="checked" value="1" id="wpdiscuz_show_flag" type="checkbox">
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_allow_guest_flag">
Allow guests to flag and report comments </label>
</th>
<td>
<input name="" checked="checked" value="1" id="wpdiscuz_allow_guest_flag" type="checkbox">
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_allow_user_messag_flag">
Enable comment reporting pop-up form for registered users </label>
<p class="wpd-info">For security reasons comment reporting form is disabled for guests by default. Guests are still able to flag without sending message. However you can enable this for guests using the option below.</p>
</th>
<td>
<input name="" checked="checked" value="1" id="wpdiscuz_allow_user_messag_flag" type="checkbox">
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_allow_messag_flag_guest">
Enable comment reporting pop-up form for guests </label>
</th>
<td>
<input name="" value="1" id="wpdiscuz_allow_messag_flag_guest" type="checkbox">
</td>
</tr>
<tr valign="top">
<th scope="row">
Enable auto-moderation for flagged/disliked comments:
<p class="wpd-info">This will automatically Unapprove or Trash comments which reached the maximum number of flags or dislikes set below</p>
</th>
<td>
<input name="" checked="checked" value="unapprove" id="wpdiscuz_unapprove" type="radio"> <label for="wpdiscuz_unapprove"> unapprove </label>
<input name="" value="trash" id="wpdiscuz_trash" type="radio"> <label for="wpdiscuz_trash"> trash </label>
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_flag_count">
Do auto-moderation if comment is flagged more than </label>
</th>
<td>
<input name="" value="5" id="wpdiscuz_flag_count" type="number"> <span style="display:inline-block; vertical-align:bottom; font-size:14px; padding:5px;">times</span>
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_vote_count">
Do auto-moderation if comment is down voted more than </label>
</th>
<td>
<input name="" value="10" id="wpdiscuz_vote_count" type="number"> <span style="display:inline-block; vertical-align:bottom; font-size:14px; padding:5px;">times</span>
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_notify_admin">
Notify admin when comment is auto-moderated:
</label>
</th>
<td>
<input name="" checked="checked" value="1" id="wpdiscuz_notify_admin" type="checkbox">
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_admin_email">
Admin Email:
</label>
</th>
<td>
<input name="" value="admin@example.com" id="wpdiscuz_admin_email" type="email">
</td>
</tr>
<tr valign="top">
<th scope="row" colspan="2" style="border-top:3px solid #ddd;">
<h3 style="padding-bottom:5px; padding-top:20px; font-weight:normal; margin:0px;"> Comment reporting message from reporter to admin</h3>
<p class="wpd-info"> This message comes from comment reporting pop-up form. It includes reporter message and bad comment category (reason).</p>
</th>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_flagged_email_subject">
Report message subject </label>
</th>
<td>
<input name="" value="New comment report" id="wpdiscuz_flagged_email_subject" type="text">
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_flagged_email_message">
Report message body </label>
<p class="wpd-info">
<i> [userInfo] - username or user IP (guests)</i><br>
<i> [reason] - bad comment category</i><br>
<i> [message] - report message</i><br>
<i> [postTitle] - post title</i><br>
<i> [commentInfo] - comment text or URL</i>
</p>
</th>
<td>
<textarea name="" id="wpdiscuz_flagged_email_message" cols="50" rows="6"><h2>Report details:</h2>
<p>Reporter IP | Name: [userInfo]</p>
<p>Reason: [reason],</p>
<p>Message: [message],</p>
<p>Post: [postTitle],</p>
<p>Comment URL | Text: [commentInfo]</p></textarea>
</td>
</tr>
<tr valign="top">
<th scope="row" colspan="2" style="border-top:3px solid #ddd;">
<h3 style="padding-bottom:5px; padding-top:20px; font-weight:normal; margin:0px;"> Auto-moderation notification to admin</h3>
<p class="wpd-info"> This message will be sent to admin once maximum number of flags or dislikes is reached for certain comment and this comment is auto-moderated (trashed or unapproved)</p>
</th>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_moderated_email_subject">
Auto-moderation message subject </label>
<p class="wpd-info">Please do not remove %s variable at end of this phrase. This variable will be changed to auto-moderation mode "flags" or "dislikes".</p>
</th>
<td>
<input name="" value="New comment has reached to the maximum number of %s" id="wpdiscuz_moderated_email_subject" type="text">
</td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wpdiscuz_reported_email_message">
Auto-moderation message body </label>
<p class="wpd-info">
<i> [status] - comment status</i><br>
<i> [postName] - post URL</i><br>
<i> [postTitle] - post title</i><br>
<i> [userLogin] - user login</i><br>
<i> [userIP] - user IP</i><br>
<i> [userEmail] - user email</i><br>
<i> [commentContent] - reported comment content</i>
</p>
</th>
<td>
<textarea name="" id="wpdiscuz_reported_email_message" cols="50" rows="6">You have a new [status] comment on the post [postTitle].<br>
[postName]<br>
<b>Comment details:</b><br>
Author: [userLogin] (IP: [userIP])<br>
Email: [userEmail]<br>
URL:<br>
Comment:
[commentContent]</textarea>
</td>
</tr>
</tbody>
</table>
</div>
<?php
}