WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
How to display stars in a comment ? (10 posts)

  1. soonrise
    Member
    Posted 1 year ago #

    Hi,

    I would like to know if it's possible to link the fact to note an article (in my case a product page) and the fact to comment on the article. I would like to display for each comment the stars given by the same contributor, and not only the overall score of the page, is it possible ?

    Best.

    Plugin : http://wordpress.org/support/plugin/gd-star-rating

    http://wordpress.org/extend/plugins/gd-star-rating/

  2. soonrise
    Member
    Posted 1 year ago #

    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...

  3. vvw_soko
    Member
    Posted 1 year ago #

    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()); ?>

  4. soonrise
    Member
    Posted 1 year ago #

    Ok, thank you i will try !

  5. RatQz
    Member
    Posted 1 year ago #

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

  6. vvw_soko
    Member
    Posted 1 year ago #

    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.

  7. RatQz
    Member
    Posted 1 year ago #

    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!

  8. vvw_soko
    Member
    Posted 1 year ago #

    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.

  9. RatQz
    Member
    Posted 1 year ago #

    Hi thanks anyway!!

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

    Greetz

  10. RatQz
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic