
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.
loading...



April 16, 2009
at 10:53 PM
Direct link
How do i display the multi average in a post?
loading...
April 16, 2009
at 11:10 PM
Direct link
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.
loading...
April 16, 2009
at 11:28 PM
Direct link
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()
loading...
April 16, 2009
at 11:33 PM
Direct link
You need to update to 1.1.9.1.
loading...
April 16, 2009
at 11:35 PM
Direct link
yes.. i just find it.. sorry for my stupid complain
loading...
April 16, 2009
at 11:12 PM
Direct link
How to upgrade to this version?
Usually you can see that your plugin has an update, but not this time.
loading...
April 16, 2009
at 11:18 PM
Direct link
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.
loading...
April 16, 2009
at 11:17 PM
Direct link
Unbelieveble how a fantastic FREE plugin has a fantastic FREE support! You deserve all prosperity in the world MillaN. Congratulations.
loading...
April 17, 2009
at 2:50 AM
Direct link
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 ?
loading...
April 17, 2009
at 4:28 AM
Direct link
I fixed it , by downgrading to 1.1.7 , I’m very happy with this edition as it’s most stable for me
loading...
April 17, 2009
at 9:54 AM
Direct link
I will try to see what the problem could be, because I don’t get the warning anymore.
loading...
April 17, 2009
at 11:59 AM
Direct link
I can reproduce this problem when i use the average multi rating… this happens when determined post has no votes yet!
loading...
April 17, 2009
at 12:03 PM
Direct link
I will investigate this further.
loading...
April 17, 2009
at 3:40 PM
Direct link
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.
loading...
April 17, 2009
at 9:57 AM
Direct link
Can you please check if the database tables for multi ratings are created correctly? That’s maybe the problem.
loading...
April 20, 2009
at 7:34 AM
Direct link
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
loading...
April 20, 2009
at 9:49 AM
Direct link
Thanx for the report. This is now also fixed.
loading...
April 21, 2009
at 5:30 AM
Direct link
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!
loading...
April 21, 2009
at 9:21 AM
Direct link
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.
loading...
April 23, 2009
at 6:42 AM
Direct link
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.
loading...
April 23, 2009
at 9:59 AM
Direct link
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.
loading...
April 21, 2009
at 10:31 PM
Direct link
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.
loading...
April 21, 2009
at 11:05 PM
Direct link
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.
loading...
April 23, 2009
at 6:42 AM
Direct link
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!
loading...
April 21, 2009
at 11:30 PM
Direct link
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!
loading...
April 21, 2009
at 11:36 PM
Direct link
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.
loading...
April 22, 2009
at 9:16 AM
Direct link
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…
loading...
April 22, 2009
at 9:59 AM
Direct link
You need to enable debug into file through settings panel, debug tab.
loading...
April 22, 2009
at 11:00 AM
Direct link
Already done that…
loading...
April 22, 2009
at 11:07 AM
Direct link
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.
loading...
April 22, 2009
at 11:50 AM
Direct link
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…
loading...
April 22, 2009
at 10:44 PM
Direct link
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
loading...