縱橫搜尋的相關帖子功能是從雲平臺直接獲取資料,無視站點的偽靜態設定,況且相關度還真有有待加強,好吧,控訴了半天就關閉這功能好了,先來看看最暴力的方法。

改模板關閉相關帖子

  直接修改縱橫搜尋的顯示模板,這個方法直接暴力,也是流傳最廣的方法,也許你已經見過了,詳細如下。

  找到 sourceplugincloudsearchtemplatemodule.htm,把以下的程式碼註釋或者刪除:

<script type="text/javascript/ target=_blank class=infotextkey>javascript" type="text/javascript" src="http://cache.soso.com/30d/js/discuz/relate_subject.js"></script>

  再在後臺清理模板快取就完成了。

  改資料庫關閉相關帖子

  其實,Discuz! 大多數的功能模組都是有功能開關的,只是有的沒在後臺直接展示,要麼存在於配置檔案中,要麼儲存在資料庫,縱橫搜尋就是後者。

  用 phpmyadmin 訪問站點資料庫,瀏覽表 common_setting,搜尋 skey 名為 my_search_data 欄位。

  編輯該欄位的值,把裡面的 allow_thread_related 和 allow_thread_related_bottom 後面的 i: 設定為 0 後儲存。

a:11:{s:6:"status";i:0;s:15:"allow_hot_topic";i:1;<font color="Red">s:20:"allow_thread_related";i:<span style="background-color: Silver;">0</span>;s:27:"allow_thread_related_bottom";i:<span style="background-color: Silver;">0</span>;</font>s:21:"allow_forum_recommend";i:1;s:19:"allow_forum_related";i:0;s:24:"allow_collection_related";i:1;s:20:"allow_search_suggest";i:0;s:10:"cp_version";i:1;s:17:"recwords_lifetime";i:21600;s:6:"domain";s:14:"so.bbs.178.com";}

  再到後臺清理資料快取就完成了。