33

GD Star Rating 1.1.9.1

DiggThis
Thumbnail for GD Star Rating 1.1.9.1

Version released yesterday had small but annoying bug causing warning when you try to update/publish posts and pages. But, since I hate to release only small bug fixes, I decided to add few more things to this release. Warning was displayed only if no multi rating sets are defined.

This release also has few more fixes with reinstall database table function and some invalid calls for generating stars images. But, as I said there are some new things concerning widget. Many people asked for displaying stars images in the widget and also post image for widget rating items. Now, that can be done. I have added new tags for widget that will do just that. You  can use %STARS% for displaying image with rendered rating. Widget settings will now allow you to choose stars set and stars size to display. As for the post image (tag %IMAGE%) you can get the image URL from any post custom field or from the first image within the post content, you can decide when setting up the widget.

Also, I have added functions for displaying multi rating averages. All custom functions for integration are as usual in gd-star-custom.php file. Each function has phpdoc documentation with description of parameters.

So, if no more crytical bugs are found, next release will be 1.2.0 in next 2 weeks at most.

GD Star Rating
loading...

Share this:

del.icio.us DiGG Google StumbleUpon Google Buzz Microsoft Live MiXX RSS PDF
GD Star Rating 1.1.9.1, 7.6 out of 10 based on 89 ratings

33 Responses to “GD Star Rating 1.1.9.1”

  1. C.

    April 16, 2009
    at 10:53 PM

    How do i display the multi average in a post?

    GD Star Rating
    loading...
    • MillaN

      April 16, 2009
      at 11:10 PM

      Using custom function: wp_gdsr_multi_rating_average(). Function parameters and all other custom functions are in the file mentioned in the post. For this function the only required parameter is multi set id.

      GD Star Rating
      loading...
      • C.

        April 16, 2009
        at 11:28 PM

        Actually this function don’t work… i cant see in the mentioned file the function wp_gdsr_multi_rating_average()… i can only see wp_gdsr_multi_REVIEW_average()

        GD Star Rating
        loading...
        • MillaN

          April 16, 2009
          at 11:33 PM

          You need to update to 1.1.9.1.

          GD Star Rating
          loading...
          • C.

            April 16, 2009
            at 11:35 PM

            yes.. i just find it.. sorry for my stupid complain

            GD Star Rating
            loading...
  2. Arias

    April 16, 2009
    at 11:12 PM

    How to upgrade to this version?
    Usually you can see that your plugin has an update, but not this time.

    GD Star Rating
    loading...
    • MillaN

      April 16, 2009
      at 11:18 PM

      It’s avalable on WordPress update also, but your WordPress checks for updates only twice a day, so it will show you what’s new in the few hours tops.

      GD Star Rating
      loading...
  3. C.

    April 16, 2009
    at 11:17 PM

    Unbelieveble how a fantastic FREE plugin has a fantastic FREE support! You deserve all prosperity in the world MillaN. Congratulations.

    GD Star Rating
    loading...
  4. rohin

    April 17, 2009
    at 2:50 AM

    I just installed this brand new update , I still get an error

    Warning: Division by zero in html/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 118

    Warning: Division by zero in html/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 118

    Warning: Cannot modify header information – headers already sent by (output started at html/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php:118) in html/wp-includes/pluggable.php on line 850

    When I tried to edit & update an old post

    any ideas ?

    GD Star Rating
    loading...
  5. rohin

    April 17, 2009
    at 4:28 AM

    I fixed it , by downgrading to 1.1.7 , I’m very happy with this edition as it’s most stable for me

    GD Star Rating
    loading...
    • MillaN

      April 17, 2009
      at 9:54 AM

      I will try to see what the problem could be, because I don’t get the warning anymore.

      GD Star Rating
      loading...
      • C.

        April 17, 2009
        at 11:59 AM

        I can reproduce this problem when i use the average multi rating… this happens when determined post has no votes yet!

        GD Star Rating
        loading...
        • MillaN

          April 17, 2009
          at 12:03 PM

          I will investigate this further.

          GD Star Rating
          loading...
        • MillaN

          April 17, 2009
          at 3:40 PM

          This is now fixed, and is now on SVN. There are no other similar problems to be found if the installation is correct. I have tested with empty blog, tried all kinds of things and I can’t reporoduce problems Rohin has.

          GD Star Rating
          loading...
    • MillaN

      April 17, 2009
      at 9:57 AM

      Can you please check if the database tables for multi ratings are created correctly? That’s maybe the problem.

      GD Star Rating
      loading...
  6. AG

    April 20, 2009
    at 7:34 AM

    I have the same type of prob with 1.9.1 when I list the result of a vote. I checked the structure of my table and it looks it’s the same as the one of your last schema.

    Warning: Division by zero in /home/www/www.ww-area.info/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 384

    Warning: Division by zero in /home/www/www.ww-area.info/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 385

    Warning: Division by zero in /home/www/www.ww-area.info/wp-content/plugins/gd-star-rating/code/gd-star-dbmulti.php on line 386

    GD Star Rating
    loading...
    • MillaN

      April 20, 2009
      at 9:49 AM

      Thanx for the report. This is now also fixed.

      GD Star Rating
      loading...
  7. etche

    April 21, 2009
    at 5:30 AM

    Hi, thanks for everything. I’ve had a problem with the post rating widget which I couldn’t fix . I went to global maintenance and hit the remove settings button. Now that things went back to normal, y made my setting changes (5 star rating, not ten) and all the ratings I had in my posts are now half the value they were before. If i go to articles, they all show fine, 5/5 votes.. but in the page it is shown 2.5 / 5. How can i fix this? thanks a lot!

    GD Star Rating
    loading...
    • MillaN

      April 21, 2009
      at 9:21 AM

      Recalculating votes is done regardless of they being for post or page. Maybe vote for the page previously recorded was 5, and now it’s recalculated to 2.5.

      GD Star Rating
      loading...
      • etche

        April 23, 2009
        at 6:42 AM

        But is there a way to recalculate votes knowing that the maximum rating is 5 and not 10..so that my previous ratings don’t chop to half? i kinda fixed this by editing tables in database and duplicating each vote. but i hope it doesnt happen again
        thanks.

        GD Star Rating
        loading...
        • MillaN

          April 23, 2009
          at 9:59 AM

          After you change the number of stars all the votes are recalculated. At this point log table is not recalculated, but this is not used for anything except for checking for duplicated votes.

          GD Star Rating
          loading...
    • shebal

      April 21, 2009
      at 10:31 PM

      I has 1.1.7 installed and switched to 1.1.9.1 on a wordpress 2.7.1 install. The problem I’m having is that the voting functionality is not working anymore. The stars change color when I move the mouse over it but clicking doesn’t do anything. I’m using the wp_gdsr_render_comment instead of having the plugin insert it. I tried letting the plugin insert the code and I’m still having the same problem. I reinstalled the tables via the plugin but that didn’t work either. Other websites using ajax works just fine. I tried testing it under firefox and opera and it also didn’t work. Am I missing something? Thanks for the input.

      GD Star Rating
      loading...
      • MillaN

        April 21, 2009
        at 11:05 PM

        Not much info to go on. Have you read posts that can help you find the problem? The problem you describe is 100% ajax problem. You need Firebug to see why the ajax calls are not working.

        GD Star Rating
        loading...
      • etche

        April 23, 2009
        at 6:42 AM

        I had the same problem your are having and it was a compatibility problem with another plugin. I’m not sure but i think it was lightwindow. Try disabling plugins one by one until it works.
        good luck!

        GD Star Rating
        loading...
  8. shebal

    April 21, 2009
    at 11:30 PM

    I have another website running wordpress 2.7 and gd star rating 1.10 and the rating function works perfect there so i guess it can’t be my browser. I’m wondering if it has something to do with wordpress 2.7.1. I have read multiple posts here and forum posts on your other site GDragon.info but can’t seem to find a solution. Hopefully with the release of 1.20, everything will be fine. If you can come up with anything else I should look at. I’ll keep my eye on this page. Thanks and keep up the great work!

    GD Star Rating
    loading...
    • MillaN

      April 21, 2009
      at 11:36 PM

      Give me the link I can try, but your problem is javascript problem, because what you described is that and since I am sure that in 1.1.9.1 ajax code is ok (it works here), there must be problem with something else.

      GD Star Rating
      loading...
  9. Djuka

    April 22, 2009
    at 9:16 AM

    I will appreciate a lot if someone share their gd-star-config.php settings. I still have voting problem, simple I can’t vote for any post or comments. I don’t have any more idea what to do, beside very good written Milan’s documentation there is no examples of full path for debug.txt. My debug.txt file is empty and file is writable, in 777 CHMOD. Please, I’m desperate, I really like this plugin I want to use it but for some reason it does not working…

    My part of gd-star-config.php:

    /**
    * Full path to a text file used to save debug info. File must be writeable.
    */
    define(‘/wordpress/wp-content/plugins/gd-star-rating/’, dirname(__FILE__).’/debug.txt’);

    If some body have some tips or tricks what to try, or change please share your experience with this plugin…

    GD Star Rating
    loading...
    • MillaN

      April 22, 2009
      at 9:59 AM

      You need to enable debug into file through settings panel, debug tab.

      GD Star Rating
      loading...
      • Djuka

        April 22, 2009
        at 11:00 AM

        Already done that…

        GD Star Rating
        loading...
        • MillaN

          April 22, 2009
          at 11:07 AM

          The only thing for the debug to work is for the debug file from config to be writable and the debug option to be enabled.

          But I have just noticed that your define in config is not ok. It should be like this:

          define(‘STARRATING_LOG_PATH’, dirname(__FILE__).’/debug.txt’);

          first parameter is the name of the variable and this must remain like that, the second is the path to debug file, and this points to debug.txt in plugins folder.

          GD Star Rating
          loading...
          • Djuka

            April 22, 2009
            at 11:50 AM

            You are right!

            Finally I have something written in debug.txt, but still can’t vote. I will send you debug.txt file to check it. Maybe you will see where the problem is. I use Firebug 1.3.3 console for debugging, and don’t have any jQuery, Ajax or JS errors…

            GD Star Rating
            loading...
          • Djuka

            April 22, 2009
            at 10:44 PM

            Hello everybody!

            I have solve my problem with this great plugin. And I want to share my experience with all of you that are using GD Star Rating plugin, to avoid problems and save some days of testing.

            I have problem from start, when I activated plugin. I have shown rating stars, but didn’t have possibility to vote. First problem, was path in gd-star-config.php file, you should leave this line like this: define(’STARRATING_LOG_PATH’, dirname(__FILE__).’/debug.txt’); and make debug.txt file really writtable.

            Problem with voting was because I’ve use ooold version of another JS framework – scriptaculous. I’ve use prototype.js and effects.js (beta version) for some tab effects in WP theme that I develop. And that beta version of effects.js was the main problem for my problem with Milan’s GD Star Rating plugin.

            My advice – don’t use beta version of any JS code, and keep up-to-date with jQuery, or Scriptaculous framework. Install Firebug – really can help you to find source of problems.

            Milan, keep up with good work on GD Star Rating, really good plugin, I will recommend it, and put your badge on my site when I finish it.

            I’m happy now :)

            GD Star Rating
            loading...

Trackbacks/Pingbacks

  1. Dev4Press » GD Star Rating 1.1.9.1 - April 16, 2009

    [...] http://www.gdstarrating.com/2009/04/16/gd-star-rating-1191/ VN:F [1.1.9_527]please wait…Rating: 0.0/10 (0 votes cast) Share and Enjoy: [...]

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.