GD Star Rating Comments Integration
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!
I am having the same exact problem. The star rating shows up in the comment box, but then it does not register that they have voted and the rating does not show up after they press submit.
If you come up with any solution I would love to hear it. My issue is I am not even using the starscape theme and so the whole comment walker thing doesn’t seem to be compatible.
This works just fine. Tutorial on plugin website is enough to make it work. I am doing few integrations each month specifically for this with different themes and it works.
There are four people on this thread that have used the tutorial on the website and it isn’t working. Since the only other option is to pay $100 Euros for access to your support forum, I’ve decided to roll my own plugin from scratch. I do appreciate the work that you’ve done however.
- The topic ‘GD Star Rating Comments Integration’ is closed to new replies.