兩種方法關閉Discuz縱橫搜索相關帖子
2024-09-11 09:05:41
供稿:網友
縱橫搜索的相關帖子功能是從云平臺直接獲取數據,無視站點的偽靜態設置,況且相關度還真有有待加強,好吧,控訴了半天就關閉這功能好了,先來看看最暴力的方法。 改模板關閉相關帖子 直接修改縱橫搜索的顯示模板,這個方法直接暴力,也是流傳最廣的方法,也許你已經見過了,詳細如下。 找到sourceplugincloudsearchtemplatemodule.htm,把以下的代碼注釋或者刪除: <script type=&quot;text/javascript&quot; type=&quot;text/javascript&quot; src=&quot;http://cache.soso.com/30d/js/dis ... ;lt;/script> 再在后臺清理模板緩存就完成了。 改數據庫關閉相關帖子 其實,Discuz! 大多數的功能模塊都是有功能開關的,只是有的沒在后臺直接展示,要么存在于配置文件中,要么保存在數據庫,縱橫搜索就是后者。 用phpmyadmin訪問站點數據庫,瀏覽表common_setting,搜索skey 名為 my_search_data 字段。 編輯該字段的值,把里面的 allow_thread_related 和 allow_thread_related_bottom 后面的 i: 設置為0后保存。 a:11:{s:6:&quot;status&quot;;i:0;s:15:&quot;allow_hot_topic&quot;;i:1;<font color=&quot;Red&quot;>s:20:&quot;allow_thread_related&quot;;i:<span style=&quot;background-color: Silver;&quot;>0</span>;s:27:&quot;allow_thread_related_bottom&quot;;i:<span style=&quot;background-color: Silver;&quot;>0</span>;</font>s:21:&quot;allow_forum_recommend&quot;;i:1;s:19:&quot;allow_forum_related&quot;;i:0;s:24:&quot;allow_collection_related&quot;;i:1;s:20:&quot;allow_search_suggest&quot;;i:0;s:10:&quot;cp_version&quot;;i:1;s:17:&quot;recwords_lifetime&quot;;i:21600;s:6:&quot;domain&quot;;s:14:&quot;so.bbs.178.com&quot;;} 再到后臺清理數據緩存就完成了。