模块说明
用户可以通过发表内容,评论,投票等获得积分 地址:​​​http://drupal.org/project/Userpoints​用户权限

  • admin userpoints (管理积分)
  • view userpoints (查看用户积分)

模块设置
1、Transaction status (交易状态、获得方式)
2、Points branding (积分名称)
2.1、Word to use in the interface for the upper case plural word Points (大写积分复数的名称)
2.2、Word to use in the interface for the lower case plural word points (小写积分复数的名称)
2.3、Word to use in the interface for the lower case singular word point (小写积分单数的名称)
2.4、Word to use for the uncategorized category (未分类名称)
3、Points expiration (积分到期)
3.1、Expire points after (积分到期)
3.2、Expire points on this date (积分到期日期)
3.3、Expiration entry description (到期说明)
4、Messages (消息)
4.1、Display message (显示消息)
5、Report Settings (报告设定)
5.1、Transactions per page (每页数量)
5.2、Display zero point users (显示零积分用户)
5.3、Users per page (每页用户数量)
6、Points Categorization (点数分类)
7、Points for basic events (基础事件积分)
 
另外,该模块还可能用到 ​​​userpoints Nodes and Comments​​​ ​​contributed modules​​​  ​​Userpoints Voting API​​ 等来做为扩展




​userpoints​​模块是一个用于处理用户积分的模块,可以通过其他模块的结合使用,进行用户积分的设置,如用户发表文章为多少个积分,发表评论为多少个积分,邀请其他用户为多少个积分,还可以对积分进行赠送.当然这些功能是要和其他模块相结合来使用,或者使用userpoints的API进行调用.

与userpoints相关的模块:

在userpoints中,提供了几个API函数还是比较有用的,官方文档在​​这里​

userpoints_get_current_points($uid = NULL, $tid = NULL);得到指定用户指定分类下的积分

userpoints_get_max_points($uid = NULL, $tid = NULL); 得到指定用户指定分类下的最大积分

userpoints_get_vid() 得到分类

userpoints_get_default_tid() 得到默认的term

userpoints_get_categories() 得到所有的类别

userpoints_get_default_expiry_date() 过期日期