本人极度反感奇虎qihoo,既垃圾又难用!
但DZ官方为奇虎花的心思不少,毕竟有回扣吃嘛!!
现借用奇虎的论坛顶部搜索框实现:不调用奇虎用论坛自身搜索功能搜索本论坛资源,比奇虎好用N倍!
演示地址:http://bbs.abuy.cc/forum-7-1.html 右上角搜索框
修改文件:discuz.htm,forumdisplay.htm,viewthread.htm
修改办法:
1、后台关闭奇虎功能。
开始修改:
1、discuz.htm
找:- <!--{if $qihoo_status && $searchboxstatus}-->
- <div class="subtable" style="clear: both; width: {TABLEWIDTH}">
- <div class="right">
- <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
- <input type="hidden" name="searchsubmit" value="yes">
- <input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="30" class="input" style="{BGCODE};" onmouseover="this.focus();this.value='';this.onmouseover=null;">
- <select name="stype"><option value="" selected>{lang qihoo_search_filltext}</option><option value="1">{lang qihoo_search_title}</option><option value="2">{lang qihoo_search_author}</option></select>
- <input name="searchsubmit" class="button" type="submit" value="{lang search}">
- </form>
- </div>
- <!--{if $qihoo_links['keywords']}-->
- <span class="bold">{lang qihoo_hot_searches}</span>
- <!--{loop $qihoo_links['keywords'] $link}-->
- $link
- <!--{/loop}-->
- <!--{/if}-->
- </div>
- <div class="subtable" style="clear: both; width: {TABLEWIDTH}">
- <div class="right">
- <!--{if $customtopics}-->
- <span class="bold">{lang qihoo_custom_topics}</span> $customtopics [<a href="###" onclick="window.open('misc.php?action=customtopics', '', 'width=320,height=450,resizable=yes,scrollbars=yes');">{lang edit}</a>]
- <!--{/if}-->
- </div>
- <!--{if $qihoo_links['topics']}-->
- <span class="bold">{lang qihoo_topics}</span>
- <!--{loop $qihoo_links['topics'] $url}-->
- {$url}
- <!--{/loop}-->
- <!--{/if}-->
- </div>
- <!--{/if}-->
复制代码 用这个替换:- <!--{if $allowsearch}-->
- <div class="subtable" style="clear: both; width: {TABLEWIDTH}">
- <div class="right">
- <form method="post" action="search.php?searchsubmit=yes" onSubmit="this.target='_blank';">
- <input type="hidden" name="searchsubmit" value="yes">
- <input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
- <input name="searchsubmit" class="button" type="submit" value="{lang search}">
- </form>
- </div>
- </div>
- <!--{/if}-->
复制代码 2、forumdisplay.htm
找:- <div class="right">
- <!--{if $searchboxstatus}-->
- <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
- <input type="hidden" name="searchsubmit" value="yes">
- <input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
- <!--{if $qihoo_allsearch != '2'}--><input name="searchsubmit" class="button" type="submit" value="{lang search}"><!--{/if}-->
- <!--{if $qihoo_allsearch}-->
- <input name="allsearchsubmit" class="button" type="submit" value="{lang qihoo_search}">
- <!--{/if}-->
- </form>
- <!--{/if}-->
- </div>
复制代码 用下面新的代码替换- <!--{if $allowsearch}-->
- <div class="right">
- <form method="post" action="search.php?searchsubmit=yes" onSubmit="this.target='_blank';">
- <input type="hidden" name="searchsubmit" value="yes">
- <input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
- <input name="searchsubmit" class="button" type="submit" value="{lang search}">
- </form>
- </div>
- <!--{/if}-->
复制代码 第3步(修改方法跟第2步一样,用新代码替换):
viewthread.htm
找:- <!--{if $searchboxstatus}-->
- <div class="right">
- <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
- <input type="hidden" name="searchsubmit" value="yes">
- <input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
- <!--{if $qihoo_allsearch != '2'}--><input name="searchsubmit" class="button" type="submit" value="{lang search}"><!--{/if}-->
- <!--{if $qihoo_allsearch}-->
- <input name="allsearchsubmit" class="button" type="submit" value="{lang qihoo_search}">
- <!--{/if}-->
- </form>
- </div>
- <!--{/if}-->
复制代码 修改方法跟第2步一样,用新代码替换
[ 本帖最后由 终结者4 于 2006-8-21 23:18 编辑 ] |