WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
How to get comment thumbs count? (2 posts)

  1. wLabs
    Member
    Posted 3 years ago #

    Hello,

    I would like to check the thumbs for comments.

    If I use wp_gdsr_rating_comment($comment->comment_ID) I get this e.g.:
    (the comment has 1 thumb up and 4 stars)

    object(GDSRCommentRating)#3921 (21) { ["comment_id"]=> string(1) "3" ["post_id"]=> string(2) "68" ["review"]=> string(4) "-1.0" ["user_votes"]=> string(1) "1" ["visitor_votes"]=> string(1) "0" ["votes"]=> int(1) ["user_rating"]=> string(3) "4.0" ["visitor_rating"]=> NULL ["rating"]=> string(3) "4.0" ["thumbs_user_rating"]=> int(0) ["thumbs_visitor_rating"]=> int(0) ["thumbs_rating"]=> int(0) ["thumbs_user_votes"]=> int(0) ["thumbs_user_votes_plus"]=> NULL ["thumbs_user_votes_minus"]=> NULL ["thumbs_visitor_votes"]=> int(0) ["thumbs_visitor_votes_plus"]=> NULL ["thumbs_visitor_votes_minus"]=> NULL ["thumbs_votes"]=> int(0) ["thumbs_votes_plus"]=> int(0) ["thumbs_votes_minus"]=> int(0) }

    The thumbs-values are all 0 or NULL.

    Is this a bug?

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

  2. shortster
    Member
    Posted 2 years ago #

    Any news on this one? I'm using thumbs up and down and like to know the number of thumbs up and down so I can close the comment on bad votes or highlight it on good votes.
    I'm getting the same results as above:

    GDSRCommentRating Object ( [comment_id] => 27 [post_id] => 186 [review] => -1.0 [user_votes] => 0 [visitor_votes] => 0 [votes] => 0 [user_rating] => [visitor_rating] => [rating] => [thumbs_user_rating] => 0 [thumbs_visitor_rating] => 0 [thumbs_rating] => 0 [thumbs_user_votes] => 0 [thumbs_user_votes_plus] => [thumbs_user_votes_minus] => [thumbs_visitor_votes] => 0 [thumbs_visitor_votes_plus] => [thumbs_visitor_votes_minus] => [thumbs_votes] => 0 [thumbs_votes_plus] => 0 [thumbs_votes_minus] => 0 )

    This comment has 15 up and 12 down votes, but the object returns 0 for everything..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic