Userpoints (用户积分)

模块说明
用户可以通过发表内容,评论,投票等获得积分 地址: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() 过期日期

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值