WordPress.org

Forums

Safe Report Comments
[resolved] Adding theme support (2 posts)

  1. trinzia
    Member
    Posted 1 year ago #

    My comments are structured as follows, in comments.php:

    <?php foreach($comments as $comment) : ?>
    	//lots of code here
    	<?php comment_text() ?>
    	//lots of code here
            <?php do_action( 'comment_report_abuse_link' ); ?>
      <?php endforeach; ?>

    (I don't actually have a reply link at all, because it's a very customized theme.)

    I get the message "Wrong usage of print_flagging_link()."
    When I added the rest of the code to functions.php, I just got the message twice instead of once.

    I'm probably also going to have to customize the html of the link.
    Is there another way to construct the Flag link?

    Thanks!

    http://wordpress.org/plugins/safe-report-comments/

  2. trinzia
    Member
    Posted 1 year ago #

    Resolved. In comments.php, instead of do_action, used:

    <?php
    echo $safe_report_comments->get_flagging_link( $comment_id, '', 'Report comment' );
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Safe Report Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic