Forums

Comments Vote
All comments are hidden [ How to fix ] (1 post)

  1. Justin01
    Member
    Posted 1 year ago #

    If, like me, you're using the P2 theme (optional) and all of your comments are hidden (even though they have no ratings), here's a simple fix:

    1. Open the commentsvote.php file and go to the "commentsvoteContent" function (line ~147).

    2. Paste this: $votes = CVGetCommentVote($comment->comment_ID); just after the function was declared (so on the first lines of the "commentsvoteContent" function).

    3. 2-3 lines of code below, you'll notice the declaration of the "$hidecomment" variable, like so:

    $hideComment = ($commentsvoteOptions[ 'threshold' ] > 0 && ( $comment->_cv_vote <= -$commentsvoteOptions[ 'threshold' ] ) );

    Change the $comment->_cv_vote for $votes so this line should look like this:

    $hideComment = ($commentsvoteOptions[ 'threshold' ] > 0 && ( $votes <= -$commentsvoteOptions[ 'threshold' ] ) );

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic