Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 关闭/删除 首页“热门话题”的方法~~

[复制链接]
cokes1 发表于 2012-5-25 22:51:41 | 显示全部楼层 |阅读模式
本帖最后由 cokes1 于 2012-5-26 18:00 编辑

找到纵横搜索插件文件 source\plugin\cloudsearch\search.class.php

删掉函数(其实这个地方是可以加个开关控制的)
  1. public function index_top_output() {
  2. if($this->allow) {
  3. $searchparams = makeSearchSignUrl();
  4. $recwords = $this->getRecWords();
  5. $srchotquery = '';
  6. if(!empty($searchparams[1])) {
  7. foreach($searchparams[1] as $key => $value) {
  8. $srchotquery .= '&' . $key . '=' . $value;
  9. }
  10. }
  11. return tpl_cloudsearch_index_top($recwords, $searchparams, $srchotquery);
  12. }

  13. }
复制代码
ps:我看有其他朋友也提供了方法,不过是修改的插件模板,那样过实际上并没彻底关闭,数据还是在处理的,只是不显示。


付:只在指定版块开启 “纵横搜索 - 相关帖子”
https://discuz.dismall.com/thread-2926534-1-1.html

评分

3

查看全部评分

 楼主| cokes1 发表于 2012-5-25 22:53:34 | 显示全部楼层
顺便说一下, 如果先关闭帖子内的“相关帖子”,也在这个文件内,删除
  1. public function viewthread_postbottom_output() {
  2. global $_G;

  3. if($this->allow && $GLOBALS['page'] == 1 && $_G['forum_firstpid'] && $GLOBALS['postlist'][$_G['forum_firstpid']]['invisible'] == 0) {
  4. return (array)tpl_cloudsearch_viewthread_postbottom_output();
  5. }
  6. }
复制代码
回复

使用道具 举报

時間飛了 发表于 2012-5-26 01:07:43 | 显示全部楼层
收藏备用
回复

使用道具 举报

wjhhxl 发表于 2012-5-26 10:41:38 | 显示全部楼层
谢谢,成功了。
回复

使用道具 举报

r57575 发表于 2012-5-26 13:35:51 | 显示全部楼层
看下有用没得!
回复

使用道具 举报

kinglaurel 发表于 2012-5-29 17:59:12 | 显示全部楼层
可恶的纵横搜索
回复

使用道具 举报

hackp 发表于 2012-5-30 12:36:49 | 显示全部楼层
留个纪念。。不错。
回复

使用道具 举报

onemary 发表于 2012-5-30 15:04:11 | 显示全部楼层
回一个帖子才一个金币,让我的签名卡情何以堪啊
回复

使用道具 举报

時間飛了 发表于 2012-5-30 18:47:59 | 显示全部楼层
再次开启纵横搜索 删除了 试试看
回复

使用道具 举报

winstonluo 发表于 2012-5-30 22:41:42 | 显示全部楼层
不需要那么复杂,后台纵横搜索清空论坛首页热门话题即可!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 06:51 , Processed in 0.139618 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表