[原创]怎样才可以使头衔不被14个字限制
①manage\user\usermodify.asp中:<td height="25" align=center>
<p>用户头衔:
</td>
<td height="25">
<input maxlength=[color=red]14[/color] name=form_usertitle size=36 class=fminpt value="<% if form_usertitle<>"" then response.write server.htmlencode(form_usertitle)%>">
</td>
②user\usermodify.asp中:
<td height="25" align=center>
<p>用户头衔:
</td>
<td height="25">
<input maxlength=[color=red]14[/color] name=form_usertitle size=36 class=fminpt value="<% if form_usertitle<>"" then response.write server.htmlencode(form_usertitle)%>">
</td>
③manage\user\inc\user_fun.asp中:
form_usertitle = lefttrue(trim(request("form_usertitle")),[color=red]14[/color])
④user\inc\user_fun.asp中:
if def_userenableusertitle = 1 and form_userlevel >= def_userusertitleneedlevel then form_usertitle = ubb_filtratebadwords(lefttrue(trim(request("form_usertitle")),[color=red]14[/color]))
将[color=red]14[/color]改为你想要的数值即可!
页:
[1]