Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is Drupal 8 release.
Following important changes:
- Badges are now entity
- Role and Badge relations are mapped in Badge entity's field.
- User profile have field to manage badge and perform various operations related to badges.
- Badges have have types like we have for node types.
Special thanks to chx for helping in architecture, migration script and test cases.
Creating a new dev branch as I think our last couple of commits made some big changes to the 6.x-1.x version like Rules integration. Not really planning on any other major development on this branch other than bug fixes.
Releasing a new production version based on the 7.x-3.x version. This version fixes a minor bug in user_badges_get_badges #2172787: user_badges_get_badges('select') doesn't return anything. I am also releasing this version so soon because the other production versions where mis-tagged. They were all based on the 7.x-3.x branch, but were incorrectly tagged as 7.x-1.0, 7.x-2.0, and 7.x-2.1.
This is the production version based on some new bug fixes to the 7.x-3.x-dev version. This should have been properly titled 7.x-3.1.
Fixed a bug in user_badges_user_save() function where $type was not used to add or remove a badge causing errors for anyone calling this function from outside. Issue #2075289: Errors when adding or removing a role/badge.
This version is based on the 6.x-1.x branch. Have integrated Rules integration in this version and also taken care of some major bugs and unwanted code in user_badges.module.
This is based on the 7.x-3.x-dev version. This version of user_badges has Rules Integration and gets rid of some major and minor errors. It also gives an option to use a drop-down select to select badges instead of the autocomplete.
This is the version that we will support and recommend.
The following bug fixes/features were added:
In user_badges.admin.inc:
Modified submit button code in user_badges_badgelist_form, submit button was not displaying as it was not properly defined.
Modified pager code in user_badges_badgelist form, pager was not working with the previous code.
Modified the rendering of the weight row in theme_user_badges_badgelist_form, the weights were displaying as labels with previous code, thus we couldn't edit it.
Modified the logic of rendering the pager in the theme_user_badges_badgelist_form, pager was not rendering with previous code.
Added code to render rest of the form elements in the theme_user_badges_badgelist_form function, as the submit function was not being called because the button element was not being rendered in theme.
In user_badges.module file:
Took out 'whoelse' menu code from hook_menu.
Took out menu for user/%user/edit/badges from hook_menu, instead added two new function to add the user/%user/edit/badges menu in the user profile.
Modified user_badges_badge_autocomplete function to include the badge name.
#357870 - gif files allowed through the validator.
#371899 - Fixed reference to ecommerce product module. Fixed the ecommerce admin form and changed the hook_menu implementation of it in user_badges_products.module.
Fixed the descriptions in the install file.
Moved the products install schema to the products install file.
Added variable removal to uninstall hook.
Code formatting corrections
Improved views support with better badge display and many new fields,filters, arguments and sorts.
Note: This release of User Badges for Drupal 5.x will cause an update error for some. If you see a notice about a primary key already existing when you perform an update, it is safe to ignore it.
The development version of User badges, compatible with Drupal 5. As any development version, exercise caution in its use.
Compared to 4.7.x-1.x-dev, it has no new features.