Simple Machines Community Forum

SMF Development => Feature Requests => Topic started by: Daretary on November 22, 2023, 07:56:16 AM

Title: Improving the usability of the "Active Reports" section
Post by: Daretary on November 22, 2023, 07:56:16 AM
It is very inconvenient to go into the next complaint every time to see the reason and description of the applicant.

And it's better to make the buttons at the top (above the text) rather than at the bottom.

Therefore, I suggest in the ReportedContent.template.php file after

foreach ($context['reports'] as $report)
{
echo '
<div class="windowbg">';

add:
        // Reported post options
        template_quickbuttons($report['quickbuttons'], 'reported_posts');


        echo '
<div class="cat_bar" style="clear:both">
<h3 class="catbg">', $txt['mc_modreport_whoreported_title'], '</h3>
</div>';

        foreach ($report['comments'] as $comment)
            echo '
<div class="windowbg">
<p class="smalltext">
', sprintf($txt['mc_modreport_whoreported_data'], $comment['member']['link'] . (empty($comment['member']['id']) && !empty($comment['member']['ip']) ? ' (' . $comment['member']['ip'] . ')' : ''), $comment['time']), '
</p>
<p>', $comment['message'], '</p>
</div>';


After the text this line can be removed: template_quickbuttons($report['quickbuttons'], 'reported_posts');

This way you will save a lot of your timeand the time of your moderators!