Ready to get started?Download WordPress


[resolved] [Plugin: Ajax Report Comments] Make it not show on your Dashboard (2 posts)

  1. Websiteguy
    Posted 10 months ago #


    How do I make Ajax Report Comments not show on my dashboard under "Right Now"?

    Please Help

    [No bumping. If it's that urgent, consider hiring someone.]

  2. Websiteguy
    Posted 9 months ago #

    Fixed it. Part of this is because they changed the table calls for the right now section.

    To make it look better, go to report-comments.php and find the section for function rc_dashboard_status() (should be lines 94 through 133ish)

    Change that WHOLE section to this:

    function rc_dashboard_status() {
            $rc_approved_count = rc_comments_count('approved');
            $rc_pending_count = rc_comments_count('pending');
            $rc_all_report_count = rc_comments_count('all');
        echo '<tr><td class="first t" colspan="2" style="background: #fff; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec;"><em>AJAX Report Comments</em></td></tr>';
                            $url = get_bloginfo('wpurl').'/wp-admin/admin.php?page=rc_moderation&show=all';
                            $num = number_format_i18n($rc_all_report_count);
                            $text = __ngettext( 'Reported Comments', 'Reported Comments', $rc_all_report_count );
                            echo '<tr class="first">';
                            echo '<td class="b b_comments"><a href="' . $url .'">' . $num . '</a></td>';
                            echo '<td class="last t"><a href="' . $url .'">' . $text . '</a></td>';
                            echo '</tr>';
                            $url = get_bloginfo('wpurl').'/wp-admin/admin.php?page=rc_moderation&show=approved';
                            $num = number_format_i18n($rc_approved_count);
                            $text = __ngettext( 'Approved Comments', 'Approved Comments', $rc_approved_count );
                            echo '<tr><td class="b b_approved"><a href="' . $url .'"><span class=\'pending-count\'>' . $num . '</span></a></td>';
                            echo '<td class="last t"><a href="' . $url .'">' . $text . '</a></td></tr>';
                            $url = get_bloginfo('wpurl').'/wp-admin/admin.php?page=rc_moderation&show=pending';
                            $num = number_format_i18n($rc_pending_count);
                            $text = __ngettext( 'Reported Comments', 'Reported Comments', $rc_pending_count );
                            echo '<tr><td class="b b-waiting"><a href="' . $url .'"><span class=\'pending-count\'>' . $num . '</span></a></td>';
                            echo '<td class="last t"><a href="' . $url .'">' . $text . '</a></td></tr>';
                            echo '<tr><td class="last t" colspan="2" style="background: #fff;">© Tierra Innovation, v2.0 </td></tr>';


    Notice too how I've changed the add_action below.

    The things I did was changing the action call to the correct side of the table, reformatted the text to fit more screens, cleaned up the HTML so table rows were called correctly, added in a line break after the copyright for a visual effect.

    Works for me on 3.0 :)


You must log in to post.

About this Topic