Support » Plugin: GD Star Rating » How to display stars in a comment ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Up !

    Is it possible to get the votes from a user for a specific article ?

    I would like to do something like that :
    ocmme wp_gdsr_multi_rating ($ show = “user”)
    but it does not work…

    So you’re trying to show the multi rating that a certain user has given together with his comment?

    In that case you can use this in your comment callback function:

    wp_gdsr_comment_integrate_multi_result($comment_id = get_comment_ID()); ?>

    Ok, thank you i will try !

    In what file do i have to paste that code to get the rating in the comment section of a user?

    I don’t know if all theme’s do it like this, but in WordPress’s twentyeleven and twentytwelve this is done by a function in functions.php.

    You can find back which function that is in comments.php . In comments.php look for something like this (example from twentytwelve theme):

    <?php if ( have_comments() ) : ?>

    <ol class=”commentlist”>
    <?php wp_list_comments( array( ‘callback’ => ‘twentytwelve_comment’, ‘style’ => ‘ol’ ) ); ?>
    <!– .commentlist –>

    The callback variable in wp_list_comments points to the function displaying each comment. So in this case you would see ‘twentytwelve_comment’ is the callback function and you search for that function in functions.php.

    If you can’t figure it out just post the theme you’re using here and I’ll take a look for u.

    Hi vwv_soko thanks for response!!

    I am using gd star multi ratings. And a like to show the average score in the comment. I am using this theme: Directory Portal WordPress Theme (Themeforest).

    I can not figure it out, how to do this.

    Do you als know why we can not moderate multi ratings in gd star?

    Thanks again!

    Unfortunately that’s a paid theme and I can not download it and look into the code, but from what I can see from the preview, they use an ordered list element with class commentlist. So searching in your themes files for:

    <ol class=”commentlist”>

    Should point you in the right direction.

    Moderating multi ratings doesn’t work for me either. Hopefully that will be fixed in gd star rating v2.0 if that ever sees daylight.

    Hi thanks anyway!!

    How do you moderate the multirating now?
    Delete someting from database?


    When I enable moderation of multistarrating the votes appair in database: wp_gdsr_moderate

    Is there a way to moderate it from the database?

    Damn.. why didn’t they fixed this anyway.. Such a great plugin with such a huge error.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to display stars in a comment ?’ is closed to new replies.