45

GD Star Rating 1.2.0

Thumbnail for GD Star Rating 1.2.0

This latest release brings many new features, and changes many aspects of how the plugin works. Because of that, it’s very important to read this whole post so that all potential transition problems are avoided.  As I was announced in the last couple of versions, the main focus was to create new, powerful templates system that will allow you to render rating block and everything else exactly the way you want it. User guide is also updated, so check it out also.

After upgrading plugin, review all plugin settings including widgets. Most likely widgets will not work until you update them.

T2

This new templates system is described in much more details in the featured post, and I will just point few things out here. Currently standard rating and comments rating blocks are rendered using T2, the rest will follow. So, many things you might be set using old system will not work. Som of the options used for positioning and aligning are removed (check this post), so if you used that, you need to do it using templates. And for using templates you can use default template or create your own. In the next few days I will post detailed post about creating template step-by-step.

Multi Ratings

And, even more changes are added to multi ratings. Few more bugs are fixed, mostly related to no multi sets defined. And in from this version multi ratings can be inserted into posts automatically on posts/page bases or category basis. You can also define if the block is automatically inserted at the beginning or end of the post (similar to standard ratings). There are still few more things that need to be done: functions for integrating multi ratings into the comments, t2 rendering and statistics. All that is in plans for the next couple of releases.

Widgets

Main Star Rating widget is improved with multi ratings results support, rendering of rating stars, better categories and last voted date filters and displaying post image. More details about all that are in the latest widget post. Both widget fully support upcoming WordPress 2.8. Few smaller bugs in the widgets code are fixed: duplicated results with some filter settings, using ranged date limitations and few more minor typos.

WordPress 2.8

Plugin is fully compatible with latest nightly build of the WP 2.8. Visual problems are fixed, widgets are created using new WP_Widget class, and I have tested rating code, admin panels and everything else. Still, until the final 2.8 is released, more problems can surface, but I will keep track of the WP2.8 development progress, so once it is released, GD Star Rating will work fine.

I am sure that there are bugs in this version too, and no matter how much I tested some bugs are still there. So, if you find some, write me a not, leave a comment and I will fix it. Hopefully, new versions will be developed faster from now on.

There is an issue with PHP4: in ‘code/t2/gd-star-t2-classes.php’ file, line 68 is ‘$k = array_keys($this->tpls_tags, $t, true);’. If you use PHP4 change this to ‘$k = array_keys($this->tpls_tags, $t);’.This will be changed in 1.2.1 version.

GD Star Rating
loading...
GD Star Rating 1.2.07.51070

Share this:

RSS DiGG Google Buzz Google Technorati StumbleUpon Design Float Microsoft Live PDF Favorites

45 Responses to “GD Star Rating 1.2.0”

  1. Mike

    April 22, 2009
    at 11:46 PM

    Warning: Wrong parameter count for array_keys() in /home/*****/public_html/v2/wp-content/plugins/gd-star-rating/code/t2/gd-star-t2-classes.php on line 68

    all I did was upgrade. oops?

    GD Star Rating
    loading...
    • MillaN

      April 23, 2009
      at 12:00 AM

      PHP4 problem unfortunatly. PHP4 is long dead and not supported anymore, and should be used anymore. I will fix it 1.2.1 in the next few days. I have updated post with the solution to the problem.

      GD Star Rating
      loading...
      • Mike

        April 23, 2009
        at 3:30 AM

        Ah! I will have to spring for the PHP 5 on my host. All good. It’s all the excuse I need, really.

        GD Star Rating
        loading...
  2. Sean

    April 23, 2009
    at 6:32 AM

    Looking good….. Will there be any way you can display total/average votes by category with multi’s? I don’t know how to make this clear….

    Basically it would be awesome if you could use the “Advanced: Star Rating” for multi’s…

    GD Star Rating
    loading...
    • MillaN

      April 23, 2009
      at 9:58 AM

      This is in works, and will be available in 1.2.2 or 1.2.3.

      GD Star Rating
      loading...
  3. Enrico

    April 23, 2009
    at 11:32 AM

    hi

    i use version 1.2.0 but not working .. i have w2003 iis and php4.4.4 blog is ok but plug no…. error is

    Warning: Invalid argument supplied for foreach() in xxxxxxxxxxxxxxxx\teo\wp-content\plugins\gd-star-rating\code\t2\gd-star-t2-classes.php on line 154

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in Xxxxxxxxxxxxxxxxxxxxx\teo\wp-content\plugins\gd-star-rating\code\gd-star-render-t2.php on line 27

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in xxxxxxxxxxxxxxxxxxxx\teo\wp-content\plugins\gd-star-rating\code\gd-star-render-t2.php on line 32

    i change line 68

    “There is an issue with PHP4: in ‘code/t2/gd-star-t2-classes.php’ file, line 68 is ‘$k = array_keys($this->tpls_tags, $t, true);’. If you use PHP4 change this to ‘$k = array_keys($this->tpls_tags, $t);’.This will be changed in 1.2.1 version.”

    but not working ..idea?
    tx

    GD Star Rating
    loading...
    • MillaN

      April 23, 2009
      at 12:04 PM

      As I said, PHP4 is old and not supported anymore. PHP5 should be used. But, in this case changing the line as I described solves the problem, I have tested it on PHP 4.4.9. I can’t test on any older versions.

      GD Star Rating
      loading...
  4. Chen

    April 23, 2009
    at 12:31 PM

    I love this plugin, but after I upgrade from 1.9 to 1.2 the “Rating header:” location is gone, previously I can choose from top-left-bottom and etc..
    What happened, it wasnt addressed here.

    GD Star Rating
    loading...
    • MillaN

      April 23, 2009
      at 12:41 PM

      Yes it is. This is now all transfered to the templates. Complete rendering is done using T2 templates system, so some of the options are gone because they are not needed anymore.

      GD Star Rating
      loading...
  5. Franco

    April 23, 2009
    at 1:23 PM

    Just to let you know …… no errors, nothing, all super :) love the multis

    GD Star Rating
    loading...
  6. Lee Evans

    April 23, 2009
    at 1:24 PM

    Seamless upgrade Milan,

    I look forward to the next release with the ability to breakdown the Multi-Rating averages.

    Is there a facility to duplicate the overall Multi rating average else where on the page, in a seperate element?

    GD Star Rating
    loading...
  7. Frank

    April 23, 2009
    at 5:24 PM

    Hi,
    nice uptdate. I was waiting for the possibility to auto integrate multi sets in posts.

    Unfortunatly new multi sets are not being saved anymore after tables OR multiratings were reinstalled.

    GD Star Rating
    loading...
  8. Frank

    April 23, 2009
    at 5:50 PM

    Second thing: auto inserted article ratings producing strange placeholder texts in article archives.

    GD Star Rating
    loading...
    • MillaN

      April 23, 2009
      at 9:16 PM

      I will check this.

      GD Star Rating
      loading...
  9. Franco

    April 23, 2009
    at 7:55 PM

    Hi Milan, sorry got a bug. i cant create multisets anymore

    GD Star Rating
    loading...
    • MillaN

      April 23, 2009
      at 9:17 PM

      Sorry about that, fix will be in new version in a few days.

      GD Star Rating
      loading...
  10. Rick

    April 24, 2009
    at 12:24 AM

    Hi Millan,

    Upgraded to 1.2 and now multisets are not saved in the database. Here is the debug.txt dump:

    [2009-04-23 05:04:13] : GET_POSTDATA_sql
    select * from wp_gdsr_data_article WHERE post_id = 56
    [2009-04-23 05:04:13] : GET_POSTDATA_results
    stdClass Object
    (
    [post_id] => 56
    [rules_articles] => A
    [rules_comments] => A
    [moderate_articles] => N
    [moderate_comments] => N
    [is_page] => 0
    [user_voters] => 0
    [user_votes] => 0.0
    [visitor_voters] => 0
    [visitor_votes] => 0.0
    [review] => -1.0
    [review_text] =>
    [views] => 2
    [user_recc_plus] => 0
    [user_recc_minus] => 0
    [visitor_recc_plus] => 0
    [visitor_recc_minus] => 0
    [expiry_type] =>
    [expiry_value] =>
    [last_voted] =>
    )

    [2009-04-23 05:04:13] : GET_POSTDATA_error

    Not a very informative error message, but I hope it helps.

    GD Star Rating
    loading...
    • MillaN

      April 24, 2009
      at 12:41 AM

      This has nothing to do with multis, but never mind. I already commented that I know about the bug, I fixed the bug (on svn now) and will be in 1.2.1 in a few days.

      GD Star Rating
      loading...
  11. Rick

    April 24, 2009
    at 12:31 AM

    One other interesting artifact…

    The widget rating category image size shows in code as:

    width=”38? height=”38?

    This error appears on your site as well.

    GD Star Rating
    loading...
    • MillaN

      April 24, 2009
      at 12:41 AM

      Thanx, I didn’t noticed it.

      GD Star Rating
      loading...
  12. Dee

    April 24, 2009
    at 4:35 AM

    I just did a clean install.
    Luckily, I checked out this site, I thought I was going crazy trying to add a new multi rating set but nothing ever shows. But I see it has already been brought to your attention.

    I’ll check back later.

    GD Star Rating
    loading...
  13. Ben Irwin

    April 24, 2009
    at 9:26 AM

    I really wish we could change the review text. This is so important to show people how our authors rate a post.

    GD Star Rating
    loading...
    • MillaN

      April 24, 2009
      at 9:57 AM

      You can still do that. Rating text is on the settings tabs still. It’s used by the rating block template. Detailed instructions on modifing theme will be posted in a few days.

      GD Star Rating
      loading...
      • Ben Irwin

        April 25, 2009
        at 9:24 PM

        I am not looking to edit the ratings text but rather the review text. The spot on the settings tab for review header does not show up when using the wp_gdsr_render_review tag

        GD Star Rating
        loading...
        • MillaN

          April 25, 2009
          at 9:26 PM

          Well, this will be all corrected in 1.2.2 when I add review templates.

          GD Star Rating
          loading...
          • Ben Irwin

            April 25, 2009
            at 10:01 PM

            So from I can see the T2 Template does not currently interact with any of the custom PHP tags is that correct?

            GD Star Rating
            loading...
  14. Lee Evans

    April 24, 2009
    at 5:42 PM

    Is there a facility to duplicate the overall Multi rating average else where on the page, in a seperate element?

    GD Star Rating
    loading...
    • MillaN

      April 24, 2009
      at 8:55 PM

      There are many custom functions for this type of things. Check the gd-star-custom.php file.

      GD Star Rating
      loading...
  15. Ken

    April 24, 2009
    at 8:30 PM

    Star rating does not work in Firefox,Please advise? The stars show up and highlight but clicking on them returns no result. Works in all other browsers but half of my users are on firefox and i would really like to use this plugin…….I currently have the stars disabled.

    GD Star Rating
    loading...
    • MillaN

      April 24, 2009
      at 8:55 PM

      Use Firebug to see if there are any javascript errors. I have repeated this milion times, some Firefox extensions can break javascript.

      GD Star Rating
      loading...
  16. Patric

    April 25, 2009
    at 2:11 AM

    Great plugin. I’m looking for plugin that user must leave a comment before the over all rating function enabled to rate that post.

    GD Star Rating
    loading...
  17. Ken

    April 27, 2009
    at 4:27 PM

    These are the errors I have,Please advise

    Firebug’s log limit has been reached. %S entries not shown. Preferences
    href is undefined
    [Break on this error] var hrefArray = href.split(‘.’).reverse();
    external…ver=2.7.1 (line 6)
    Permission denied to call method Location.toString

    GD Star Rating
    loading...
    • MillaN

      April 27, 2009
      at 5:15 PM

      Your website works just fine, and I can vote in Firefox with no errors in Firebug.

      I don’t know how many more times I need to repead that some extensions (and in some cases Firefox itself) can break javascript on the page. I develop and test all javascript code with Firefox and Firebug first, than Opera, Safari and Chrome.

      I just can factor in all the problems that can be caused by some poorly written extension or some other code that is executed by the browser.

      GD Star Rating
      loading...
  18. Ken

    April 29, 2009
    at 3:01 PM

    Millan the plugin is now working great.Thank you for your help.This is an amazing plugin and probably one of the most well thought out.I was wondering if there is a way to remove the number of votes display from the rating view?

    GD Star Rating
    loading...
    • MillaN

      April 29, 2009
      at 4:38 PM

      Display is controled by templates, if you don’t need something shown, create new template.

      GD Star Rating
      loading...
  19. Ken

    April 30, 2009
    at 8:51 PM

    Millan,

    Sorry to keep bothing you but where can i get the code for the top rated psots widget?

    GD Star Rating
    loading...
  20. dave

    May 13, 2009
    at 8:49 PM

    Hey,

    brilliant plugin, very complete, many thanks.

    trying to integrate with Seesmic comment system, working well on usual text posts but the ratings not showing on the video posts.. any ideas please?

    kr

    Dave

    GD Star Rating
    loading...
    • MillaN

      May 13, 2009
      at 8:56 PM

      Depends on the way the content is displayed. Auto insertion uses post or comment content. But if the vide post doesn’t use the_content function, you need to use manual function for inserting the rating block.

      GD Star Rating
      loading...
  21. MillaN

    April 25, 2009
    at 11:01 PM

    This is done only partially, and there are few bugs also. But I am working on it and all will be fixed with 1.2.2 that will be released by the end of april.

    GD Star Rating
    loading...

Trackbacks/Pingbacks

  1. Dev4Press » GD Star Rating 1.2.0 - April 22, 2009

    [...] http://www.gdstarrating.com/2009/04/22/gd-star-rating-120/ VN:F [1.2.0_562]please wait…Rating: 0.0/10 (0 votes cast) Share and Enjoy: [...]

  2. WordPress Plugin Releases for 04/27 | Weblog Tools Collection - April 27, 2009

    [...] GD Star Rating [...]

  3. WordPress Plugin Releases for 04/27 | BlogBroker24-7 - April 27, 2009

    [...] GD Star Rating [...]

  4. WordPress Plugin Releases for 04/27 « Wizreport - April 28, 2009

    [...] GD Star Rating [...]

  5. WordPress Plugin Releases for 04/27 | The Latest Headlines - May 6, 2009

    [...] GD Star Rating [...]

  6. WordPress Plugin Releases for 04/27 - Word Press Magazine - May 14, 2009

    [...] GD Star Rating [...]

Comments are closed.

Social Networks

Subscribe via Feedburner Flickr Images

Feedburner updatesFeedburner

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