Rating 2.x

Legacy documentation for Rating 2.x.

Version 2.3.4 (March 21, 2011)

  • Modified the default field length to 100 from 1.
  • Fixed a bug where performing an upgrade from Rating 2.3.2 to 2.3.3 could result in a MySQL error.
  • Fixed a bug where ratings could not be deleted by non-Super Admins with proper privileges.
  • Fixed a bug with pagination in the Rating CP area.
  • Fixed all instances of $_SERVER to $IN->AGENT in module code.

Version 2.3.3 - Build 20100323 (March 23, 2010)

  • Fixed a bug where errors would sometimes occur when trying to install Rating.

Version 2.3.3 (March 17, 2010)

  • Added checks to the upgrade routine to clean up any issues with the review/rating fields.
  • Modified code to make Rating compatible with PHP 5.3.
  • Modified queries to improve speed of the Rating Entries method.
  • Rewrote the update_stats() method to correct Stats issues.
  • Modified the restrictions against logged-in users submitting ratings. It no longer checks against IP addresses of logged in members.
  • Fixed a bug where the {overall_count} variable was being calculated incorrectly.
  • Fixed a bug where exp_rating_stats was getting the correct overall_count info, but exp_weblog_titles was not. Depending on where {overall_count} was used, the output could be incorrect.
  • Fixed a bug where Rating and Review columns didn't show on the data export.
  • Fixed a bug where an error message might show when using the first_rating feature.
  • Fixed a bug where individual form averages were calculated incorrectly when there was more than one numeric field.
  • Fixed a bug where any logged in member could delete a rating using the Rating:Delete function. Added permission settings in the Rating module CP.
  • Fixed the pagination query in Rating:Entries.

Version 2.3.2 (October 7, 2009)

NOTE: Be sure to follow the special updating instructions.

  • Modified the Orderby_Rating feature in Weblog:Entries to allow for orderby_rating="yes" and orderby="title" to give the same effect as orderby="rating|title".
  • Modified the "locked" status of the "rating"/"review" fields in the Rating module CP to permit editing of formatting and character limits.
  • Combined all 3 Rating extensions to make a single, unified extension.
  • Fixed a bug where closed ratings would improperly affect the update_stats routine the Stats output.

Version 2.3.1 (September 18, 2009)

  • Fixed a bug in update_stats() where PHP's max() would output an error if it was handed an empty array.
  • Fixed a bug where the Rating Export utility was not pulling data from the database.
  • Fixed bugs in the Maintenance() routine that caused stats to be incorrect if more than one form is used.
  • Fixed a bug where the precision="" parameter was being applied to variables that shouldn't.
  • Fixed a bug where emails were not being sent to addresses supplied in the notify="" parameter in Rating:Form.

Version 2.3.0 (August 24, 2009)

  • Added duplicate_check_guest_ip=“no” parameter for Rating:Form, Insert_Rating_Rev, and Rating_Review_Stats functions.
  • Added “rating_id” variable to notification templates.
  • Added check on upgrade, to ensure the “rating” and “review” fields exist.
  • Improved already_reviewed, not_already_reviewed, and prior_review_count behavior for logged-out users.
  • Modified Rating to now protect the “rating” and “review” fields as permanent default fields.
  • Modified Cookie/IP check on new rating submits.
  • Modified the default row limit in Ratings table to 50.
  • Modified Guest ratings to now show guests’s name (or GUEST) and e-mail address in Rating module CP.
  • Modified the “stars/bar/circles” variable pairs to be allowed to be used more than once per template.
  • Removed moderation-related code and “Moderate Ratings?“ preference in Rating module CP as the function no longer exists.
  • Fixed a bug where the Rating:Stats function would intermittantly display.
  • Fixed several bugs where the code contained “( )“ instead of “[ ]“.
  • Fixed several bugs where some areas of Rating were not PHP4 compatible.
  • Fixed pagination in Rating module CP so that sorting preferences are preserved from page to page.
  • Fixed a bug where Rating:Rankings did not correctly return the contents of the no_results conditional.
  • Fixed bug where “overall_count/sum/avg” variables did not factor in ANY numerical rating fields except the default ‘rating’ field.
  • Fixed a bug where the “timeframe_” variables in Rating:Rankings were not calculating properly.
  • Fixed a bug where the Maintenance method would not calculate count, sum, and avg columns correctly in exp_rating_stats.

Version 2.2.5 - Build 20090508 (May 8, 2009)

  • Fixed a bug that caused MySQL error when trying to delete weblog entries.
  • Fixed a bug that caused extra queries to be run in _mfields() if there are no custom member fields.

Version 2.2.5 (April 3, 2009)

  • Added “first_rating” variable and conditional for Rating:Form and Rating:Entries loops.
  • Added ability to filter by Member in the Ratings list in the Rating CP by clicking on the user’s name.
  • Fixed a bug where pagination for Rating:Entries failed after viewing any pages after the first.
  • Fixed a bug where Rating still looked for the default numerical rating field named “rating” if it was deleted.

Version 2.2.4 (February 23, 2009)

  • Added {if already_reviewed} and {if not_already_reviewed} conditionals to Rating:Entries and Rating:Rating_Rev_Stats functions.
  • Added allow_duplicates=“no” parameter to Rating:Insert_Rating_Rev function to prevent duplicate review ratings.
  • Added support for search:custom_field=“blah” parameter in Rating:Rankings.
  • Added support for multiple email addresses for notify=“” parameter.
  • Added a small correction to the update_stats() method for better stats in some circumstances.
  • Added an index to the ‘exp_rating_params’ database table.
  • Completely rewrote the Maintenance() method.
  • Changed Rating CP’s ‘Manage Entries” list to show the author’s current screen name and e-mail address rather than the values of those fields at the time the rating was submitted.
  • Changed behavior so that a logged-in user’s values are used for [name, email, url, location] if the corresponding form fields are empty.
  • Modified forms to no longer generate ‘name’ attributes to forms for XHTML validation. Added support for manual addition of ‘name’ attribute with ‘name’ parameter.
  • Fixed a bug that caused the cache to not be flushed properly after deleting a field.
  • Fixed a couple bugs in the admin and user notification routines.
  • Fixed a bug where the user would be redirected to a wrong URI if rating moderation was set to ‘on’.
  • Fixed a bug where error validation would output duplicate blank errors if ‘name’ and ‘email’ fields are required and left empty.
  • Fixed a bug that caused several “timeframe” variables to not parse.
  • Fixed a bug in the delete rating routine when deleting more than one rating simultaneously.
  • Fixed a bug where blank ratings could be submitted.

Version 2.2.3 (January 3, 2009)

  • Eliminated massive inefficiencies in some CP tables.
  • Eliminated massive inefficiencies with the rating deletion routine.
  • Eliminated a host of unnecessary DB updates that could drag down systems with lots of ratings.

Version 2.2.2 - Build 20081106 (November 6, 2008)

  • Improved duplicate rating detection logic for logged-in/logged-out users.

Version 2.2.2 (October 27, 2008)

  • Added Cookie and IP checks to allow_duplicates=“” parameter and {if not_duplicate} conditionals.
  • Revamped Rating Order Extension Readme/Instructions” for clarity.
  • Removed border=“0” from IMG code on Stars for XHTML validation.
  • Fixed a bug where variables like “overall_count” were affected by precision=“” parameter.
  • Fixed a bug where the anonymous=“” parameter was not behaving correctly.
  • Fixed a bug where the require_membership=“” parameter was not behaving correctly.
  • Fixed a bug where the allow_duplicates=“” parameter and {if not_duplicate} conditionals were not behaving correctly.

Version 2.2.1 (October 9, 2008)

  • Added {entry_id} and {url_title} variables for use in Notification templates.
  • Fixed a bug where the “return” parameter did not work.
  • Fixed an obscur upgrade bug in the CP.
  • Fixed a bug where Rating fields were not recognizing the formatting type.
  • Fixed a bug where duplicate “Default” notification templates were created in the CP.

Version 2.2.0 (August 29, 2008)

  • Added ability to order entries by total ratings received for Rating:Rankings.
  • Added “timeframe” parameter to Rating:Entries and Rating:Rankings loops.
  • Added ability to permanently delete ratings from the database via the front end using new Rating:Delete function.
  • Added Author data functions: Avatar, Photo, Signature.
  • Added conditional to Rating:Form for {if duplicate} / {if not_duplicate} show/display the rating form and or content based on whether the Member has rated already or not.
  • Added an extension to delete associated Rating Entries when a weblog entry is deleted.
  • Added NAME and EMAIL columns in CP list view of ratings.
  • Added {count} and {total_count} variables to Rating:Entries loop.
  • Added “owner_template” parameter to specify Notification Template for Author.
  • Changed Quarantine default vote count settings in Rating CP to “1” (from “0”).
  • Optimized Queries to Database for dramatic speed improvements.
  • Depreciated “Notification Emails” field in Rating Control Panel area. Replaced with “notify” parameter.
  • Fixed a bug where the “form_name” parameter did not filter entries for Rating:Rankings.
  • Fixed a bug where the “limit” parameter would return an incorrect number of results in some circumstances.
  • Fixed a bug where {bar_overall_avg} would display stars instead of the bar images.
  • Fixed a bug where users could Quarantine a particular Rating more than once.
  • Fixed a bug where orderby=“some_custom_rating_field” parameter did not work with Rating:Rankings.
  • Fixed a bug in the Rating_Rev_Stats function.
  • Fixed a bug where return parameter behaved incorrectly with subdomains.
  • Fixed a bug where User notifications would not work.
  • Fixed a bug where Admin Notifications would not work.
  • Fixed a bug where Author Notifications would not work.
  • Fixed a bug where Rating did not add a space to $sql after “exp_weblogs.weblog_id”.
  • Fixed a bug where using Rating:Quarantine_Allowed loop generated and error.
  • Fixed a bug where an error would occur while creating a new rating field when there are currently no fields in Rating CP.
  • Fixed a bug where Group Preferences tab would display each group as many times as you have sites (MSM).
  • Fixed a bug where Weblog Preferences would only list the Weblogs for the main site (MSM).
  • Fixed a bug where clicking an Weblog Entry ID of a Rating in the Rating CP would not filter down to ratings for that Entry ID.
  • Fixed a MySQL error in the CP under obscur conditons.
  • Fixed a bug where Rating Field order in Rating CP would affect Rating:Stat variables.