本帖最后由 体无完肤 于 2009-9-7 16:26 编辑
支持站点:http://www.efangbbs.com
支持站点:http://bbs.7drc.com
演示网站:http://www.efangbbs.com涉及修改文件:register.php、templates\default\register.htm
打开register.php,查找:-
- $db->query("REPLACE INTO {$tablepre}memberfields (uid, authstr) VALUES ('$uid', '$authstr')");
复制代码 替换为:-
- $db->query("REPLACE INTO {$tablepre}memberfields (uid, qq, authstr) VALUES ('$uid', '$newqq', '$authstr')");
复制代码 继续查找:-
- $db->query("INSERT INTO {$tablepre}members (uid, username, password, secques, adminid, groupid, regip, regdate, lastvisit, lastactivity, posts, credits, extcredits1, extcredits2, extcredits3, extcredits4, extcredits5, extcredits6, extcredits7, extcredits8, email, showemail, timeoffset, invisible, newsletter)
- VALUES ('$uid', '$username', '$password', '$secques', '0', '$groupinfo[groupid]', '$onlineip', '$timestamp', '$timestamp', '$timestamp', '0', $initcredits, '$email', '0', '9999', '$invisiblenew', '1')");
复制代码 替换为:-
- $db->query("INSERT INTO {$tablepre}members (uid, username, password, secques, adminid, groupid, regip, regdate, lastvisit, lastactivity, posts, credits, extcredits1, extcredits2, extcredits3, extcredits4, extcredits5, extcredits6, extcredits7, extcredits8, email, showemail, timeoffset, invisible, newsletter, gender, bday)
- VALUES ('$uid', '$username', '$password', '$secques', '0', '$groupinfo[groupid]', '$onlineip', '$timestamp', '$timestamp', '$timestamp', '0', $initcredits, '$email', '0', '9999', '$invisiblenew', '1', '$newgender', '$bday')");
复制代码 打开templates\default\register.htm,查找:- <label><em>{lang email}:</em><input type="text" name="email" autocomplete="off" size="25" id="email" onBlur="checkemail()" tabindex="1" class="txt" /> *</label>
复制代码 下面加:- <label><em>QQ:</em><input type="text" id="newqq" name="newqq" autocomplete="off" size="25" maxlength="15" value="" tabindex="23" class="txt" /> *</label>
- <label><em>性别:</em><input type="radio" name="newgender" value="1" tabindex="17" /> {lang male} <input type="radio" name="newgender" value="2" tabindex="18" /> {lang female} <font color="#006699"> 请选择性别</font> *</label>
- <script type="text/javascript" src="include/js/calendar.js?{VERHASH}"></script>
- <label><em>生日:</em><input type="text" id="bday" name="bday" size="25" value="" onclick="InFloat='floatlayout_register';showcalendar(event, this, true)"" tabindex="25" class="txt" /> *</label>
复制代码 更新缓存,OK!
|