I am running GD Star Rating 1.7.5, WP 2.8.6, the Starscape theme, and PHP5.
I am having some trouble getting a user's submitted rating to show up again on their posted comment.
I followed the tutorial on comments integration on gdstarrating.com, and I was able to allow a commenter to submit a rating with his comment by adding the following code to comments_new.php:
<?php if (defined("STARRATING_INSTALLED")) : ?>
<p><?php wp_gdsr_comment_integrate_standard_rating(); ?>
<label for="url"><small>Please Rate This Post</small></label>
</p><?php endif; ?>
Then to get the commenter's rating to show up alongside his comment, I changed the code in comments_walker.php just below the function start_el to look like this:
<<?php echo $tag ?> <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
<?php if ( 'ul' == $args['style'] ) : ?>
<div id="div-comment-<?php comment_ID() ?>">
<div style="float: right">
<?php endif; ?>
But the commenter's rating does not show up. I don't know if the rating hadn't been stored to begin with or if my code is wrong.
Thanks so much for any help!