subscribe: Posts | Comments | Email | Twitter     external: Forum | Issue Tracker

Multi Ratings

71 comments
Multi Ratings

The long list of GD Star Rating features has just been expanded with advanced and long awaited multi ratings that will allow you to set post or pages rating that can have more then one rating set. You can create as many multi rating sets as you want and each one can have up to 10 rating elements with different names and weights. Each post can have more than one set at the same time.

In many aspects, multi ratings will work as the regular ratings: moderation, log, trends, vote rules and restrictions. All restriction and moderation settings set for posts will be used for multi ratings. To add multi ratings set to a post you can use shortcode (integrated in tinymce editor plugin, just like the standard ratings), or add php function call into the theme (again like the standard ratings).

Starting point is Multi Sets panel where you can add a multi rating set. You can have unlimited of different sets, and each of them can be added into any post or page. Even more you can have 2 or more different sets in one post in the same time. Each set can have up to 10 values, and each value can have different weight that will be used to calculate overall rating of the set. Each set can also have different number of stars. Once you create the set, you can’t change number of elements or the number of stars. You can rename them, change weights, but that’s it.

Example Of Multi Rating Block

Example Of Multi Rating Block

On the picture on the right you can see one rating block with 4 elements. Yellow stars represent average rating for that element. Red stars represent your current rating choice before you submit it. Submit button is active only when you rate all 4 elements. Rating text shows average rating of that multi set for that post and is calculated with the use of weights you set with the set.

As for the customizations, you can customize almost anything. Rating text uses templates and with CSS you can control the look of the whole block. There are custom CSS classes that can be added to block, table, rating text and button.

This is just an intro into multi ratings this plugin supports, and many more interesting features are yet to come. So, if you are curious on how all this actually work, there are two multi rating block for you to test:

Example 1:

With this multi rating block you can rate this website. You have 5 rating elements with 10 stars each.

GD Star Rating
loading...

Example 2:

This example block is about one of my favorite TV shows LOST. Here you have 6 elements with 7 stars each.

GD Star Rating
loading...
GD Star Rating
loading...
Multi Ratings8.010352


  1. Sweet,

    I have been checking your website everyday for this. I’m going to give it a shot tonight and post back. Thanks for all the hard work and a great plugin so far. There are paid rating plugins that I have used that have less features than this.

    Regards,
    Daniel

    GD Star Rating
    loading...
  2. I notice that when I submitted ratings into the example blocks, the overall rating line incorrectly reports “(0 votes cast)”, whereas the single-line rating for the post correctly reports (2 votes cast).

    BTW, so good to see multi Ratings arrive, I’m going to do so many things with this feature :)

    GD Star Rating
    loading...
  3. Hello!

    Thanks for your plugin but after I tried to use multi ranking all I get displayed on my site is

    UA:F [1.0.9_379]
    TEST
    Performance STARS
    Speed STARS
    Reliability STARS
    Support STARS

    Do you maybe have any ideas what I did wrong?

    Thanks!

    GD Star Rating
    loading...
    • It’s obvious that you are using 1.0.9 and not 1.1.0. Multi ratings is introduced fully working yesterday with 1.1.0.

      GD Star Rating
      loading...
  4. Thank you Millan for your support and for your work. That’s very appreciated. I’m glad you finalized the multiratings function.

    In your guide, it is said about the shortcode STARRATINGMULTI “This shortcode will insert multi rating set into the post. It has only one parameter (for now), and
    this parameter is ID of the multi set you want to use. It can be added through tinymce plugin like all
    the other shortcodes.”
    Right, but where do i define a particular set that i’ll link with a particular shortcode ID ?

    Thank you in advance

    GD Star Rating
    loading...
    • You need to enable multi rating support on settings panel, and after that you will get new panel called Multi Sets.

      GD Star Rating
      loading...
  5. Hi Millan,
    Thanks a lot for this fast answer.

    Now i’ve got to face this message : Warning: Invalid argument supplied for foreach() in /home/faguohon/www/wp-content/plugins/gd-star-rating/code/gd-star-render.php on line 305

    The line 305 in “gd-star-render.php” is “foreach ($set->object as $el) {“. Do you have any idea ?

    All my apologies to take your time.

    GD Star Rating
    loading...
    • This happens when the set in use is not defined right. I will add some additional checks to discover if the set is good before rendering and using.

      GD Star Rating
      loading...
  6. Indeed Millan, you’re right.
    Hope that will help other users. Thanks again.
    I’ll click on your ads to help a little.

    GD Star Rating
    loading...
  7. hey awesome stuff. quick question. can i add multirating sets and begin colleting votes under the assumption that in a future release ill be able to show statistics for those votes. (e.g. using yours above — a list of Top Rated Performance , Top Rated Speed etc…)?

    GD Star Rating
    loading...
    • All data is being saved so once I add widgets and other means to shows statistics, all will be there.

      GD Star Rating
      loading...
      • awesome, when do you think that will be available?

        another quick question. If i want to add a specific multirating set to all the posts in a given category, is there a quick way for me to do that –or will i have to add the multirating short code individually to each post within that category?

        thanks for your help!

        GD Star Rating
        loading...
        • Right now no. Standard rating is only one and it’s easy to add it automatically. But with multi ratings it can’t be done because you can have more then one set. For now you need to add it using shortcode.

          GD Star Rating
          loading...
  8. Thank you Milan! everything works now :)

    GD Star Rating
    loading...
  9. Milan,

    Under the “GD Star Rating: Multi Sets” tab after I have created a set and use the delete function by clicking the box and selecting “Delete Selected Sets” they won’t delete.

    Thanks

    GD Star Rating
    loading...
  10. Me Again,

    Templates > Multis

    When I insert the code for the “Rating Text” and click “Save Settings” it will not save.

    Thanks,
    Daniel

    GD Star Rating
    loading...
  11. Both bugs fixed – awesome support Millan – thanks. If I come across any other bugs I will let you know.

    GD Star Rating
    loading...
    • Great! Any more bug reports are welcome. Today was a good day, several bug reports and all are now fixed.

      GD Star Rating
      loading...
  12. Think I have another…

    Templates > Multis

    In the “Rating Text” field I have the standard “Rating: %RATING%/%MAX_RATING% (%VOTES% %WORD_VOTES% cast)”

    I am using 5 stars and this is the output I get with one vote…
    “Rating: 11.6/5 (1 vote cast)”

    So the actual rating is higher than the maximum rating which I assume is incorrect.

    Hope that makes sense,
    Daniel

    GD Star Rating
    loading...
    • This is partialy weight recalculation problem. Total weight is bigger than 1 (sum of weights devided with number of elements should be 1). I will make better auto recalculation soon. For now, keep weights around 1, when the problem gets solved you would be able to use whatever you want.

      GD Star Rating
      loading...
  13. Nice to meet you.
    I am Japanese.
    The portal site in the town is produced.
    I love GD Star Rating.

    “multi rating block” did not move.
    “Save multi set” was not able to be preserved.

    WP2.7
    Version: 1.1.1
    Status: Stable
    Release Date: 2009.02.06.
    PHP: 5.2.6
    ySQL: 4.0.24-standard-log

    thank you very much!

    GD Star Rating
    loading...
    • Right now multi rating block doesn’t work with character sets beside standard english and similar. I am working on support for japanese, chinese and other languages.

      GD Star Rating
      loading...
  14. Thank you for the answer.

    Japanese was a cause. (Wordpress2.7jp)
    “simple StarRater” moves normally.

    The upgrade is expected.
    Thank you for wonderful “plugin”.

    GD Star Rating
    loading...
    • Hi Kuma,
      I asked also for chinese characters (:
      We’re two requesting this… good for us (:

      GD Star Rating
      loading...
      • I have encoding for multi ratings, and more I have added encoding option on the settings panel. Default is UTF-8, but you can change it to whatever you need.

        New version tonight.

        GD Star Rating
        loading...
        • Ahahaha !
          Amazing how fast you are !
          UTF-8 is perfect for chinese characters.
          Thanks again & see you tonight

          GD Star Rating
          loading...
  15. hi
    i want to review movies/books etc. and thought i could use this feature. but i cant find a option to use the multi rating just for me. i dont want the users to vote, just to present my opinion in a simple way. is this possible?

    GD Star Rating
    loading...
    • That’s called review rating, and will be availble soon. It will work similar to regular review rating via post edit page.

      GD Star Rating
      loading...
  16. thats great!
    can you guess what time you have it done?

    GD Star Rating
    loading...
  17. How can i make a toplist of the results from multiratings?

    eg.
    Rating: 16.0/10 (3 votes cast)
    Rating: 12.0/10 (4 votes cast)
    Rating: 11.0/10 (1 votes cast)

    GD Star Rating
    loading...
  18. Thank you for this amazing plugin !
    I have just install it and it works great!

    I have juste one problem : how can i change the “submit” button in multi ratings ?

    GD Star Rating
    loading...
    • If you mean how to change Submit text into something else, that is not yet possible, but it will be soon. It will be even possible to remove it completely.

      GD Star Rating
      loading...
  19. Yes, it was the submit text ;)
    Thank you for your fast answer and thank again for your plugin ;)

    GD Star Rating
    loading...
  20. Hey Millan,

    I can’t figure out how to edit the html/design of the multirating box. If that’s not clear I want to change the font color, width and a few other things of the actual box/text.

    I looked for a CSS file but I may be missing it.

    Thanks,
    Daniel

    GD Star Rating
    loading...
    • You can’t edit CSS (you can, but is not easy and can ruin some things because that file is not static CSS, but is generated by PHP), but you can add your styles.

      For each main element there is a field to add CSS classes from some your file loaded by the WordPress (style.css of theme). Check out how to article (you need to enable advanced settings to show CSS fields).

      GD Star Rating
      loading...
  21. One more Millan,

    The widget “GD Star Rating” the “%RATING%” value doesn’t show the correct value. I am getting 5.0 all the time.

    Thanks

    GD Star Rating
    loading...
    • Widget works fine, most likely some of the settings you used are causing the problem. Add another such widget and check default settings agains widget you already have. In the next few days there will be tutorial about this widget.

      GD Star Rating
      loading...
      • Millan, I found the problem that I am having. The “GD Star Rating” widget works fine with the normal rating system when it’s auto inserted into the post.

        When I use the “[starratingmulti id=1]” shortcode the “GD Star Rating” widget doesn’t show any of the data. I can get the actual blog posts to show using the widget ( set on 0 ) but none of the “Elements” return data – all show 0.

        Maybe I am missing a setting under the GD Star Rating plugin panel?

        Thank You

        GD Star Rating
        loading...
        • Widget only uses data from standard post rating, not multi rating. There will be new widget for that soon.

          GD Star Rating
          loading...
          • Damn I have been going crazy trying to figure out what was wrong, lol. Thanks for the update so I can work on something else for now :)

            Thanks for all your help as well I appreciate it.

            GD Star Rating
            loading...
    • I tried uploading the widgets folder again and am having the same issues. I also only get one post to show up using the “GD Star Rating” widget. I have the settings to show the top 5 posts but no matter what I do it will only show one.

      I played with all the settings and I really think there is a problem. I also tried to use the widget as is without make any setting changes and it does the same thing.

      Thanks

      GD Star Rating
      loading...
      • There is no need to move or edit plugin files. Most likely that the problem is minumal number of votes, by default set to 5 and this will ignore posts with less than 5 recorded votes.

        GD Star Rating
        loading...
        • Yes I have changed this to 0 and 1 as well. I changed every setting I am pretty certain something is wrong with it. I spent an hour on changing the settings two different times just to make sure it wasn’t me.

          GD Star Rating
          loading...
          • Please, send me email with screenshot of the widget settings (full widget, with all elements exapnded), so I can see what the problem could be.

            GD Star Rating
            loading...
  22. “widget_comments” is just a blank file on the most recent download.

    GD Star Rating
    loading...
  23. Hey Millan,

    I am going to email you but I don’t know if this would effect the widget problem. The errors below show when I…

    1. visit the “GD Star Rating: Multi Sets” page
    2. click on “Posts” under the “Statistics” column

    This is the URL “/wp-admin/admin.php?page=gd-star-rating-multi-sets&gdsr=murpost&sid=5″

    These are the errors the page is filled with “Warning: Division by zero in /home/redgsr/public_html/RICEREVIEW.COM/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 145

    Warning: Division by zero in /home/redgsr/public_html/RICEREVIEW.COM/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 146

    Warning: Division by zero in /home/redgsr/public_html/RICEREVIEW.COM/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 147″

    I get those errors over and over again and below them the actual articles are shown in the correct format.

    GD Star Rating
    loading...
  24. this is friggin awesome

    GD Star Rating
    loading...
  25. Hi,

    Firstly I have to say this is a great plug in, great work!

    I am looking to understand on my site (http://www.talkingaboutcars.com) how I can better use the layout to layout horizontally rather than vertically. I have only added ratings on one article which can be found here for reference (http://www.talkingaboutcars.com/2009-volkswagen-golf-first-pictures)?

    Is it also possible to have text wrap around the multi-ratings table?

    Thanks

    Graham

    GD Star Rating
    loading...
    • Right now multi rating block is rendered as a table and you can’t change that. But you can add any css class to table, elements, rating text or button and with that control colors and positioning.

      You need to enable ‘Display custom rating CSS settings’, and after you do that you will be able to add these classes. And with them you can control wrapping and any otehr thing you might need.

      GD Star Rating
      loading...
  26. This is EXACTLY what I’ve been looking for.

    Two quick questions:

    1) how do I get my multi-sets to display on individual posts?

    2) when will the widget support multi-set voting data?

    GD Star Rating
    loading...
  27. Hehehe…I just found out how to answer #1. Must be tired.

    How about #2?

    ps – THANKS for this!!!

    darren
    http://www.timinganddelivery.com

    GD Star Rating
    loading...
  28. Thanks Millan, by the time you posted, I had already found the answer to #1.

    GREAT tool…my users will be very excited!

    GD Star Rating
    loading...
  29. Millan:

    A reader of my blog told me this morning that they are having difficulty submitting a vote for the ratings.

    Why would they not be able to submit their rating? This particular reader is logging on wirelessly through the same internet connection here at the house, but that shouldn’t matter, should it?

    GD Star Rating
    loading...
    • Plugin is writing into database IP for each vote. So, if more than one computer is sharing wireless connection, they will have the same incoming IP, and only one will be able to vote. You can turn off IP validation for votes.

      GD Star Rating
      loading...
  30. EXACTLY the fix.

    MillaN…I want to thank you for this. I look forward to watching for more and exciting updates.

    GD Star Rating
    loading...
  31. great, this is what I’m looking for, will try soon tonight.

    GD Star Rating
    loading...
  32. Hi

    I want to use the Multiset and It works brilliant :)

    BUT how can I define how many start the multisets shall show? I want to use the plugin as a helt to my review posts. and it would be nice if I could show how I rate the product and how the users rate the product in different boxes. An example of the post could be:

    Authors rating:

    Graphic: ****
    Sound: **
    Overall: ***

    Users rating:

    Graphic: **
    Sound: ****
    Overall: *****

    Hope it makes sence :)

    GD Star Rating
    loading...
    • If you mean how many stars, than each set can have number of stars you set when you create the set. As for the author rating, this is called review rating and later tonight new version of plugin will be released and will feature experimental version of this feature. But completed version will be available in the next few weeks.

      GD Star Rating
      loading...
  33. is there russian version of this plugin?

    GD Star Rating
    loading...
    • No one offered to translate it yet. Maybe you can do it? It would be great to have more translations available.

      GD Star Rating
      loading...