Download & Extend

Fivestar comments duplicating comments

Project:Fivestar
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When enable fivestar comments duplicates comments. Please see image attached.

AttachmentSizeStatusTest resultOperations
fivestar comment.png9.8 KBIgnored: Check issue status.NoneNone

Comments

#1

Category:bug report» support request

This looks like something caused by your theme. Check your comment.tpl.php file and make sure that the $content variable is being printed once. Try switching to a core theme like Garland and you should see that this problem does not exist there.

Also, the 2.x version is far from stable and I'd suggest not using it for any production purposes.

#2

Category:support request» bug report

Well, it seems it's not related to comment.tpl.php see code below:

  <div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print (isset($comment->status) && $comment->status  == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>">
 
    <?php if ($picture) { print $picture; } ?>

    <?php if ($comment->new): ?>
      <span class="new"><?php print $new ?></span>
    <?php endif; ?>

    <div class="commentTitle">
      <?php print $title; ?>
    </div>

    <div class="submitted">
      <?php print $submitted ?>
    </div>

    <div class="content">
      <?php print $content ?>
      <?php if ($signature): ?>
        <div class="user-signature clear-block">
          <?php print $signature ?>
        </div>
      <?php endif; ?>
    </div>

    <div class="links">
      <?php print $links; ?>
    </div>
  </div>
 

Anyways, I will use version 6.x-1.15

Thanks a lot.

#3

Do the comments display correctly when you switch the theme to Garland? I know this doesn't occur on a fresh installation, so we're probably seeing a conflict with some other code in Drupal.

#4

Subscribing

#5

fivestar_comment.module line 144 is

<?php
$comment
->comment .= theme('fivestar_comment_view', $comment->comment, $comment->fivestar_view);
?>

.= ofcourse doubles $comment->comment. Removed it and everything is fine again. :)

AttachmentSizeStatusTest resultOperations
fivestar_comment.module.patch844 bytesIgnored: Check issue status.NoneNone

#6

Status:active» needs review

I forgot to set this to "needs review" sorry

#7

Status:needs review» reviewed & tested by the community

Looks right to me, I'll commit next time I'm working on 2.x.

#8

Status:reviewed & tested by the community» fixed

Committed, thanks!

#9

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here