<< 加上文章逆向連結 | Plog.HomePage | 排行榜功能 >>
依照下面指示來安裝:
以 Markplace 為例子,使用 grey 模版。有兩個地方需要修改,請自行將下面的的程式安排在 footer.template 與 header.template 中適當的位置
<div class="Sidetitle">
<h4>Search</h4>
</div>
<p><center>
<form name="search_form" method="post" action="{$url->getIndexUrl()}">
<input type="text" name="searchTerms" value="" size="16" /><br/>
<input type="hidden" name="op" value="Search" />
<input type="hidden" name="blogId" value="{$blog->getId()}"/>
<input type="submit" name="Search" value="Search" />
</form>
</center></p>
在 header.template 中加入 {$searchhighlight->start()},建議加在 <body> 的前面。
在 footer.template 中加入 {$searchhighlight->end()},建議加在 </body> 的前面。
注意:如果你已經安裝了 GooglePlugin,請記得把他移除。因為,我已經將他改名為 Search Highlight Plugin。另外,請記得要將你的模版中的 {google->...} 修改為 {searchhighlight->...}。
同樣的,參與測試的人,請記的留言告訴我有沒有問題,尤其是中文的部分。另外我作了一些手腳在 searchresults.template 上,為了把關鍵字傳進去!不知道這樣的作法對使用簡潔網址設定的人有沒有影響。
感謝: 為 pLog 加上全文搜索 及 關鍵字高亮度, powered by Mark(140)