Share this:

Technorati ReddIt Favorites

Core of GD Star Rating 2.0 Completed

Good news. Core for GD Star Rating 2.o is done (more or less). Next step now will be to add rating types classes, make administration interface and implement everything for the front-end. Here you will find more info about how the new plugin will be organized and some other core stuff.

Plugin will store settings for site and network (for website running in multisite/network mode). Settings will be using variation of model developed for xScape themes. In new GDSR there are much less settings that are general for the whole plugin. Most of the settings are now part of the new rating classes (more on that later). To ensure better integrability, GDSR will use different loading method for the plugin and it will be more based on actions and filters than before. I thing that GDSR 2.0 will have 10 times more internal filters/actions than current versions.

One major problem with GDSR 1.x is that it had post/page/comment ratings implemented. For post/page you could use single and multi stars ratings and thumbs ratings, for comments you could use singe stars and thumbs ratings. With GDSR 2.0 many things will be implemented in a base class, and that can be used to create new rating types. By default plugin will have rating classes for: post, page, user and comments. Each class can be on site level, on network level on or both levels. This will allow implementing BuddyPress specific ratings. Each rating code will be in 4 files: init (settings for a rating type), load (main class with control over the rating type), single (settings to override specific settings for each rating element) and admin (for interface control). Plugin will allow adding new rating classes. Base rating classes is defined as abstract, and use interface to layout functions needed for each class. Saying that, complete plugin code is using PHP5 class model (all with private/public/static/abstract/interface goodness) and there will be no way to run plugin on PHP4. Believe it or not I got more than 20 requests to make plugin PHP4 compatible.

As for the rating models, GDSR 2.0 will implement single and multi star ratings, single and multi (new one!) thumbs ratings. And for each one you can have review rating (author of the post ratings existing right now also).

That’s it for now, more info coming soon.

3 Responses to “Core of GD Star Rating 2.0 Completed”

  1. Patrick | October 25, 2010 at 02:18

    Great; really looking forward to this release!

  2. Soverato News | December 13, 2010 at 20:01

    Any news about release date? Data from previuos version will be lost?

    • MillaN | December 13, 2010 at 20:11

      As I said before, GD Star Rating 2.0 is in works, but due to my many other projects, GDSR is not exactly near the top of the list. But, good news is that I am working on interface right now, and I will showcase new pages by the end of this month. I am still hopeful to have public alpha version by the end of January.

      Plugin will not be compatible with old one. But, there will be a tool for importing old data to new db structures.

Leave a Reply

Follow us on Twitter

Date Archives

Blog Archives

Social Networks

Google Plus Profile Subscribe to RSS feed LinkedIn Profile Follow me on Pinterest Watch our Youtube Videos Find us on Flickr

Feedburner Feedburner updates

Sign up to receive news from this website to your email.

Recent Blog Posts

Dev4Press on YouTube

Share This

Technorati ReddIt Favorites