|
第一个:注册时必填--QQ、性别、来自的代码修改方法
1、打开:\\templates\\default\\css_float.htm
查找:- .loginform { float: left; overflow: auto; margin-bottom: 10px; *margin-bottom: -10px; padding-top: 20px; width: 285px; height: 210px; border-right: 1px solid {CONTENTSEPARATE}; }
复制代码
替换成:- .loginform { float: left; overflow: auto; margin-bottom: 10px; *margin-bottom: -10px; padding-top: 20px; width: 270px; height: 210px; border-right: 1px solid {CONTENTSEPARATE}; }
复制代码
查找:- .loginform label em, .fsubmit em { float: left; width: 60px; }
复制代码
在下面添加:- .logininfo label em { float: left; width: 40px; }
复制代码
查找:- .logininfo { float: left; overflow: hidden; margin-left: 60px; width: 195px; height: 210px; }
复制代码 替换成:- .logininfo { float: left; overflow: hidden;margin-left: 10px; width: 265px; height: 210px; }
- .logininfo label { clear: both; overflow: hidden; display:block; margin: 0 0 10px; line-height: 22px; }
复制代码
打开:\\templates\\default\\register.htm
查找: - <div class="logininfo singleinfo">
复制代码 替换成:- <div class="logininfo regform">
- <label><em>QQ:</em><input type="text" id="newqq" name="newqq" autocomplete="off" size="25" maxlength="15" value="" tabindex="1" class="txt" /> *</label>
- <label><em>{lang location}:</em><input type="text" name="locationnew" id="locationnew" size="25" value="$member[location]" tabindex="1" class="txt" /> *</label>
- <label><em>{lang gender}:</em><input type="radio" name="newgender" value="1" tabindex="1" /> {lang male} <input type="radio" name="newgender" value="2" tabindex="1" /> {lang female} <font color="#006699"> 请选择性别</font> *</label>
复制代码
打开:register.php
查找:- if(!$password || $password != addslashes($password)) {
- showmessage(profile_passwd_illegal);
- }
复制代码 在下面添加:- if($newqq == ) {
- showmessage(profile_qq_illegal);
- }
- if($locationnew == ) {
- showmessage(profile_locationnew_illegal);
- }
- if(!($newgender == 1 || $newgender == 2)) {
- showmessage(profile_gendernew_invalid);
- }
复制代码
继续往下查找:- $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, pmsound, invisible, newsletter)
- VALUES ($uid, $username, $password, $secques, 0, $groupinfo[groupid], $onlineip, $timestamp, $timestamp, $timestamp, 0, $initcredits, $email, 0, 9999, 1, $invisiblenew, 1)");
- $db->query("REPLACE INTO {$tablepre}memberfields (uid, authstr $fieldadd1) VALUES ($uid, $authstr $fieldadd2)");
复制代码
替换成:- $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, pmsound, invisible, newsletter, gender)
- VALUES ($uid, $username, $password, $secques, 0, $groupinfo[groupid], $onlineip, $timestamp, $timestamp, $timestamp, 0, $initcredits, $email, 0, 9999, 1, $invisiblenew, 1, $newgender)");
- $db->query("REPLACE INTO {$tablepre}memberfields (uid, qq, location, authstr $fieldadd1) VALUES ($uid, $newqq, $locationnew, $authstr $fieldadd2)");
复制代码
打开:\\templates\\default\\messages.lang.php
查找:- profile_email_domain_illegal => Email 包含不可使用的邮箱域名,
复制代码 在下边加上:- profile_qq_illegal => QQ号码未填写,请返回重新填写。,
- profile_locationnew_illegal => 所在的地区未填写,请返回重新填写。,
- profile_gendernew_invalid => 性别未填写,请返回重新填写。,
复制代码
最后进入后台更新缓存就可以了
因为在DZ论坛里我找了好多好多!都是以前的修改方式,现在已经无法使用了。最后我还是套用了部分贴子综合了下才OK,那么以上的如果大家不会改的可以下载附件,然后直接覆盖即可!
如果漏了什么大家可以回复一下我马上改过来
如果只想选择其中一个只要删除相应代码就行了,代码表示:
newqq=QQ
location=来自
gender=性别
也可以直接更换代码文件也可以
第二个:实时更新,提示“欢迎最新会员XXX”,已修改原先BUG(点击最新会员不是他本人)
打开index.php,
查找:
|
|