|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
打开:\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' => '性别未填写,请返回重新填写。',
复制代码
最后进入后台更新缓存就可以了
如果要和附件图片一样的效果还要做下面这一步(本站就不放图片了):
打开:css_script.htm
适当调整下边这个变量的参数即可:此帖发布在discuz!官方的地址:http://www.discuz.net/thread-1196189-1-1.html |
|