1 頁 (共 1 頁)

[外掛] 會員推薦人 Memember Referral(已重新更新)

發表於 : 2006-05-21 10:54
jwxinst
前言:

在竹貓找到的是2003年中發佈的, 而作者最後的是 2.0.17c
因為怕竹貓找到的可能跟2.0.20的代碼差異嚴重, 所以我在作者網站裡找到再翻譯

但請放心,這個外掛所需要改動找尋的代碼一律都可以完整地在2.0.21中找到

2006年7月1日更新: 已經新增 BIG-5語系, 並重新發佈 UTF-8

相關外掛討論 (竹貓星球):
http://www.phpbb-tw.net/phpbb/viewtopic.php?t=44262
外掛: 會員推薦人模組2.0.17c

外掛描述
此外掛主要是讓由已註冊之會員以此模組新增的一種獨特的註

冊連結讓新會員加入你的論壇,而這些連絡會記錄是由誰推薦加入而得到推薦人分數。
在會員資料裡可以檢視到推薦人總數。每個被這位會員所推薦的新會員也會被記

錄在推薦人會員的個人資料裡的推薦清單中/,包括加入時間。推薦人分數將會被記錄加入排行榜。


代碼: 選擇全部

## easymod compliant
########################################################################################################
##  MOD Title: Referral MOD System
##  MOD Author: AbelaJohnB < support@phpbb2mods.com > (phpBB2mods.Com) http://www.phpbb2mods.com/
##  
##  MOD Description: This phpBB2 MODification will allow your members to have a link within their profile
##  details that will allow them to refer new members to your forum. Also included within their profile
##  detail page is a list of how many people they have referred to your forums. Also included is a new
##  page that lists the "Top X Referrers", with the "X" being defineable within the ACP.
##  Within your forum ACP is a section for this phpBB2 MODification, including:
##  A very detailed page that tells you about this MODification, a Version Check System for both 
##  this MODification as well as phpBB itself, so you can know instantly if you are using the latest
##  version of this phpBB2 MODification! Also within the About section is a detailed 'History Report'
##  Within the Configuation Section of the ACP is the ability to Enable or Disable the MODification,
##  Set a default user_id for new member registations for people who join and are not referred, and
##  a field for defining how many people to list in the "Top X Referers" page mentioned above.
##  Lastly, there is a "Log" of all members who have joined your forum that have been referred by
##  another member of your forums! This "Log" includes the username and user_id of both the new user
##  and the user who referred them. Additionally a date/time stamp that the new member registered at!
##  
##  MOD Version: 2.0.17.c
##  
##  Installation Level: Advanced
##  Installation Time: 25 Minutes
##  Files To Edit: 
##          viewtopic.php
##          includes/usercp_register.php
##          includes/constants.php
##          includes/page_header.php
##          includes/usercp_viewprofile.php
##          language/lang_english/lang_main.php
##          templates/subSilver/subSilver.cfg
##          templates/subSilver/profile_view_body.tpl
##          templates/subSilver/viewtopic_body.tpl
##
##  Included Files: N/A
##
########################################################################################################
##  Author Notes: 
##  
##  Copyright © John B. Abela, <support@phpbb2mods.com> http://www.phpbb2mods.com/
##
##  For support my phpBB2 MODifications please visit: http://www.phpBB2mods.Com/ as this is where I
##  offer support of my MODifications so you will get a direct answer from me there :)
##  
##  Per the Spirit of GNU/GPL and International Copyright Laws, if you intend to take my work and
##  modify it, you *must* retain my above Copyright within your primary install file. This does not mean
##  you have to ask me to -use- this MOD, but that does mean you cannot -distribute- this MOD, in
##  modified, or non-modified format, without my copyright left intact and As-Is. 
##  
##  This phpBB MODifications is released under the GNU/GPL License. A copy of the GNU/GPL License
##  should have been included with the distribution package that accompanies this install.txt file.
##  If it was not, chances are you are using a version of this MOD that very likely has been edited
##  by someone other than myself, and thus, perhaps, a greater security risk to you and your server!
##  Please make sure you download this phpBB MODification from http://www.phpbb2mods.com/
##  
##  I maintain a Mailing List for email notification of any new/updated MOD's I release! Just stop by
##  my forum, register, and join the usersgroup section of http://www.phpbb2mods.com/ to join!
##  
########################################################################################################
##  MOD History: 
##  
##    2005-08-29 - Version 2.0.17.c
##       - Redesigned Top Referrals
##
##    2005-08-11 - Version 2.0.17.b
##       - Updated SQL statement to resolve reported issues.
##
##    2005-08-07 - Version 2.0.17.a
##       - Private-Release For phpBB Version 2.0.17
##       - A new SQL insert statement has been added to the required SQL dump.
##       - Added HTML Comments To Help Debugging
安裝方法:

1. 執行SQL
2. 上傳 [UPLOAD] Inculded files
3. 修改[EDITED] files

#
#-----[ SQL ]------------------------------------------

代碼: 選擇全部

CREATE TABLE phpbb_referral (
  referral_id mediumint(8) unsigned NOT NULL auto_increment,
  ruid varchar(7) NOT NULL default '0',
  nuid varchar(7) NOT NULL default '0',
  referral_time varchar(10) NOT NULL default '',
  KEY referraler_id(referral_id)
) TYPE=MyISAM;
INSERT INTO phpbb_referral VALUES (1, 2, 2, '1023594440');
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('referral_id', '-1');
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('referral_enable', '1');
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('referral_top_limit', '5');
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('referral_version', '2.0.17.b');
正體中文語系化

1. language/lang_chinese_traditional_taiwan/lang_main.php

代碼: 選擇全部

#
#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// START - REFERRAL MOD - AbelaJohnB
//
$lang['Header_Top_Referrals'] = "最多推薦會員";
//
// END - REFERRAL MOD - AbelaJohnB
//
2. lang_referral.php及完整包
UTF-8 正體中文語系化下載
(7月1日更新+新增)
建議從這裡下載:
http://files.filefront.com/utf8__referr ... einfo.html

BIG-5 正體中文語系化下載
(7月1日更新+新增)
http://files.filefront.com/big5__referr ... einfo.html



或者從作者裡下載 (沒有中文化)
http://www.phpbb2mods.com/downloads/ref ... .c_206.zip