41

GD Star Rating 1.0.9

DiggThis
Thumbnail for GD Star Rating 1.0.9

Here is the first release in the 2009. This new version brings us very close to multi ratings being finally functional. But main focus of this release is jquery, tinymce plugin improvements, code cleanup and bug fixes. Soon I will transfer stars and trend sets from wp.gdragon.info website here.

jQuery, TinyMCE & Shortcodes

There are many changes in jQuery.UI project, so I decided to inlcude latest version and add new theme to it. I hope you like it. I also changed some jQuery code used forsettings panel. TinyMCE shortcode plugin is updated for upcoming new shortcodes. Now there is a more logical way to contol settings for each shortcode. As you can see there is multi rating shortcode in the list, but right now it’s not working. Shortcode support is expanded to include both upper case and lower case shortcodes.

Cleanup & Fixes

This release has some very important bug fixes. There were few bugs connected to WordPress 2.5.x and admin panels. Also there were few problems on some blogs with moderation settings, and invalid options values for moderations. I removed more obsolete code, added more function comments but there is more to be done, hopefully every new version will be cleaner. I have improved CSS file used for rating stars rendering and now is some 20-30% smaller, and easier to maintain. Post edit widget is expanded and comments settings are added. More things will be added in this widget soon.

Multi Ratings Intro

Multi rating is almost completed. You can check out Multi Sets panel where you can build multi rating sets. Each element of the set has different weight for calculating overall rating. Each post can have one instance of each rating set, and sets will support almost everything regular rating supports. So, that’s it for now. I hope you like the changes made in this version.

GD Star Rating
loading...

Share this:

del.icio.us DiGG Google StumbleUpon Google Buzz Microsoft Live MiXX RSS PDF
GD Star Rating 1.0.9, 7.7 out of 10 based on 105 ratings

41 Responses to “GD Star Rating 1.0.9”

  1. Ash

    January 16, 2009
    at 4:56 PM

    Hi does this system allow me to add a star rating on different items of a post. So for example “Rate my photos”?

    GD Star Rating
    loading...
    • millan

      January 16, 2009
      at 6:52 PM

      No. Rating is connected to the post. It will be very hard to implement something like that.

      GD Star Rating
      loading...
      • Mike Schinkel

        January 19, 2009
        at 6:11 AM

        I have to implement a rating system for posts, videos, and photos (using NextGen Gallery) by midweek. I am prepared to modify GD Star Rating to achieve that. If I (am able to) do so will you integrate my changes back into your plugin? (please email me to make sure I see your reply.)

        GD Star Rating
        loading...
        • millan

          January 19, 2009
          at 9:15 AM

          I am not sure that you can modify it easily to achive that. Rating is now connected to a post, and a lot of things depend on that, and a lot sql queries. I have somewhere in the plans to make it post independent, but that’s not going to happen soon, because too many things need to be changed.

          GD Star Rating
          loading...
          • Mike Schinkel

            January 19, 2009
            at 10:00 AM

            Thanks for the quick reply.

            Yes, attachments are included in wp_posts and as I’m an advanced SQL developer I won’t be tripped up by SQL and I plan to synchronize records in NextGen Gallery to the wp_posts table, see: http://wordpress.org/support/topic/235493

            I think it may be simple changes for your plugin to support media (I don’t know for sure.) Are you actively modifying it, or will the code be stable for a few days? If I make changes to support media rating, will you roll them in?

            Also, if I find the need for “hooks” (actions & filters) within the library, would you be amenable to me adding some that I might need? For example, maybe wp_gdsr_render_article() could look like this?

            function wp_gdsr_render_article($echo = true) {
            global $post, $userdata, $gdsr;

            $rating = apply_filters(‘gdsr_render_article’, $gdsr->render_article($post, $userdata));

            if ($echo) echo $rating;
            else return $rating;
            }

            And there could be several other places where this would be helpful. What do you think?

            -Mike

            BTW, I love your comment reply system. What are using?

            GD Star Rating
            loading...
  2. Sean

    January 16, 2009
    at 6:43 PM

    Sometimes I start to worry my intelligence is dimming, or that it’s time to go back to the eye doctor. So excuse me if I missed any of the following somehow:

    First off, GD Star Rating is the winner, beats, Post-Ratings 10-fold. Except for one thing, Post-Ratings has you beat when it comes to Documentation!

    “Is there a user guide for this plugin?

    Yes, there is a PDF file with detailed explanations on over 30 pages. You can download it from official plugin blog.”

    I have been searching for famed guide for quite a while now. I cannot find *any* information on templates and how to use them, public WP functions (for use in templates) and maybe even the parameters for those wp functions. Sure, I could look in the code, but then my screen starts to fill up, windows

    GD Star Rating
    loading...
  3. Sean

    January 16, 2009
    at 6:45 PM

    :( Prematurely submitted. All that needed saying was said. Thanks again for your work!

    GD Star Rating
    loading...
    • millan

      January 16, 2009
      at 6:54 PM

      User guide is not completed yet the way I wanted to be. But I don’t have much free time for that. I will have tutorials and examples on this site as additional resources. Tha also will require a lot of time, but I will try to add as many things as I can.

      GD Star Rating
      loading...
  4. bbkudk

    January 20, 2009
    at 1:44 PM

    Hi. I read your guide but im still with some trouble.
    Нow to display the ratings of posts that belong to some category?
    I want to put the ratings of posts in each category that it include.
    Sorry for my English.

    GD Star Rating
    loading...
    • millan

      January 20, 2009
      at 1:50 PM

      You need to use a shortcode to get the valid list of settings you need. A function for displaying list of ratings uses the same parameters as the shortcode. I will soon post examples of shortcode and function usage for displaying list of ratings.

      GD Star Rating
      loading...
  5. Tim

    January 20, 2009
    at 11:52 PM

    Hi there,

    Firstly WOW!!! An excellent plugin with so many features it literally blows my mind!!!

    I love it, All my categories are set up now for it and have the widget in the sidebar showing the top 10 rated for that category. I especially love the fact that you can also rate the comments too, an excellent addition!!!

    I was just wondering though, is it possible to have a top 10 comments widget for every individual post? In the same way that you can have a top 10 posts for a category.

    I only ask because i have some posts that get say 50 comments and it would be great to put a widget on the right of it for the top 10 rated comments for that post.

    So you would have the name of the user who posted the comment and the rating next to it. The name being clickable and it maybe shows that comment or highlights it on the page or something more clever.

    Is it already possible to do this or can i do it myself with a little tweaking?

    Thanks in advance

    Tim

    PS. I posted the other comment in the wrong section and have resubmitted here sorry.

    PPS, In that time I have read the ‘planned Features’ in teh user guide and was delighted to hear about the ‘Widget for comments votes’… Any hints as to whats going to be included there? and how long it might take for release?

    GD Star Rating
    loading...
    • millan

      January 21, 2009
      at 10:15 AM

      Widget with top comments per post will be most likely available with next release. I have most of the code written, but still need time to complete it and test it. Small problem now is new threading and paging of comments available in WP 2.7, but once I solve that widget will be released.

      GD Star Rating
      loading...
      • Tim

        January 21, 2009
        at 1:48 PM

        Fantastic!!!!!!

        Thats made me so happy, this is truly one of the most useful and brilliant plugins available for wordpress. TOP MARKS!!!!

        one question though, might be a small bug on my part but the “Rating: 5.0/5 (1 vote cast)” seems to ahve disappeared from my posts and comments and left only the stars. Have i done something here or is this changable in the settings?

        Tim

        PS, any estimated time for next release?

        GD Star Rating
        loading...
        • millan

          January 21, 2009
          at 2:13 PM

          Rating text can be disabled on the settings page for both comments and ratings.

          Next release is hard to predict. I am very busy with a lot of other work (work that brings money :) ). I plan to have next version out by the end of january.

          GD Star Rating
          loading...
  6. Great Engineering

    January 21, 2009
    at 5:06 PM

    Great plugin, thanks! I can’t wait for the next version to come. Are you planning an “all-automatic” widget or will it be possible to tweak some things? (example: I would need to get a “query” of the most popular posts, as I have a thumbnail related to each of them and the title alone is not enough). No rating system actually allows that and it should not be to difficult to do.
    Thank you very much!

    GD Star Rating
    loading...
    • MillaN

      January 21, 2009
      at 5:28 PM

      This is on my to do list, but I can’t tell you when I will get to that. It would be great to include the thumbnail with the post, and template system I created is flexible enough for something like that.

      So many features and so little time.

      GD Star Rating
      loading...
      • Great Engineering

        January 21, 2009
        at 5:36 PM

        Thanks for your quick reply. You’re definitely right about the time…

        GD Star Rating
        loading...
  7. malcarada

    January 21, 2009
    at 10:11 PM

    Sorry but this plugin is not working on my site, I installed it and surfers can see the stars there but for some reason it is imposible to rate (click on the stars)

    If you want to look at my site simply click on my name, I use Firefox3.

    GD Star Rating
    loading...
    • MillaN

      January 22, 2009
      at 12:30 AM

      It works just fine. I tested it on your site with Firefox 3.0.5, Opera 9.62, MS internet Explorer 7.0 and Chrome 1.0 and I can vote with all of them. As I stated before there is a problem beyond my control only in Firefox 3 caused by some Firefox extension, but I don’t know what extension. If you can send me the list of all extensions you haver active in Firefox 3 I will try to test it.

      GD Star Rating
      loading...
  8. sweety

    January 22, 2009
    at 2:53 PM

    hey can u plase send me the code for creating those stars i mean for rating…please…dont think it as a burden plzzz

    GD Star Rating
    loading...
  9. sweety

    January 22, 2009
    at 2:54 PM

    to my mail sweety_157@yahoo.com

    GD Star Rating
    loading...
    • MillaN

      January 22, 2009
      at 2:59 PM

      I don’t understand, what code? I have said this who knows how many times, check the user guide first and explain the question better if you can’t find the solution in the guide.

      GD Star Rating
      loading...
  10. Xee

    January 24, 2009
    at 10:44 PM

    I need to use “the_excerpt” on the index page instead of “the_contents” and I need the gd star images to show up on both the index page as well as the individual post pages.

    i tried adding another filter in gd-star-rating.php
    add_filter(‘the_excerpt’, array(&$this, ‘display_article’));

    although this displays the gd star images on both the index page as well as the post pages, I get a text string displayed in the excerpts ie “UA:D [1.0.9_379]please wait…Rating: 0.0/10 (0 vote cast)”

    any idea how i can stop that text string from showing up?
    thanks

    GD Star Rating
    loading...
    • MillaN

      January 25, 2009
      at 2:17 PM

      WordPress exceprt function stirps all html tags and formating, so adding rating into excerpt will be useless. The only way is to add rating stars rendering call after excerpt function. Check out the userguide for rendering functions.

      GD Star Rating
      loading...
  11. Restaurant critic

    January 26, 2009
    at 12:05 AM

    Hello, MillaN.

    Thank you first of all for the greatest wordpress plugin ever.
    Holding my breath awaiting for the Multi Ratings be ready.

    One thing you could incorporate as an option is a multi-column results display, like I did here: http://gourmet-project.com/rejting-restoranov-odessy/ by a surrounding div with id, and setting [li]s to display: block; float: left; and setting its widths, as well as breaking float after the list.

    I think that would be a nice optional feature in the future, where each one can tune the scripts display by turning on the multi-column setting in the admin panel and setting the width of each [li].

    Just a thought )
    Thank you once more!

    GD Star Rating
    loading...
    • MillaN

      January 26, 2009
      at 9:44 AM

      Thanx!

      If everything goes accoring to plan, 1.1.0 with multi ratings will be released on 2.2.2009.

      As for the multicolumn feature, my idea is to allow user to create such complex features by using better templates system. Soon I will have all rendering done through templates, and with new templates manager (in works).

      GD Star Rating
      loading...
  12. Danne

    January 26, 2009
    at 2:42 AM

    Great plugin! But I am trying to figure out how to have TOP 10 list with avarage ratings for a selected category. This would be sorted in descending order, from highest avarage to lowest avarage.

    I was thinking about something like the “Rating” box you have on this site. I can not use Widgets because, my template doesn’t support it. Is there a way to achieve this in the PHP code for example, in sidebar.php.

    GD Star Rating
    loading...
    • MillaN

      January 26, 2009
      at 9:45 AM

      There are examples on wp.gdragon.info, there is a user guide, there is tinymce shortcode plugin.

      Please read the user guide and check the forum.

      GD Star Rating
      loading...
  13. Dan

    January 27, 2009
    at 4:15 PM

    I want to create a rating system based on 5 variables ACROSS 20 items. All the ratings are the same, just the name of the RATED item is different. Then I want each item to be able to show its rating. I would love to be able to show a TOP 5 rated to users.

    Is this the plugin I have been dreaming about?

    GD Star Rating
    loading...
  14. Dan

    January 27, 2009
    at 4:17 PM

    I am trying to apply a rating scale to 25 items (each in a separate blog section. (using the same 5 criteria) and then on a ratings page post all 25 results + top 5. Is this my dream plugin?

    GD Star Rating
    loading...
    • MillaN

      January 27, 2009
      at 4:55 PM

      If I understand correctly, you need multi ratings, and for each post have 5 rating elements (variables). Right now each post can have only one rating.

      I am currently working on multi rating support that will be much better than any other similar system available I have seen. First version of this should be available in the next 7-8 days.

      GD Star Rating
      loading...
  15. Jamessy

    January 28, 2009
    at 7:02 AM

    Hi Your plugin looks really good! the only thing is i cant seem to get it to actually work,it shows on the front end but it wont let you vote.
    If im being stupid i apologize now but if you could point me in the right direction i would be grateful.

    GD Star Rating
    loading...
    • MillaN

      January 28, 2009
      at 9:20 AM

      First, read the user guide. If everything seams to work fine, but you can’t vote, maybe only you can’t vote. Default option is that post authors can’t vote for own posts. If you can’t make it work, I need to see it to tell you what the problem is.

      GD Star Rating
      loading...
  16. Andy

    February 2, 2009
    at 1:33 PM

    Hey MillAn first of all great plugin! Just a small question i am looking for a snippet of code that is able to tell me either in dashboard or as a widet who the highest rated user from comment ratings only is (in last 7 days).

    is this possible

    GD Star Rating
    loading...
    • MillaN

      February 2, 2009
      at 2:36 PM

      Not right now, but such function will be added. I can’t give you some specific timeframe, but in the next few weeks for sure.

      GD Star Rating
      loading...
  17. b

    February 4, 2009
    at 3:43 PM

    Upon voting / clicking on a star, can the plugin immediately redirect you to another site/page/link?

    GD Star Rating
    loading...
    • MillaN

      February 4, 2009
      at 4:58 PM

      Currently no. Vote data received after voting is processed using jQuery, so after that it can be done. But you need to modify javascript code to do it.

      GD Star Rating
      loading...
  18. BFH

    February 5, 2009
    at 8:40 AM

    The function wp_gdsr_rating_text_article()returns:
    Rating: 9.5/10 (59 vote cast)

    Could you tell me where to edit for this function to only returns avarages rating, for example: 9.5/10

    GD Star Rating
    loading...
    • MillaN

      February 5, 2009
      at 8:48 AM

      Right now this function uses template as the automatic rating does. I plan to expand this to use more then one template, and to support some kind of overrides to allow custom parameters for rendering. Most likely in the next week or so, templates system will be redesigned.

      GD Star Rating
      loading...
  19. BFH

    February 5, 2009
    at 8:56 AM

    Thank you very much for your promt action.

    Could you let me know which function in your plugin can return the average rating point (9.5/10) of a post?

    GD Star Rating
    loading...
    • MillaN

      February 5, 2009
      at 9:27 AM

      Such function exists: wp_gdsr_rating_article(). If you call it without parameters, you need to call it inside the loop. But you can pass post ID as a parameter, and it will return an object with all the data about one post.

      GD Star Rating
      loading...

Comments are closed.

Social Networks

Subscribe via Feedburner Flickr Images Stumbleupon Profile
xScape Themes

Feedburner updatesFeedburner

Sign up to receive all latest news about GD Star Rating directly to your email.