论坛首页快速登陆 for DZ5.5

上一篇 / 下一篇  2007-03-16 14:45:33

查看( 3460 ) / 评论( 76 )
这个是根据官方的5.5技术说明文档来修改的,
在我的论坛已经实现快速登陆,刚登陆论坛时有朋友向我要这个方法,现在提供给大家。
演示地址浙江科技学院和山论坛:http://www.h3bbs.com

打开\templates\default\discuz.htm

找到:

CODE:


<!--{if !empty($advlist['text'])}-->
<div style="clear: both; margin-top: 5px;">
上面加入

CODE:


<!--{if $discuz_user}--><!--{else}-->
<table border="0" class="tableborder" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="98%">
<tr bgcolor="{ALTBG1}">
    <td width="40%">
<form method="post" action="logging.php?action=login">
   <input type="hidden" name="referer" value="index.php">
   用户名:<input type="text" name="username">
   密码:<input type="password" name="password">
   <input type="submit" name="loginsubmit" value="登录论坛">   
   <input type="button" value="注册新用户" ōnclick="javascrīpt: this.form.action='register.php';this.form.submit();">
   <input type="button" value="忘记密码" ōnclick="javascrīpt: this.form.action='/member.php?action=lostpasswd';this.form.submit();">
</form>

</td>
  </tr>
</table>
<!--{/if}-->


快速登陆.jpg

TAG:

我来说两句

(可选)

Open Toolbar