Added pingback filter option for comments in admin area
This commit is contained in:
parent
ba75bb3b8f
commit
ded774a931
@ -187,6 +187,9 @@ if ($serendipity['GET']['filter']['show'] == 'approved') {
|
|||||||
if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
|
if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
|
||||||
$c_type = 'TRACKBACK';
|
$c_type = 'TRACKBACK';
|
||||||
$searchString .= "&serendipity[filter][type]=TRACKBACK";
|
$searchString .= "&serendipity[filter][type]=TRACKBACK";
|
||||||
|
} elseif ($serendipity['GET']['filter']['type'] == 'PINGBACK') {
|
||||||
|
$c_type = 'PINGBACK';
|
||||||
|
$searchString .= "&serendipity[filter][type]=PINGBACK";
|
||||||
} elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') {
|
} elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') {
|
||||||
$c_type = 'NORMAL';
|
$c_type = 'NORMAL';
|
||||||
$searchString .= "&serendipity[filter][type]=NORMAL";
|
$searchString .= "&serendipity[filter][type]=NORMAL";
|
||||||
@ -197,6 +200,9 @@ if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
|
|||||||
if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
|
if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
|
||||||
$c_type = 'TRACKBACK';
|
$c_type = 'TRACKBACK';
|
||||||
$searchString .= "&serendipity[filter][type]=TRACKBACK";
|
$searchString .= "&serendipity[filter][type]=TRACKBACK";
|
||||||
|
} elseif ($serendipity['GET']['filter']['type'] == 'PINGBACK') {
|
||||||
|
$c_type = 'PINGBACK';
|
||||||
|
$searchString .= "&serendipity[filter][type]=PINGBACK";
|
||||||
} elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') {
|
} elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') {
|
||||||
$c_type = 'NORMAL';
|
$c_type = 'NORMAL';
|
||||||
$searchString .= "&serendipity[filter][type]=NORMAL";
|
$searchString .= "&serendipity[filter][type]=NORMAL";
|
||||||
@ -314,6 +320,7 @@ function highlightComment(id, checkvalue) {
|
|||||||
<option value=""><?php echo COMMENTS_FILTER_ALL ?></option>
|
<option value=""><?php echo COMMENTS_FILTER_ALL ?></option>
|
||||||
<option value="NORMAL"<?php if ($c_type == 'NORMAL') echo ' selected="selected"' ?>><?php echo COMMENTS; ?></option>
|
<option value="NORMAL"<?php if ($c_type == 'NORMAL') echo ' selected="selected"' ?>><?php echo COMMENTS; ?></option>
|
||||||
<option value="TRACKBACK"<?php if ($c_type == 'TRACKBACK') echo ' selected="selected"' ?>><?php echo TRACKBACKS; ?></option>
|
<option value="TRACKBACK"<?php if ($c_type == 'TRACKBACK') echo ' selected="selected"' ?>><?php echo TRACKBACKS; ?></option>
|
||||||
|
<option value="PINGBACK"<?php if ($c_type == 'PINGBACK') echo ' selected="selected"' ?>><?php echo PINGBACKS; ?></option>
|
||||||
</select></td>
|
</select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -135,6 +135,8 @@ function serendipity_fetchComments($id, $limit = null, $order = '', $showAll = f
|
|||||||
$type = 'NORMAL';
|
$type = 'NORMAL';
|
||||||
} elseif ($type == 'trackbacks') {
|
} elseif ($type == 'trackbacks') {
|
||||||
$type = 'TRACKBACK';
|
$type = 'TRACKBACK';
|
||||||
|
} elseif ($type == 'pingbacks') {
|
||||||
|
$type = 'PINGBACK';
|
||||||
} elseif ($type == 'comments_and_trackbacks') {
|
} elseif ($type == 'comments_and_trackbacks') {
|
||||||
$type = '%';
|
$type = '%';
|
||||||
}
|
}
|
||||||
|
@ -1 +1,2 @@
|
|||||||
@define('CATEGORY_PLUGIN_HIDEZEROCOUNT', 'Hide archives link when no entries were made in that timespan (requires counting entries)');
|
@define('PINGBACK', 'Pingback');
|
||||||
|
@define('PINGBACKS', 'Pingbacks');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user