GD Star Rating Tips


VN:F [1.9.3_1094]
Take a moment to Rate and Review this article:
Rating: 8.0/10 (6 votes cast)

  • Share
  • Share­bar
  • Share
GD Star Rat­ing Tips, 8.0 out of 10 based on 6 ratings

What is GD Star Rating?

Hey this is a Wiki Page so you can help me edit this page! The options are below so get crackin’ and help out! :)

So this is my test of the WP Wiki plu­gin on the spe­cific topic of GD Star Rat­ing. I love this plu­gin, it’s very well thought out and adds alot of fan­tas­tic func­tion­al­ity for reviews, rat­ings, trends and tons of other features.

The one *slight* issue with the plu­gin is com­plex­ity. The devel­oper writes excel­lent devel­oper doc­u­men­ta­tion but at heart he is a soft­ware devel­oper. Now com­ing from a back­ground of soft­ware devel­op­ment myself I can under­stand him but for many Word­press web­mas­ters crack­ing open your theme, adding a few classes and rewrit­ing com­ment and post loops is a bit daunting.

If you’re in need of some help then feel free to com­ment below and I’ll see what I can do to help. Below you’ll find a list of some of the most com­mon issues I’ve had with GD Star Rat­ing.

Pre­views show GD Star Rat­ing code when I insert the rat­ing block at “Top and Bot­tom” through the admin.

If you’re using home­page pre­views like I do on my home­page, you might end up with some GD Star Rat­ing code in your pre­views. Mil­lanN has already cov­ered this but the eas­i­est thing to do is crack open your single.php (or which page is your post page, this is theme depen­dent) and add the fol­low­ing bit of code some­where before your post body:

<!-- Custom GD Rating Insertion -->
<?php if (defined("STARRATING_INSTALLED")) : ?>
<div style="float: left">
<?php wp_gdsr_render_article(); ?>
</div>
<?php endif;?>
<!-- End GD Staring Rating -->

This will insert your rat­ing block at the top of the post with­out affect­ing your previews.

Obvi­ously this is a bit more com­pli­cated than sim­ply adding the Com­ment to “Top and Bot­tom” through the set­tings panel but it’s a fairly pain­less addi­tion — note: the “if” state­ment above sim­ply detects if GD Star Rat­ing is acti­vated and does not call the func­tion if it it’s inac­tive and pre­vents errors on your site should you turn it off.

GD Star Rat­ings Func­tion List

As men­tioned above there are a ton of func­tions you can use to cus­tomize the appear­ance and behav­ior of GD Star Rat­ing. You might be look for the com­plete GD Star Rat­ing Func­tions List — hope­fully you find that use­ful in your cus­tomiza­tion and development.

VN:F [1.9.3_1094]
Rat­ing: +5 (from 5 votes)
This page is wiki editable click here to edit this page.

2 Responses to “GD Star Rating Tips”

  1. Al on August 17th, 2010 8:49 am

    I’ve been hav­ing an issue adding the star rat­ing in my com­ment sec­tion. i was able to get the rat­ings block to show up in the com­ment area but when I voted and left my com­ment, my rat­ing didn’t show up in my comment.

    I’m also hav­ing an issue with the way the vot­ing cal­cu­la­tion works, if I can get a rat­ing cal­cu­la­tion that com­bines the Star rat­ing with the num­ber of votes that would be great.

    Can you help with that?
    Thanks!

  2. Dan Nedelko on August 17th, 2010 1:49 pm

    @Al I gen­er­ally find that the rat­ings for com­ments might have some­thing to do with your com­ments tem­plate. I tried to join your site but the OpenID reg­is­tered and error and then your on site sign up never sent me an email with my pass­word. If you want to fire me an email I can do my best to help out or we can just fire mes­sages back and forth on here.

    Cheers!

Join in on the Discussion! Comment Now: