看到有人要,改了一下。后台的就不多说了,自己去看吧。
根目录下profile.php
找到
if ($userdb['email']!=$proemail) {
include_once(D_P.'data/bbscache/dbreg.php');
$rg_emailcheck && Showmsg('pro_emailcheck');
下面添加
if(!in_array($groupid,array(3,4,5))){
Showmsg('对不起,您所在的用户组不允许
修改邮箱');
}
(3,4,5)是用户组id可自己增减
原帖:
http://www.woyaofb.net.cn/bbs/read.php?tid=10027
要使输入框变灰可在profile.htm修改,
在
后面,找到
复制代码- <th><input class="input" type="text" size="20" maxlength="75" name="proemail" value="$userdb[email]" />
|
修改为
<!--
EOT;
if(in_array($groupid,array(3,4,5))){print <<<EOT
-->
<th><input class="input" type="text" size="20" maxlength="75" name="proemail" value="$userdb[email]" />
<!--
EOT;
}else{print <<<EOT
-->
<th><input class="input" type="text" size="20" maxlength="75" name="proemail" value="$userdb[email]" disabled/>
<!--
EOT;
}print <<<EOT
-->
即可
效果:
可以修改
禁止修改

[ 此贴被野狼嗥在2008-06-12 09:41重新编辑 ]