免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[教學] 首页快速登陆(带安全提问)包括去掉发帖按钮等

本帖最後由 491444322 於 2012-6-18 22:18 編輯

先提供大家修改方法:说明具体修改步骤,大家可以根据需要删减。

先看下我最终的效果 (去掉了发帖按钮,和 “你可以注册一个账号。。。。”这句话,感觉这两个都是累赘,没啥意义,根据自己需要了~~)



找到模板文件下的index_header.htm文件

1. 删除发帖按钮
查找并删除:
  1. <span class="postbtn"><a href="misc.php?action=nav" onclick="floatwin('open_nav', this.href, 600, 410);return false;">{lang send_posts}</a></span>
複製代碼
2. 删除“你可以注册一个账号”这句话
查找并删除:
  1. {lang home_welcome_guest}
複製代碼
3. 增加快速登陆 包含 安全提问
查找:
  1. <!--{if !$discuz_uid}-->
複製代碼
下面添加:
  1. <form id="loginform" method="post" action="logging.php?action=login" style="margin-top:7px;">
  2.         <input type="hidden" name="referer" value="index.php" />
  3.         <input type="text" name="username" value="用户名" onfocus="this.value=''" style="width:100px;height:16px;line-height:16px;padding-left:2px;font-size:12px; color:#666666;" />
  4.         <input type="password" name="password" value="1234567" onfocus="this.value=''" style="width:100px;height:16px;line-height:16px;padding-left:2px;font-size:12px; color:#666666;" />
  5.                
  6.         <select id="questionid" name="questionid"  onchange="if($('questionid').value > 0) {$('answer').style.display='';} else {$('answer').style.display='none';}">
  7.                 <option value="0">安全提问</option>
  8.                 <option value="1">母亲的名字</option>
  9.                 <option value="2">爷爷的名字</option>
  10.                 <option value="3">父亲出生的城市</option>
  11.                 <option value="4">您其中一位老师的名字</option>
  12.                 <option value="5">您个人计算机的型号</option>
  13.                 <option value="6">您最喜欢的餐馆名称</option>
  14.                 <option value="7">驾驶执照的最后四位数字</option>
  15.         < lect>
  16.         <input type="text" name="answer" id="answer" style="display:none;" autocomplete="off" class="txt" tabindex="1" style="width:100px;height:16px;line-height:16px;padding-left:2px;font-size:12px; color:#666666;" value="请输入答案" onfocus="this.value=''" />
  17.         <input type="submit" name="loginsubmit" value="登录论坛" />
  18.         
  19.         <a href="register.php" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder">注册</a>
  20.         <a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
  21.         <a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">找回密码</a>
  22. </form>
複製代碼
效果见本站:http://22.66rt.com/index.php

欢迎大家来学习交流。。

木有隐藏的功能,
真蛋疼

TOP

謝謝分享。ˊ ˇ ˋ

TOP

呵呵,其实不隐藏也许是好事喔~

TOP

都是很复杂的

TOP

看起來不錯,感謝大大的分享

TOP

帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了

TOP

帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了
1

評分人數

TOP

帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了帅呆了
1

評分人數

TOP

返回列表