用戶積分擴展:User Points Contributed,User points Nodes and Comments,User Points Voting API,Userpoints Karma,Userpoints Login,User Points User Picture
模塊說明
用戶權限
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相關的模塊:
contributed module這個功能最多,有很多個模塊相結合而成,如贈送積分,發表文章得積分等
Nodes and comments
Userpoints Node Action
Kudos
Vote Up/Down
Simple Karma
Referral
Node vote
Affilates
Buddy List
Userpoints Login
User Points Voting API
User Points Top Contributors
Userpoints Store Credit
Userpoints Ubercart
Userpoints Ubercart discount
Userpoints Pay per view
Userpoints User Picture
Migrate extras
在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() 過期日期