1、去掉首页 logo 图标

template/default/common/header.htm125行 ,去掉a标签

2、删除快捷导航栏

template/default/common/header.htm 130行  ,去掉a标签

3、删除 链接到外部地址 文字

template/default/forum/discuz.htm

将{lang url_link}替换为<a href="forumdisplay.php?fid=$forum[fid]"></a>

共有4处

5、头像不能显示

检查与数据库连接,检查   UCenter 访问地址   - 站长——UCenter设置

6、界面设置(窄屏)

7、板块管理 (论坛-板块管理)

注:如不用图片,删除默认图片

外链横排板块设置

8、导航设置

其他导航根据情况设置

9、删除 无用图片

先删除该图片

static/image/common/forum.gif

去掉客服回收站残留 template/default/forum/discuz.htm2处 <imgsrc="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif"alt="$forum[name]" />

10、删除搜索栏

删除template/default/common/header.htm 160行

<!--{subtemplatecommon/pubsearchform}-->

11、删除头,template/default/common/header.htm  57-81行

<divid="toptb" class="cl">

<!--{hook/global_cpnav_top}-->

<divclass="wp">

<divclass="z">

<!--{loop$_G['setting']['topnavs'][0] $nav}-->

<!--{if$nav['available'] && (!$nav['level'] || ($nav['level'] == 1 &&$_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) ||($nav['level'] == 3 && $_G['adminid'] ==1))}-->$nav[code]<!--{/if}-->

<!--{/loop}-->

<!--{hook/global_cpnav_extra1}-->

</div>

<divclass="y">

<aid="switchblind" href="javascript:;"οnclick="toggleBlind(this)" title="{lang switch_blind}"class="switchblind">{lang switch_blind}</a>

<!--{hook/global_cpnav_extra2}-->

<!--{loop$_G['setting']['topnavs'][1] $nav}-->

<!--{if$nav['available'] && (!$nav['level'] || ($nav['level'] == 1 &&$_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) ||($nav['level'] == 3 && $_G['adminid'] ==1))}-->$nav[code]<!--{/if}-->

<!--{/loop}-->

<!--{ifempty($_G['disabledwidthauto']) &&$_G['setting']['switchwidthauto']}-->

<ahref="javascript:;" id="switchwidth" οnclick="widthauto(this)"title="{if widthauto()}{lang switch_narrow}{else}{langswitch_wide}{/if}" class="switchwidth"><!--{ifwidthauto()}-->{lang switch_narrow}<!--{else}-->{langswitch_wide}<!--{/if}--></a>

<!--{/if}-->

<!--{if$_G['uid'] && !empty($_G['style']['extstyle'])}--><aid="sslct" href="javascript:;"οnmοuseοver="delayShow(this, function(){showMenu({'ctrlid':'sslct','pos':'34!'})});">{langchangestyle}</a><!--{/if}-->

<!--{ifcheck_diy_perm($topic)}-->

$diynav

<!--{/if}-->

</div>

</div>

</div>

12、隐藏在线人数

13、删除

discuz.htm 48行后

<div id="chart" class="bmbw0 cl">

<pclass="chart z">{lang index_today}:<em>$todayposts</em><spanclass="pipe">|</span>{lang index_yesterday}:<em>$postdata[0]</em><span class="pipe">|</span>{langindex_posts}: <em>$posts</em><spanclass="pipe">|</span>{lang index_members}:<em>$_G['cache']['userstats']['totalmembers']</em><!--{if$_G['cache']['userstats']['newsetuser']}--><spanclass="pipe">|</span>{lang welcome_new_members}:<em><a href="home.php?mod=space&username={echorawurlencode($_G['cache']['userstats']['newsetuser'])}"target="_blank"class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>

<divclass="y">

<!--{hook/index_nav_extra}-->

<!--{if$_G['uid']}--><a href="forum.php?mod=guide&view=my"title="{lang my_posts}" class="xi2">{langmy_posts}</a><!--{/if}--><!--{if!empty($_G['setting']['search']['forum']['status'])}--><!--{if$_G['uid']}--><spanclass="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new"title="{lang show_newthreads}" class="xi2">{langshow_newthreads}</a><!--{/if}-->

</div>

</div>

14、删除回到页首

修改155-169行  footer.htm

<div id="scrolltop">

<!--{if$_G[fid] && $_G['mod'] == 'viewthread'}-->

<span><ahref="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$_GET[extra]&page=$page{if$_GET[from]}&from=$_GET[from]{/if}" οnclick="showWindow('reply',this.href)" class="replyfast" title="{langfastreply}"><b>{lang fastreply}</b></a></span>

<!--{/if}-->

<spanhidefocus="true"><a title="{lang scrolltop}"οnclick="window.scrollTo('0','0')" class="scrolltopa"><b>{lang scrolltop}</b></a></span>

<!--{if$_G[fid]}-->

<span>

<!--{if$_G['mod'] == 'viewthread'}-->

<ahref="forum.php?mod=forumdisplay&fid=$_G[fid]"hidefocus="true" class="returnlist" title="{langreturn_list}"><b>{lang return_list}</b></a>

<!--{else}-->

<ahref="forum.php" hidefocus="true"class="returnboard" title="{langreturn_forum}"><b>{lang return_forum}</b></a>

<!--{/if}-->

</span>

<!--{/if}-->

</div>

15、删除页尾 分割线

#ft { padding: 10px 0 50px; border-top: 1pxsolid {COMMONBORDER}; line-height: 1.8; color: {FOOTERTEXT}; }

修改为

#ft {border-top: 1px solid {COMMONBORDER};line-height: 1.8; color: {FOOTERTEXT}; }

16、修改首页板块间隔

template/default/forum/discuz.htm  45行  164行

<div class="fl bm">修改为 <divclass="fl">

17、删除友情链接(根据情况删除)

18、让菜单栏居右,并且和次级导航栏在一起

将template/default/common/header.htm 105-113 行

<divid="nv">

<ul>

<!--{loop$_G['setting']['navs'] $nav}-->

<!--{if$nav['available'] && (!$nav['level'] || ($nav['level'] == 1 &&$_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) ||($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {if $mnid ==$nav[navid]}class="a" {/if}$nav[nav]></li><!--{/if}-->

<!--{/loop}-->

</ul>

<!--{hook/global_nav_extra}-->

</div>

复制到template/default/forum/discuz.htm 21行后

修改template/default/common/common.css 577行

wp{ margin: 32px auto 0px auto; width:960px; }

设置其居右显示  609行

nv{overflow:hidden;height:33px;float:right;}

设置菜单格式,鼠标经过等颜色

common.css  615行nv的css格式修改为

#nv{ overflow: hidden; float:right;height: 25px; {MENUBGCODE}; }

#nvli { float: left; padding-right: 1px;height: 25px; line-height: 25px;background: url({IMGDIR}/mtabbg.gif) repeat 0 100%; font-weight: 700;font-size: 12px; }

#nvli a { float: left; padding:0 15px; height:25px;border:1px;border-style:solid;border-color:black; }

#nvli span { display: none; }

#nvli.a { margin-left: -1px; {MENUHOVERBGCODE}; }

#nvli a:hover { background:#660000  }

上传到static/image/common/目录下

"" 图片,白色 ,文件名mtabbg.gif

19、调整首页格式 template/default/common/common.css

修改wp的css格式 578行

.wp { margin: 10px auto 0px auto; width: 960px; } #wp .wp { width: auto; }

.wpp { width: 960px; } #wpp .wpp { width:auto; }

修改pt的css格式 775行

复制成ptt格式

#pt{ margin: 2px 0; height: 29px; border:none; background: transparent;line-height: 29px; }

#pt.z { padding-right: 10px; }

#pt.z a, #pt .z em, #pt .z span { float: left; height: 29px; }

#pt.z em { width: 20px; background: url({IMGDIR}/pt_item.png) no-repeat 3px 10px;line-height: 200px; overflow: hidden; }

.nvhm{ width: 16px; background: url({IMGDIR}/search.png) no-repeat 0 0; line-height:200px; overflow: hidden; }

/*XP 或 Windows 7,IE 最高版本为 8 或 9,这几种组合情况对字体的渲染存在差异,所以需要对背景进行微调,以适应更多情况 by Pony 11050511 */

.ie_all#pt .z em { background-position: 3px 9px; }

.ie_all.nvhm { background-position: 0 -1px; }

#ptt{ margin: 55px 0px 0px 0px; height: 29px; border:none; background: transparent;line-height: 29px;}

#ptt.z { padding-right: 10px; }

#ptt.z a, #ptt .z em, #ptt .z span { float: left; height: 29px; }

#ptt.z em { width: 20px; background: url({IMGDIR}/pt_item.png) no-repeat 3px 10px;line-height: 200px; overflow: hidden; }

.nvhm{ width: 16px; background: url({IMGDIR}/search.png) no-repeat 0 0; line-height:200px; overflow: hidden; }

/*XP 或 Windows 7,IE 最高版本为 8 或 9,这几种组合情况对字体的渲染存在差异,所以需要对背景进行微调,以适应更多情况 by Pony 11050511 */

.ie_all#ptt .z em { background-position: 3px 9px; }

.ie_all.nvhm { background-position: 0 -1px; }

修改template/default/forum/discuz.htm文件

第四行修改成<div id="ptt" class="bm cl">

20、删除首页多余空div

template/default/forum/discuz.htm 40行

<div class="wp">

<!--[diy=diy1]--><divid="diy1" class="area"></div><!--[/diy]-->

</div>

template/default/forum/discuz.htm 496行

<div class="wp mtn">

<!--[diy=diy3]--><divid="diy3" class="area"></div><!--[/diy]-->

</div>

21、修改页尾格式

template/default/common/common.css  717行

#ft { border-top: 0px solid {COMMONBORDER};line-height: 1.8; color: {FOOTERTEXT}; }

22、修改首页四格

上图设置首页四格数据来源template/default/forum/discuz.htm

修改首页四格代码,保留图片和最新主题

<div class="mn"> 下的 50-123行全部删除

将下面代码复制到删除的位置

<!--{if!empty($_G['setting']['grid']['showgrid'])}-->

<!--index four grid -->

<divclass="fl">

<divclass="bm bmw cl">

<divid="category_grid" class="bm_c" >

<tablecellspacing="0" cellpadding="0"><tr>

<!--{if!$_G['setting']['grid']['gridtype']}-->

<tdvalign="top" class="category_l1"style="width:526px;background:black">

<divclass="newimgbox">

<!--<h4><spanclass="tit_newimg"></span>{langlatest_images}</h4>-->

<divclass="module cl slidebox_grid" style="width:505px">

<scripttype="text/javascript">

varslideSpeed = 5000;

varslideImgsize = [505,235];

varslideBorderColor = '{$_G['style']['specialborder']}';

varslideBgColor = '{$_G['style']['commonbg']}';

varslideImgs = new Array();

varslideImgLinks = new Array();

varslideImgTexts = new Array();

varslideSwitchColor = '{$_G['style']['tabletext']}';

varslideSwitchbgColor = '{$_G['style']['commonbg']}';

varslideSwitchHiColor = '{$_G['style']['specialborder']}';

{eval$k = 1;}

<!--{loop$grids['slide'] $stid $svalue}-->

slideImgs[<!--{echo$k}-->] = '$svalue[image]';

slideImgLinks[<!--{echo$k}-->] = '{$svalue[url]}';

slideImgTexts[<!--{echo$k}-->] = '$svalue[subject]';

{eval$k++;}

<!--{/loop}-->

</script>

<scriptlanguage="javascript" type="text/javascript"src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>

</div>

</div>

</td>

<!--{/if}-->

<tdvalign="top" class="category_l4" style="background-image:url({IMGDIR}/banner.jpg)">

<divclass="subjectbox">

<!--<h4><spanclass="tit_subject"></span>{langcollection_lastthread}</h4>-->

<divstyle="line-height: 24px; border-top:1px">

<spanclass="tit_subject"></span>{langcollection_lastthread}</div>

<ulclass="category_newlist">

<!--{loop$grids['newthread'] $thread}-->

<!--{if!$thread['forumstick'] && $thread['closed'] > 1 &&($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->

<!--{eval$thread[tid]=$thread[closed];}-->

<!--{/if}-->

<li><ahref="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if$thread['highlight']} $thread['highlight']{/if}{if$_G['setting']['grid']['showtips']} tip="{lang title}:<strong>$thread[oldsubject]</strong><br/>{lang author}:$thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}:$thread[views]/$thread[replies]"οnmοuseοver="showTip(this)"{else}title="$thread[oldsubject]"{/if}{if$_G['setting']['grid']['targetblank']}target="_blank"{/if}>$thread[subject]  </a>

<spanstyle="float:right"> $thread['dateline']</span></li>

</li>

<!--{/loop}-->

</ul>

</div>

</td>

23、上传背景图片banner.jpg

修改template/default/common/module.css 首页四格css 格式 94-112行

下面代码:

#category_grid { padding: 0; border-top:1pxsolid {COMMONBORDER}; }

#category_gridtable { width:100%;table-layout: fixed; }

/*#category_gridtd { width: 25%; }*/

.category_l1,.category_l2, .category_l3,  {line-height: 25px;  overflow: hidden; }

.category_l4{font-size:12px; color:#FFFFFF;}

.category_l4 a {color:#FFFFFF; }

.category_l1{ line-height: normal; }

.category_l1,.category_l2, .category_l3 {  }

.ie6.category_l4 { margin-right: -3px; }

.slidebox_grid{ position: relative; margin: 10px; border: 1px #ccc solid; }

#category_gridh4 { width:100%; height: 30px; line-height: 30px; text-indent:10px; font-size:12px; cursor: pointer; background: url({IMGDIR}/tb.png) repeat-x;position:relative; }

.category_newlist{ padding: 10px; }

.category_newlistli {height: 21px; line-height:21px; overflow: hidden; padding-left:10px;  }

#category_gridh4 span { background:#CDCDCD; width:1px; height:30px; display:inline-block;position:absolute; left:0; top:0; }

#category_gridh4 span.tit_newimg { background:#FFF; }

#category_grid.newimgbox:hover h4 span, #category_grid .subjectbox:hover h4 span,#category_grid .replaybox:hover h4 span, #category_grid .hottiebox:hover h4span, #category_grid .goodtiebox:hover h4 span { width:6px;background:url({IMGDIR}/grid.png) no-repeat 0 0;transition:width 0.2s ease 0s;overflow:hidden; }

#category_grid.newimgbox:hover h4 span.tit_newimg { background-position:0 -30px; }

#category_grid.subjectbox:hover h4 span.tit_subject { background-position:0 0; }

#category_grid.replaybox:hover h4 span.tit_replay { background-position:0 -30px; }

#category_grid.hottiebox:hover h4 span.tit_hottie { background-position:0 -60px; }

#category_grid.goodtiebox:hover h4 span.tit_goodtie { background-position:0 -90px; }

24、背景 template/default/common/common.css  690行

/* 页面主区域 */

#ct {min-height: 300px; background:{SPECIALBG}}

25、去掉其他分页面分割线

主题页面修改 bbs/template/default/home/space_thread.htm

admin个人资料页面

主题前空div去掉

template/default/home/space_menu.htm  113行

修改为<ul class="tb cl" >

主题,个人资料下面隔行删除

template/default/common/common.css 578行 添加

.wpp { width: 960px; } #wpp .wpp { width:auto; }

template/default/home/space_profile.htm  24行

<div id="ct" class="ct1wpp cl">

template/default/home/space_thread.htm   7行

<div id="ct" class="ct1wpp cl">

我的帖子template/default/forum/guide.htm 9行

<div id="ptt" class="bmcl">

我的收藏template/default/home/space_favorite.htm 3行

<div id="ptt" class="bmcl">

我的好友template/default/home/space_friend.htm 3行

<div id="ptt" class="bmcl">

设置template/default/home/spacecp_header.htm 1行

<div id="ptt" class="bm cl">

消息template/default/home/space_pm.htm 3行

<div id="ptt" class="bmcl">

消息>我的帖子template/default/home/space_notice.htm  3行

<div id="ptt" class="bmcl">

提醒》行听众template/default/home/follow_feed.htm 3行 45行

<divid="ptt" class="bm cl">

57行 <div id="ct"class="ct1 wpp cl">

模块管理》登录页面template/default/portal/portalcp_login.htm 22行

<div id="ptt" class="bmcl">

模块管理》模块管理 template/default/portal/portalcp_portalblock.htm 3行

<div id="ptt" class="bmcl">

板块内格式template/default/forum/forumdisplay.htm 8行

<div id="ptt" class="bmcl">

帖子内格式template/default/forum/viewthread.htm 13行

<div id="ptt" class="bmcl">

帖子编辑页面template/default/forum/post.htm 79行

<div id="ptt" class="bmcl">

注册页面

template/default/common/common.css  579行

.wppp { margin: 70px auto 0px auto; width: 960px; } #wppp .wppp { width: auto; }

template/default/common/header.htm 最后一行

<divid="wppp" class="wppp">

二、配置手机页面

static/image/mobile/images/logo.png  左上角logo图片

##############其他问题收集############################################

首页版块间隔修改之间版块分开距离

修改模板︰
template/default/common/common.css
找︰
.fl { border: 1pxsolid {COMMONBORDER}; border-top: none; background: {WRAPBG}; }
.fl .bm {margin-bottom: 0; border: none; }
.fl .bm_h {border-width: 1px 0; border-color: {SPECIALBORDER}; {TITLEBGCODE}; }

修改为︰

.fl .bm { border: 1px solid {COMMONBORDER};border-top: none; background: {WRAPBG};}

.fl .bm_h { border-width: 1px 0;border-color: {SPECIALBORDER}; {TITLEBGCODE}; }

template/default/forum/discuz.htm
找︰

1.  <divclass="fl bm">

复制代码

修改为︰

1.  <divclass="fl">

复制代码

首页四格“热帖”不显示

1、先修改一下程序错误,回帖后热度值不增加;
找到文件"source\class\model\model_forum_post.php"搜索代码
$heatthreadset? $heatthreadset : array(); 修改为:
$this->param['updatethreaddata']= $heatthreadset ? $heatthreadset : array();

2、降低一下热门主题显示级别,
默认是50,100,150修改为1,2,3能保证站点很小的情况下也能显示热帖,各站长可以根据自己的实际情况来定:

后台——》全局——》站点功能——》主题热度

3. 首页四格的“热帖“默认显示的是站点7天内发布的且热度值达到3级的热帖,如果要修改时间和热度值级别,可以跟帖,我给出解决方案。
找到文件"\source\module\forum\forum_index.php",在162行左右的代码:

$grids['hot']= C::t('forum_thread')->fetch_all_for_guide('hot', 0, array(), 3, 0, 0, 10,$_G['setting']['grid']['fids']);
分析如下:
$grids['hot'] = C::t('forum_thread')->fetch_all_for_guide('hot', 0, array(), 1(这是热度级别可以自己修改), 0(这是时间限制), 0, 10,$_G['setting']['grid']['fids']);

这里修改了时间,就能显示了。

discuz论坛配置相关推荐

  1. 配置Discuz论坛教程

    配置Discuz论坛,在网上找了不少教程,能完整并成功配置的没有找到:都是要东找西找都才能把问题解决. 借助了如下图文章: 1.https://jingyan.baidu.com/article/b8 ...

  2. Linux安装配置Discuz论坛(centos7)

    本例要求基于Linux主机快速构建LAMP动态网站平台,并启用相关系统服务,完成下列操作: 1)安装LAMP平台各组件 安装好软件httpd.mariadb-server.mariadb.php.ph ...

  3. 安装配置Discuz论坛

    第一步:检查是否安装apache mysql php ps -ef |grep httpd ps -ef |grep mysql ps -ef |grep php 第二步:下载Discuz到服务器并解 ...

  4. Discuz!论坛程序安装+模板配置教程

    Discuz!论坛程序安装+模板配置教程 Linux系统安装方法: 第一步:检查是否安装apache mysql php ps -ef |grep httpd ps -ef |grep mysql p ...

  5. 配置Discuz论坛

    安装配置Discuz论坛 1 wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip 2.解压 Discuz! X3. ...

  6. LAMP服务器安装配置Discuz论坛

    本人用的是虚拟机Centos7 安装配置DIS论坛前要安装配置apache.mysql.php之后安装配置dis论坛 1.下载 Discuz! X3.2官方版到服务器. wget http://dow ...

  7. Discuz论坛邮箱配置

    常用的SMTP服务器地址: 1.腾讯QQ:smtp.qq.com 2.163邮箱:smtp.163.com 3.新浪邮箱:smtp.sina.com 4.腾讯企业邮箱:smtp.exmail.qq.c ...

  8. Centos 搭建高性能WEB服务 Nginx+PHP+MYSQL+Discuz论坛

    Centos 搭建高性能WEB服务 Nginx+PHP+MYSQL+Discuz论坛 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运 ...

  9. python编写自动化脚本 与shell_脚本安装Discuz论坛(shell + Python 实现自动化安装)...

    实验环境 1.shell 脚本:linux centos 7 系统 2.Python shell 脚本:window 系统 3.其他:python selenium 模块,谷歌浏览器, 谷歌浏览器驱动 ...

最新文章

  1. 基于C++的PyTorch模型部署
  2. 25 uname-用于显示系统信息
  3. jquery+原生js模拟淘宝输入框下拉提示
  4. 内存池和tcmalloc的性能比较
  5. 台达杯自动化大赛设计方案
  6. 字符串转换为列表 python_python,_python把字符串转换成列表,python - phpStudy
  7. 2.技巧: 用 JAXM 发送和接收 SOAP 消息—Java API 使许多手工生成和发送消息方面必需的步骤自动化...
  8. linux设备驱动归纳总结(三):1.字符型设备之设备申请【转】
  9. linux的ssh漏洞,Debian GNU/Linux Rssh安全绕过漏洞
  10. #1024程序员节# cc2530 按键唤醒功耗模式PM3例程
  11. CAD测量图纸时数据显示不出来怎么办?
  12. 智能对话机器人之多轮对话工作机制 | Chatopera
  13. java中explain什么意思_Java架构-面试前必须知道的MySQL命令【explain】
  14. a-upload文件夹上传
  15. 阅读Disentangling and Unifying Graph Convolutions for Skeleton-Based Action Recognition(CVPR2020)
  16. 如何在jupyter notebook 中修改主题、字体、字号等
  17. 动态投资回收期Pt小于计算期n
  18. 解决GitLab 上传头像不显示的问题
  19. WIN10怎么安装SQL server2000数据库
  20. java 抽象类 模板_java抽象类的体现-模板模式

热门文章

  1. autojs之控制台
  2. 云呐|什么是固定资产?什么是流动资产
  3. 信用卡违约预测模型的开发思路
  4. SQL注入-攻入Apple ID钓鱼网站实录
  5. Prism:Uber 的 Presto 查询网关服务
  6. power 见解_客户见解的两个简单来源,可改善用户体验
  7. SpringSecurity启动器
  8. 解决IDEA无法加载插件或者加载了插件下载超时的问题
  9. 多线程 -Thread -Runnable -Callable
  10. Ecplse常用快捷键