返回列表 发新帖
查看: 401|回复: 1

彻底去掉头部Powered by Discuz!与横杠的方法

[复制链接]

182

热度

53

元宝

199

贡献

步入草根

发表于 2015-9-22 08:30:27 | 显示全部楼层 |阅读模式
打开目录template\default\common下的header_common.htm文件,搜索
  1. <title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}-->

  2. $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz!</title>
复制代码
替换为:
  1. <title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> -

  2. $_G['setting']['bbname']<!--{/if}--></title>
复制代码


再修改文件:source\class\helper\helper_seo.php
查找:
  1. public static function strreplace_strip_split($searchs, $replaces, $str) {
  2.     $searchspace = array('((\s*\-\s*)+)', '((\s*\,\s*)+)', '((\s*\|\s*)+)', '((\s*\t\s*)

  3. +)', '((\s*_\s*)+)');
  4.     $replacespace = array('-', ',', '|', ' ', '_');
  5.     return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces,

  6. $str)), ' ,-|_');
  7.     }
复制代码
替换为:
  1. public static function strreplace_strip_split($searchs, $replaces, $str) {
  2.     $searchspace = array('(((\s)*\-(\s)*)+)', '(((\s)*\,(\s)*)+)', '(((\s)*\|(\s)*)+)',

  3. '(((\s)*\t(\s)*)+)', '(((\s)*_(\s)*)+)');
  4.     $replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3');
  5.     return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces,

  6. $str)), ' ,-|_');
  7.     }
复制代码


返回列表 发新帖
 懒得打字嘛,点击右侧快捷回复【最新发布】   【赞助草根吧享更多权益】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

收藏帖子 返回列表 搜索

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

小黑屋|手机版|草根吧