|
@@ -206,7 +206,7 @@ function template_reported_posts()
|
|
|
$details_button = create_button('details.png', 'mc_reportedp_details', 'mc_reportedp_details', 'class="centericon"');
|
|
|
$ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"');
|
|
|
$unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"');
|
|
|
- $ban_button = create_button('delete.png', 'mc_reportedp_ban', 'mc_reportedp_ban', 'class="centericon"');
|
|
|
+ $ban_button = create_button('close.png', 'mc_reportedp_ban', 'mc_reportedp_ban', 'class="centericon"');
|
|
|
$delete_button = create_button('delete.png', 'mc_reportedp_delete', 'mc_reportedp_delete', 'class="centericon"');
|
|
|
|
|
|
foreach ($context['reports'] as $report)
|
|
@@ -234,7 +234,14 @@ function template_reported_posts()
|
|
|
<ul class="quickbuttons">
|
|
|
<li><a href="', $report['report_href'], '">', $details_button, '</a></li>
|
|
|
<li><a href="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" ', !$report['ignore'] ? 'onclick="return confirm(\'' . $txt['mc_reportedp_ignore_confirm'] . '\');"' : '', '>', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li>
|
|
|
- <li><a href="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';close=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $close_button, '</a></li>
|
|
|
+ <li><a href="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';close=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $close_button, '</a></li>';
|
|
|
+
|
|
|
+ // Ban this user button.
|
|
|
+ if (allowedTo('manage_bans', $report['topic']['id_board']))
|
|
|
+ echo '
|
|
|
+ <li><a href="', $scripturl, '?action=admin;area=ban;sa=add;u=', $report['author']['id'] ,'">', $ban_button, '</a></li>';
|
|
|
+
|
|
|
+ echo '
|
|
|
<li>', !$context['view_closed'] ? '<input type="checkbox" name="close[]" value="' . $report['id'] . '" class="input_check" />' : '', '</li>
|
|
|
</ul>
|
|
|
</div>
|