You are here

README.txt in User Badges 7.4

------------------------------------------------------------------------------
  User Badges Module for Drupal
------------------------------------------------------------------------------

Description
===========
The User Badges module allows each user to be assigned 'badges', displayed as
a series of iconic images. A common use will probably be to display the badges
along with the user's information within forums, comments, or node postings.
These badges can be assigned individually by the administrator or attached to
a role so that, for example, all users in the 'admin' role will show the
'Administrator' badge which could display as any graphic.

Any badge can optionally be associated to a URL that links the image to a
description page. This URL has token support. If a user has more than one badge,
there is also a mechanism that allows administrators to only show the highest
level badges.

You can also set a special badge for blocked users and even override their 
role badges with this one.

User Badges can be used as a way to establish trust (in the same way as eBay's
star graphics) or as an incentive for users. They can also be a quick way to
identify moderators, administrators, or anyone with a given role.


Limitation
==========

The badge image library is not compatible with the "private" file download method,
but the module can still be used; just ignore the Images tab on the badge admin
screen.


Dependencies
============
In order to upload images via the user interface, user badges depends on:

* Upload

For dynamic badge sizing (optional):

* ImageCache

User Product Badges requires:

* ecommerce


Configuration
=============
Once the module is activated, go to Administer >> User management >> Badges
(admin/user/user_badges). Here you'll find three tabbed sections for User Badges.

* List - Lists all current badges and allows you to edit them.
* Add - Add a new badge.
* Images - The badge image library. If you already have images available, you
    can ignore this, but if you need a way to upload images for badges, this
    is the place.
* Roles - Here you can associate a badge with a given role so that all users
    with that role will display the selected badge.
* Settings - where you can set the global settings for the module
    (including whether or not to use ImageCache).
* Products - This tab is provided by the module User Product Badges. It allows 
    you to associate badges with products for the ecommerce module.


Permissions
===========
The module provides two permissions:

Users with the 'manage badges' access permission will have access to the 
administration pages for the module.

Users with the 'change badge assignments' access permission will be shown a 
'Badges' tab when visiting user profiles. This is the place to manually assign 
badges to users.


Display badges
==============
To display user badges in your theme use:

<?php
  if (module_exists('user_badges')) {
    print user_badges_for_uid($uid);
  }
?>

Note: $uid means 'a user id' here, not the literal use of $uid. Most people will use
the uid of the node ($node->uid) or comment ($comment->uid) author.

In Drupal (and theming), $node is a PHP object that represents the node, and $comment
represents the comment. They are not always both available in every template file, so
check the comments at the top of the file to see what is available. You may have
access to other uids (user ids), and in these cases you can replace $uid with that
value.


Current maintainer
===================
Richard Skinner (http://drupal.org/user/310635)


Former maintainers
==================
* Jeff Robbins (http://drupal.org/user/17190)
* Chad Phillips (http://drupal.org/user/22079)
* Heine Deelstra (http://drupal.org/user/17943)
* Nuno Veloso (http://drupal.org/user/80656)

File

README.txt
View source
  1. ------------------------------------------------------------------------------
  2. User Badges Module for Drupal
  3. ------------------------------------------------------------------------------
  4. Description
  5. ===========
  6. The User Badges module allows each user to be assigned 'badges', displayed as
  7. a series of iconic images. A common use will probably be to display the badges
  8. along with the user's information within forums, comments, or node postings.
  9. These badges can be assigned individually by the administrator or attached to
  10. a role so that, for example, all users in the 'admin' role will show the
  11. 'Administrator' badge which could display as any graphic.
  12. Any badge can optionally be associated to a URL that links the image to a
  13. description page. This URL has token support. If a user has more than one badge,
  14. there is also a mechanism that allows administrators to only show the highest
  15. level badges.
  16. You can also set a special badge for blocked users and even override their
  17. role badges with this one.
  18. User Badges can be used as a way to establish trust (in the same way as eBay's
  19. star graphics) or as an incentive for users. They can also be a quick way to
  20. identify moderators, administrators, or anyone with a given role.
  21. Limitation
  22. ==========
  23. The badge image library is not compatible with the "private" file download method,
  24. but the module can still be used; just ignore the Images tab on the badge admin
  25. screen.
  26. Dependencies
  27. ============
  28. In order to upload images via the user interface, user badges depends on:
  29. * Upload
  30. For dynamic badge sizing (optional):
  31. * ImageCache
  32. User Product Badges requires:
  33. * ecommerce
  34. Configuration
  35. =============
  36. Once the module is activated, go to Administer >> User management >> Badges
  37. (admin/user/user_badges). Here you'll find three tabbed sections for User Badges.
  38. * List - Lists all current badges and allows you to edit them.
  39. * Add - Add a new badge.
  40. * Images - The badge image library. If you already have images available, you
  41. can ignore this, but if you need a way to upload images for badges, this
  42. is the place.
  43. * Roles - Here you can associate a badge with a given role so that all users
  44. with that role will display the selected badge.
  45. * Settings - where you can set the global settings for the module
  46. (including whether or not to use ImageCache).
  47. * Products - This tab is provided by the module User Product Badges. It allows
  48. you to associate badges with products for the ecommerce module.
  49. Permissions
  50. ===========
  51. The module provides two permissions:
  52. Users with the 'manage badges' access permission will have access to the
  53. administration pages for the module.
  54. Users with the 'change badge assignments' access permission will be shown a
  55. 'Badges' tab when visiting user profiles. This is the place to manually assign
  56. badges to users.
  57. Display badges
  58. ==============
  59. To display user badges in your theme use:
  60. if (module_exists('user_badges')) {
  61. print user_badges_for_uid($uid);
  62. }
  63. ?>
  64. Note: $uid means 'a user id' here, not the literal use of $uid. Most people will use
  65. the uid of the node ($node->uid) or comment ($comment->uid) author.
  66. In Drupal (and theming), $node is a PHP object that represents the node, and $comment
  67. represents the comment. They are not always both available in every template file, so
  68. check the comments at the top of the file to see what is available. You may have
  69. access to other uids (user ids), and in these cases you can replace $uid with that
  70. value.
  71. Current maintainer
  72. ===================
  73. Richard Skinner (http://drupal.org/user/310635)
  74. Former maintainers
  75. ==================
  76. * Jeff Robbins (http://drupal.org/user/17190)
  77. * Chad Phillips (http://drupal.org/user/22079)
  78. * Heine Deelstra (http://drupal.org/user/17943)
  79. * Nuno Veloso (http://drupal.org/user/80656)