by BeeJay
1 replies
Hey folks,

Just wondering if there are any of you out there that are familiar with the GD Star Rating plugin and are savvy with implementing it in wordpress themes. I've tried a few warriors for hire but am still waiting for a response, but I'd be happy to pay for any advice.

I think the problem is likely to be easily fixed, but in general terms is as follows:

1. I have made a multiset which works fine.

2. What I want is for the multi set rating panel to appear in the comment section, so that a reader can give their rating and also post a review in the form of a comment. I want their rating and their comment to appear once posted.

3. I can get the multi rating to appear in the comment section by using the code below in the coments.php file in the Theme Editor (the theme is Flexibility2).

4. When I insert the second batch of code below into the legacy.comments.php it doesn't work. When a person posts a comment with their rating, their rating results render in the main post, but DON'T appear with their comment.

What's supposed to happen is their individual rating appears with their comment, but the results are aggregated into the post rating. I just can't get their rating to appear on the comment (the results aggregate fine).

comments.php
<?php if (defined("STARRATING_INSTALLED")) : ?>
<p><?php wp_gdsr_comment_integrate_multi_rating(1); ?>
<label for="url"><small>Rating</small></label>
</p><?php endif; ?>

legacy.comments.php
<?php if (defined("STARRATING_INSTALLED")) : ?>
<?php wp_gdsr_comment_integrate_multi_result(get_comment _id=(), $multi_set_id=1, $stars_set="oxygen", $stars_size=20, $stars_set_ie6="oxygen_gif", $avg_stars_set="oxygen", $avg_stars_size=20, $avg_stars_set_ie6="oxygen_gif", $echo=true); ?>
<?php endif; comment_text(); ?>

Any help would be hugely appreciated.
#rating #star
  • Profile picture of the author KenyaInez
    I've been up all night trying to work with this great plug and I have a similar problem.

    All I want to do is allow my star rating review to display along with the comment. I installed the first portion of code in my comments.php and my stars show up; however when I install the second portion of code (i don't have legacy.comments.php) it duplicates the last comment made.

    Oddly enough, using the Starscape theme on another website of mine; this function works fine; I just can't figure out how to make it work on another theme. I'm using Wordpress 3.0 and I don't have threaded comments so it shouldn't be that difficult (or at least I don't think.) If you find any info please post it here and I'll be sure to do the same.
    {{ DiscussionBoard.errors[2278367].message }}

Trending Topics