Discuz!NT官方社区

首页 » Discuz!NT开发与测试 » Discuz!NT插件开发 » DNT首页快速登录 for Discuz!NT 1.0正式版(SQL/ACCESS通用)
wellknow - 2007-4-11 1:12:00
DNT首页快速登录 for Discuz!NT 1.0正式版(SQL/ACCESS通用)

安装:



0、以下操作可能有“覆盖”过程,如果您的相关文件有修改,请先自行备份!!!

1、解压包中的index.htm文件到网站\templates\default目录里

2、重新生成模板令其生效

3、实现代码:


引用:

<div class="maintable" align="center"><br />
<%if {userid}==-1%>
  <form id="loginform" name="loginform" method="post" action="login.aspx">
  <b>用户:</b><input name="username" type="text" id="username" size="10" class="colorblur"  />
  <b>密码:</b><input name="password" type="password" id="password" size="10" class="colorblur"  />
  <b>验证码:</b><span class="altbg2 smalltext"><%template _vcode%></span>
  <b>保存登录</b>
  <input type="radio" name="expires" value="5256000" /><label>是</label>
  <input type="radio" name="expires" value="0" checked="checked" /><label>不</label>
  <select name="templateid">
    <option value="0">默认风格</option>
  </select>
  <input name="login" type="submit" id="login" value="登录"  class="button" />
  <input name="cancel" type="button" id="cancel2" value="取消"  class="button" />
  <a href="register.aspx" title="立即注册 (ALT + R)"><b>轻松注册</b></a>/<a href="getpassword.aspx" title="忘记密码"><b>忘记密码?</b></a> </td>
  </form>
<%/if%>
</div>


也可以把这段代码放到其他相关的模板文件里



作者:Dili

演示:
http://bbs.hotzs.com/

下载:

附件: index.rar (2007-4-11 1:12:11, 5.51 K)
该附件被下载次数 416

wellknow - 2007-4-11 1:15:00
如果后台没有指定验证码登录,就把这行代码去掉:

<b>验证码:</b><span class="altbg2 smalltext"><%template _vcode%></span>
andy0371 - 2007-4-11 8:21:00
谢谢,用上!
jianlau - 2007-4-11 10:08:00
谢谢!很实用!
melink - 2007-4-11 12:51:00
正在找呢,谢谢LZ
独步夕阳 - 2007-4-13 12:47:00
直接放进去就行了吗?下载先试用!
独步夕阳 - 2007-4-13 12:58:00
<div class="maintable" align="center"><br />
<%if {userid}==-1%>
  <form id="loginform" name="loginform" method="post" action="login.aspx">
  <b>用户:</b><input name="username" type="text" id="username" size="10" class="colorblur"  />
  <b>密码:</b><input name="password" type="password" id="password" size="10" class="colorblur"  />
  <b>验证码:</b><span class="altbg2 smalltext"><%template _vcode%></span>
  <b>保存登录</b>
  <input type="radio" name="expires" value="5256000" /><label>是</label>
  <input type="radio" name="expires" value="0" checked="checked" /><label>不</label>
  <select name="templateid">
    <option value="0">默认风格</option>
  </select>
  <input name="login" type="submit" id="login" value="登录"  class="button" />
  <input name="cancel" type="button" id="cancel2" value="取消"  class="button" />
  <a href="register.aspx" title="立即注册 (ALT + R)"><b>轻松注册</b></a>/<a href="getpassword.aspx" title="忘记密码"><b>忘记密码?</b></a> </td>
  </form>
<%/if%>
</div>

这段代码放在哪里?是否是index.aspx里呢?
独步夕阳 - 2007-4-13 13:01:00
没搞成功!
wellknow - 2007-4-14 18:05:00
2、重新生成模板令其生效

这个操作了?
独步夕阳 - 2007-4-14 21:27:00
后台更新了,但没有成功呀!
wellknow - 2007-4-15 0:01:00
后台更新什么?
击竹摇林 - 2007-4-15 16:25:00
偶也是一样弄开不得啊
独步夕阳 - 2007-4-15 23:57:00
生成模板:  Default 降低CPU占用 提 交
wellknow - 2007-6-12 16:45:00
好在有及时发布,现在又自己找上来了.:lol
cfanscn - 2007-6-15 22:16:00
我找到覆盖不成功的原因了!!
原来是他的后缀名是html,实际里面是htm
把他改成htm就可以了!!
lily7787 - 2007-8-28 5:19:00
建议官方加入这个就行了,是不?
SeasMood - 2007-9-3 2:10:00
蛮实用的插件, 谢谢.
firedlove - 2008-2-17 4:00:00
:D :D :D
阳光怒射 - 2008-7-6 21:59:00
:?
1
查看完整版本: DNT首页快速登录 for Discuz!NT 1.0正式版(SQL/ACCESS通用)