Title: melvitax's Replies | WordPress.org

---

# melvitax

  [  ](https://wordpress.org/support/users/melvitax/)

 *   [Profile](https://wordpress.org/support/users/melvitax/)
 *   [Topics Started](https://wordpress.org/support/users/melvitax/topics/)
 *   [Replies Created](https://wordpress.org/support/users/melvitax/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/melvitax/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/melvitax/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/melvitax/engagements/)
 *   [Favorites](https://wordpress.org/support/users/melvitax/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Flag Comments Plugin](https://wordpress.org/support/topic/flag-comments-plugin/)
 *  [melvitax](https://wordpress.org/support/users/melvitax/)
 * (@melvitax)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/flag-comments-plugin/#post-988337)
 * to get this plugin working with the latest version of wordpress u need to do 
   a custom comments loop like it mentions here:
    [http://codex.wordpress.org/Template_Tags/wp_list_comments#Comments_Only_With_A_Custom_Comment_Display](http://codex.wordpress.org/Template_Tags/wp_list_comments#Comments_Only_With_A_Custom_Comment_Display)
 * this is what i did in mine
 * in comments.php replace:
    <?php wp_list_comments(); ?>
 * with :
 * <?php wp_list_comments(‘type=comment&callback=mytheme_comment’); ?>
 * then, in your functions.php file, add the following function:
 * function mytheme_comment($comment, $args, $depth) {
    $GLOBALS[‘comment’] = $comment;?
   > <li <?php comment_class(); ?> id=”li-comment-<?php comment_ID() ?>”> <div id
   =”comment-<?php comment_ID(); ?>”> <div class=”comment-author vcard”> <?php echo
   get_avatar($comment,$size=’48’,$default='<path_to_url>’ ); ?>
 *  <?php printf(__(‘<cite class=”fn”>%s</cite> <span class=”says”>says:</span>’),
   get_comment_author_link()) ?>
    </div> <?php if ($comment->comment_approved ==‘
   0’) : ?> _<?php \_e(‘Your comment is awaiting moderation.’) ?>_
 *  <?php endif; ?>
 * <?php edit_comment_link(__(‘(Edit)’),’ ‘,”) ?><?php do_action(“flag_comment_link”);?
   ></div>
 *  <?php comment_text() ?>
 *  <div class=”reply”>
    <?php comment_reply_link(array_merge( $args, array(‘depth’
   => $depth, ‘max_depth’ => $args[‘max_depth’]))) ?> </div> </div> <?php }
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [conditionnal tags on sidebar](https://wordpress.org/support/topic/conditionnal-tags-on-sidebar/)
 *  [melvitax](https://wordpress.org/support/users/melvitax/)
 * (@melvitax)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/conditionnal-tags-on-sidebar/#post-1069244)
 * you need to reset the query before the conditional statement
    <?php wp_reset_query();?
   >

Viewing 2 replies - 1 through 2 (of 2 total)