用Drupal做SNS需要的模塊

最近我搜索了一下,似乎Drupal很適合做SNS,當然,要藉助無儘可能的社區組件了。先列一個單子,看看能不能做出來。

可用組件:
用戶訂閱,更新通知:Watcher,Comment Notify
用戶積分核心:User Points,
用戶積分擴展:User Points Contributed,User points Nodes and Comments,User Points Voting API,Userpoints Karma,Userpoints Login,User Points User Picture
投票:Fivestar,Vote Up/Down,
收藏:Favorite Nodes
Tag:Community Tags
獎章:User Badges
生日:Birthdays
個人頁面:Author Pane,Profile Setup
關係:User Relationships
用戶組:Organic groups
臭味相投:Affinity
邀請:Invite
必要組件:
用戶投票接口:Voting API
列表增強:Views
用戶嚮導:Pageroute
內容增強:CCK,Token
功能增強:Rules
希望Drupal就像Lego一樣,能幫拼出我心中的圖樣
 

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相關的模塊:
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() 過期日期
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章