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



April 22, 2009
at 11:46 PM
Direct link
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?
loading...
April 23, 2009
at 12:00 AM
Direct link
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.
loading...
April 23, 2009
at 3:30 AM
Direct link
Ah! I will have to spring for the PHP 5 on my host. All good. It’s all the excuse I need, really.
loading...
April 23, 2009
at 6:32 AM
Direct link
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…
loading...
April 23, 2009
at 9:58 AM
Direct link
This is in works, and will be available in 1.2.2 or 1.2.3.
loading...
April 23, 2009
at 11:32 AM
Direct link
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
loading...
April 23, 2009
at 12:04 PM
Direct link
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.
loading...
April 23, 2009
at 12:31 PM
Direct link
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.
loading...
April 23, 2009
at 12:41 PM
Direct link
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.
loading...
April 23, 2009
at 1:23 PM
Direct link
Just to let you know …… no errors, nothing, all super
love the multis
loading...
April 23, 2009
at 1:24 PM
Direct link
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?
loading...
April 23, 2009
at 5:24 PM
Direct link
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.
loading...
April 23, 2009
at 5:50 PM
Direct link
Second thing: auto inserted article ratings producing strange placeholder texts in article archives.
loading...
April 23, 2009
at 9:16 PM
Direct link
I will check this.
loading...
April 23, 2009
at 7:55 PM
Direct link
Hi Milan, sorry got a bug. i cant create multisets anymore
loading...
April 23, 2009
at 9:17 PM
Direct link
Sorry about that, fix will be in new version in a few days.
loading...
April 24, 2009
at 12:24 AM
Direct link
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.
loading...
April 24, 2009
at 12:41 AM
Direct link
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.
loading...
April 24, 2009
at 12:31 AM
Direct link
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.
loading...
April 24, 2009
at 12:41 AM
Direct link
Thanx, I didn’t noticed it.
loading...
April 24, 2009
at 4:35 AM
Direct link
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.
loading...
April 24, 2009
at 9:26 AM
Direct link
I really wish we could change the review text. This is so important to show people how our authors rate a post.
loading...
April 24, 2009
at 9:57 AM
Direct link
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.
loading...
April 25, 2009
at 9:24 PM
Direct link
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
loading...
April 25, 2009
at 9:26 PM
Direct link
Well, this will be all corrected in 1.2.2 when I add review templates.
loading...
April 25, 2009
at 10:01 PM
Direct link
So from I can see the T2 Template does not currently interact with any of the custom PHP tags is that correct?
loading...
April 24, 2009
at 5:42 PM
Direct link
Is there a facility to duplicate the overall Multi rating average else where on the page, in a seperate element?
loading...
April 24, 2009
at 8:55 PM
Direct link
There are many custom functions for this type of things. Check the gd-star-custom.php file.
loading...
April 24, 2009
at 8:30 PM
Direct link
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.
loading...
April 24, 2009
at 8:55 PM
Direct link
Use Firebug to see if there are any javascript errors. I have repeated this milion times, some Firefox extensions can break javascript.
loading...
April 25, 2009
at 2:11 AM
Direct link
Great plugin. I’m looking for plugin that user must leave a comment before the over all rating function enabled to rate that post.
loading...
April 27, 2009
at 4:27 PM
Direct link
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
loading...
April 27, 2009
at 5:15 PM
Direct link
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.
loading...
April 29, 2009
at 3:01 PM
Direct link
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?
loading...
April 29, 2009
at 4:38 PM
Direct link
Display is controled by templates, if you don’t need something shown, create new template.
loading...
April 30, 2009
at 8:51 PM
Direct link
Millan,
Sorry to keep bothing you but where can i get the code for the top rated psots widget?
loading...
May 13, 2009
at 8:49 PM
Direct link
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
loading...
May 13, 2009
at 8:56 PM
Direct link
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.
loading...
April 25, 2009
at 11:01 PM
Direct link
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.
loading...