论坛程序discuz x1.5的优化细则(一)

最近Winter做了一个论坛,是当做辅站用的,所以查了一下,发现discuz x1.5的程序不错,并且很多大公司都在用,因此就装上了。但是装上后才发现,一些地方是需要修改的,比如头部和底部的版权信息等,下面苏州SEO博客就给大家详细讲解如何做好discuz x1.5的哪些优化细节:

1、关于去掉DZ论坛标题处的Powered by Discuz!,去掉他的原因是为了使标题更加简洁明了,还有就是不被搜索到导致SPAM:具体的修改方法:打开template/default/common/header_common.htm,在第五行中直接删除:- Powered by Discuz!就可。

2、如果针对DZ底部的版权信息进行修改,建议不要进行大的修改,那是版权问题,在这里:风格 模板里 template/default/common/header_common.htm 注意对应自己正在使用的模板,第47行处开始。

3、去掉多余的或修改Meta部分“<meta name=”copyright” content=”2001-2007 Comsenz Inc.” />”同样在header.htm内。将<meta name=”description” content=”$metadescription $bbname $seodescription – Discuz! Board” /> 改为<meta name=”description” content=”$metadescription $bbname $seodescription” />,

Meta区中这两个可以留1个即可,是为了保护作者的版权:<meta name=”generator” content=”Discuz! $version” />
<meta name=”author” content=”Discuz! Team and Comsenz UI Team” />

打开archiver/include/header.inc.php,将前面对应的改为:<title> <?=$_DCACHE[‘settings’][‘seotitle’]?> <?=$navtitle?> <?=$_DCACHE[‘settings’][‘bbname’]?> –   Archiver</title>
将Kewords中的Discuz!,Board,Comsenz,forums,bulletin board,去掉,将meta name=”description”后边的 – Discuz! Archiver也可去掉,同样跟上边说的一样,将<meta name=”author” content=”Discuz! Team & Comsenz UI Team” />
<meta name=”copyright” content=”2001-2007 Comsenz Inc.” /> 其中之一去掉1个。

把关键字放大:修改 forum.inc.php,index.inc.php,thread.inc.php
在这些文件的最后加入
<br> <font color=<?=MAINTABLECOLOR?>><?=$_DCACHE[‘settings’][‘seokeywords’]?></font>

论坛信息分类优化:

打开viewthread.php

查找:

$navigation = “» <a href=\”forumdisplay.php?fid=$fid”.($extra ? ‘&’.preg_replace(“/^(&)*/”, ”, $extra) : ”).”\”>$forum[name]</a> » $thread[subject]”;

$navtitle = $thread[‘subject’].’ – ‘.strip_tags($forum[‘name’]);

if($forum[‘type’] == ‘sub’) {

       $query = $db->query(“SELECT fid, name FROM {$tablepre}forums WHERE fid=’$forum[fup]'”);

       $fup = $db->fetch_array($query);

       $navigation = “» <a href=\”forumdisplay.php?fid=$fup[fid]\”>$fup[name]</a> $navigation”;

       $navtitle = $navtitle.’ – ‘.strip_tags($fup[‘name’]);

}

$navtitle .= ‘ – ‘;

替换成:

if($lastvisit < $thread[‘lastpost’] && (!isset($_DCOOKIE[‘fid’.$fid]) || $thread[‘lastpost’] > $_DCOOKIE[‘fid’.$fid])) {

       dsetcookie(‘fid’.$fid, $thread[‘lastpost’], 3600);

}

$navigation = “» <a href=\”forumdisplay.php?fid=$fid”.($extra ? ‘&’.preg_replace(“/^(&)*/”, ”, $extra) : ”).”\”>$forum[name]</a> » $thread[subject]”;

if($thread[‘typeid’] && isset($forum[‘threadtypes’][‘types’][$thread[‘typeid’]])) {

$navtitle = ‘(‘.$forum[‘threadtypes’][‘types’][$thread[‘typeid’]].’)’.$thread[‘subject’].’ – ‘.strip_tags($forum[‘name’]);

}else{

$navtitle = $thread[‘subject’].’ – ‘.strip_tags($forum[‘name’]);

}

if($forum[‘type’] == ‘sub’) {

       $query = $db->query(“SELECT fid, name FROM {$tablepre}forums WHERE fid=’$forum[fup]'”);

       $fup = $db->fetch_array($query);

       $navigation = “» <a href=\”forumdisplay.php?fid=$fup[fid]\”>$fup[name]</a> $navigation”;

       $navtitle = $navtitle.’ – ‘.strip_tags($fup[‘name’]);

}

$navtitle .= ‘ – ‘;

用googleSitemap 和 雅虎url工具优化论坛,完成!
在misc.php中找到$threadurl = “{$boardurl}viewthread.php?tid=$tid”;
(奇怪的是6.0的新版本中是$threadurl = “{$boardurl}viewthread.php?tid=$tid$fromuid”; 所以我在这里没有改。)改为
$threadurl = “{$boardurl}viewthread.php?tid=$tid&fromuid=$discuz_uid”;

在推荐朋友功能中增加推荐人的标记。这样的推荐能给推荐人带来金币收入。

转载请注明来自苏州SEOhttp://www.seowinter.com/?p=568

未经允许不得转载:网站优化-SeoWinter.com » 论坛程序discuz x1.5的优化细则(一)

赞 (0) 打赏

评论 38

  1. 匿名永恒之塔sf程序_仙境ROsf程序_诛仙sf程序_神泣sf程序_石器sf程序石器私服一条龙服务端47ec.comQQ1285574370 骑士开区一条龙服务端07cg.comQQ1325876192 http://www.07cg.com/回复
  2. 匿名天堂私服一条龙_传世私服一条龙_真封神私服一条龙_劲舞团私服一条龙_天上碑私服一条龙传世sf一条龙开服06vk.comQQ1124999543 征途开服一条龙制作46em.comQQ1124999543 http://www.46em.com/回复
  3. 匿名天龙私服制作_奇迹Mu私服制作_魔兽私服制作_魔域私服制作_墨香私服制作传奇sf一条龙302gm.comQQ2488130950 魔域sf一条龙开服119uc.comQQ1292124634 http://www.119uc.com/回复
  4. 匿名丝路传说sf一条龙_大话西游sf一条龙_蜀门sf一条龙_机战sf一条龙_剑侠情缘sf一条龙骑士开区一条龙服务端07cg.comQQ1325876192 天堂2私服一条龙服务端48ea.comQQ49333685 http://www.48ea.com/回复
  5. 匿名丝路传说sf制作_大话西游sf制作_蜀门sf制作_机战sf制作_剑侠情缘sf制作石器sf一条龙开服14pd.comQQ1325876192 倚天2开服一条龙制作64uv.comQQ1292124634 http://www.64uv.com/回复
  6. 匿名新魔界私服服务端_骑士私服服务端_烈焰私服服务端_破天私服服务端_决战私服服务端劲舞团私服一条龙803sf.comQQ2488130950 决战开区一条龙服务端119uc.comQQ1292124634 http://www.119uc.com/回复
  7. 匿名冒险岛私服服务端_惊天动地私服服务端_热血江湖私服服务端_问道私服服务端_密传私服服务端热血江湖开服一条龙803sf.comQQ2488130950 魔域sf一条龙05uw.comQQ30171491 http://www.05uw.com/回复
  8. 匿名火线任务(Heat Project)sf全套_飞飞OLsf全套_洛汗sf全套_天之炼狱sf全套魔域sf一条龙服务端46em.comQQ1124999543 传奇3私服一条龙制作40ie.comQQ1292124634 http://www.40ie.com/回复
  9. 匿名火线任务(Heat Project)sf一条龙_飞飞OLsf一条龙_洛汗sf一条龙_天之炼狱sf一条龙骑士开区一条龙服务端07cg.comQQ1325876192 骑士开区一条龙服务端07cg.comQQ1325876192 http://www.07cg.com/回复
  10. 匿名天堂2开服_传奇3开服_英雄王座开服_千年开服_征途开服传奇sf一条龙开服40ie.comQQ1292124634 魔兽sf一条龙开服07iq.comQQ1285574370 http://www.07iq.com/回复
  11. 匿名绝对女神私服全套_传说OL私服全套_刀剑私服全套_弹弹堂私服全套_科洛斯私服全套完美世界开服一条龙制作45ur.comQQ1207542352 骑士开区一条龙服务端07cg.comQQ1325876192 http://www.07cg.com/回复
  12. 匿名天龙开区服务端_奇迹Mu开区服务端_魔兽开区服务端_魔域开区服务端_墨香开区服务端乱OL开服一条龙制作49uv.comQQ1124999543 奇迹Mu私服一条龙制作07iq.comQQ1285574370 http://www.07iq.com/回复
  13. 匿名成吉思汗开区服务端_剑侠世界开区服务端_全民奇迹开区服务端_挑战OL开区服务端乱OL开服一条龙制作49uv.comQQ1124999543 征途开服一条龙制作46em.comQQ1124999543 http://www.46em.com/回复
  14. 匿名天堂开服服务端_传世开服服务端_真封神开服服务端_劲舞团开服服务端_天上碑开服服务端神泣开区一条龙服务端07oe.comQQ49333685 魔兽sf一条龙41ay.comQQ30171491 http://www.41ay.com/回复
  15. 匿名天龙开区_奇迹Mu开区_魔兽开区_魔域开区_墨香开区传世私服一条龙服务端43vb.comQQ1325876192 奇迹Mu私服一条龙服务端49uv.comQQ1124999543 http://www.49uv.com/回复
  16. 匿名火线任务(Heat Project)sf架设_飞飞OLsf架设_洛汗sf架设_天之炼狱sf架设倚天2开服一条龙制作64uv.comQQ1292124634 天龙私服一条龙制作a3sf.comQQ1285574370 http://www.a3sf.com/回复
  17. 匿名永恒之塔开区_仙境RO开区_诛仙开区_神泣开区_石器开区诛仙开服一条龙制作43vb.comQQ1325876192 墨香私服一条龙48pn.comQQ2488130950 http://www.48pn.com/回复
  18. 匿名冒险岛sf架设_惊天动地sf架设_热血江湖sf架设_问道sf架设_密传sf架设倚天2开服一条龙制作64uv.comQQ1292124634 神泣开区一条龙服务端07oe.comQQ49333685 http://www.07oe.com/回复
  19. 匿名红月私服一条龙_十二之天(江湖OL)私服一条龙_倚天私服一条龙_dnf私服一条龙传奇私服一条龙制作06vk.comQQ1124999543 石器私服一条龙服务端47ec.comQQ1285574370 http://www.47ec.com/回复
  20. 匿名火线任务(Heat Project)私服制作_飞飞OL私服制作_洛汗私服制作_天之炼狱私服制作传奇sf一条龙302gm.comQQ2488130950 天堂开服一条龙制作47ec.comQQ1285574370 http://www.47ec.com/回复
  21. 匿名绝对女神私服程序惊天动地开服一条龙制作46uv.comQQ1292124634 传奇3sf一条龙服务端49ic.comQQ1207542352 http://www.49ic.com/回复
  22. 匿名天堂2开服_传奇3开服_英雄王座开服_千年开服_征途开服传奇3私服一条龙制作40ie.comQQ1292124634 奇迹Musf一条龙服务端64uv.comQQ1292124634 http://www.64uv.com/回复
  23. 匿名新魔界sf架设_骑士sf架设_烈焰sf架设_破天sf架设_决战sf架设奇迹Musf一条龙服务端64uv.comQQ1292124634 新魔界开区一条龙服务端06vk.comQQ1124999543 http://www.06vk.com/回复
  24. 匿名新魔界开区服务端_骑士开区服务端_烈焰开区服务端_破天开区服务端_决战开区服务端新魔界sf一条龙42md.comQQ30171491 诛仙开服一条龙302gm.comQQ2488130950 http://www.302gm.com/回复
  25. 匿名天龙开区_奇迹Mu开区_魔兽开区_魔域开区_墨香开区传世私服一条龙服务端43vb.comQQ1325876192 美丽世界开区一条龙服务端14pd.comQQ1325876192 http://www.14pd.com/回复
  26. 匿名永恒之塔开区服务端_仙境RO开区服务端_诛仙开区服务端_神泣开区服务端_石器开区服务端石器私服一条龙42md.comQQ30171491 传奇私服一条龙制作06vk.comQQ1124999543 http://www.06vk.com/回复
  27. 匿名天堂2一条龙_传奇3一条龙_英雄王座一条龙_千年一条龙_征途一条龙石器私服一条龙制作05mx.comQQ1207542352 墨香sf一条龙服务端47ec.comQQ1285574370 http://www.47ec.com/回复
  28. 匿名天堂一条龙_传世一条龙_真封神一条龙_劲舞团一条龙_天上碑一条龙仙境RO开区一条龙服务端05mx.comQQ1207542352 热血江湖开服一条龙803sf.comQQ2488130950 http://www.803sf.com/回复
  29. 匿名永恒之塔sf全套_仙境ROsf全套_诛仙sf全套_神泣sf全套_石器sf全套征途开服一条龙制作46em.comQQ1124999543 烈焰开服一条龙41ay.comQQ30171491 http://www.41ay.com/回复
  30. 匿名how to make money online quick: [url=http://www.youtube.com/watch?v=SqB7OTCLe-o]earn money online nepal[/url] [url=http://www.youtube.com/watch?v=RwPfl-qcqoo]earn money online 2017 india[/url] [url=http://www.youtube.com/watch?v=SqB7OTCLe-o]earn money online usertesting[/url] [url=http://www.youtube.com/watch?v=3gj-qdoFNBs]make money online with zero capital[/url] [url=http://www.youtube.com/watch?v=ce9FCbjAOVE]earn money online games[/url] Popular Tags: how to earn money online from fbmaking money online doing tasksearning money online casinowork online make real moneyearn money with online typing jobshow 2 make money fast onlineis there legit ways to make money onlinehow much do you make online surveysbest make money from home appearn money work from home onlinecan you get paid from online surveyshow can you make money from home onlinemake money with games onlinehow to hack make money appmake money selling information products onlinehow to make money online at age 17earn money online paytm tamilhow to earn money online for studentsmake fast money online paypalquick ways to make money online canadahow to earn money online telugu baditop 10 best way to make money onlinedaily cash earn money app reviewearn money online email readingwhat are ways of making money online回复
  31. 匿名成吉思汗私服制作_剑侠世界私服制作_全民奇迹私服制作_挑战OL私服制作破天开区一条龙服务端07iq.comQQ1285574370 倚天2私服一条龙05uw.comQQ30171491 http://www.05uw.com/回复
  32. 匿名天堂私服架设_传世私服架设_真封神私服架设_劲舞团私服架设_天上碑私服架设决战开区一条龙服务端119uc.comQQ1292124634 永恒之塔开服一条龙48pn.comQQ2488130950 http://www.48pn.com/回复
  33. 匿名成吉思汗私服制作_剑侠世界私服制作_全民奇迹私服制作_挑战OL私服制作奇迹Mu私服一条龙制作07iq.comQQ1285574370 奇迹Mu私服一条龙服务端49uv.comQQ1124999543 http://www.49uv.com/回复
  34. 匿名how to write summary essay [url=http://ralive.de/uyessayonline35281]essay writing vocabulary[/url] how to write a 300 word essay [url=http://projectultimatum.altervista.org/essaywritingservicesreview52306]home essay writing[/url] how to write a hook for a persuasive essay [url=http://stras.me/writingapersuasiveessay29386]writing an abstract for an essay[/url] topics for essay writing for school children [url=http://y.saudhosting.com/uyessayonline28577]essay writing on poverty[/url] examples of persuasive writing essays [url=http://fapme.pw/writingessaysformoney85555]how i write essay[/url] write me an essay [url=http://www.vkvi.net/uyessayonline41090]how to write an introduction for an expository essay[/url] importance of writing essay [url=http://ralive.de/howtowritecollegeessay55986]how to write a introduction paragraph for an essay[/url] writing a narrative essay [url=http://s.miku.moe/uyessayonline67353]student essay writing[/url] essay writing steps [url=http://awalsh.com/writeadescriptiveessay71010]how do we write essay[/url]回复
  35. 匿名writing an essay for a scholarship [url=http://fileshare.upackgroup.ru/uyessayonline73933]top essay writers[/url] essay to buy [url=https://e13.co/Buyessayonline74540]how to writing an essay[/url] writing a good compare and contrast essay [url=http://jnl.io/uyessayonline35138]how to write essay for university[/url] writing english essays [url=http://www.link.netsons.org/uyessayonline27695]rules for essay writing competition[/url] how to write a good university essay [url=http://valeriemace.co.uk/uyessayonline74747]home essay writing[/url] nursing essay writing [url=http://stwnsh.com/howtowriteashortessay86607]how to write a best essay[/url] good writing essay [url=http://xn--n1af6d.net/writeanessayaboutyourself89078]how to write a good university essay[/url] how to write a analytical essay [url=http://4gt.site/uyessayonline11970]how to write issue essay in gre[/url] writing a great college essay [url=http://84030.ml/writeessays10408]how to write a compare and contrast essay[/url]回复
  36. 匿名some topics for essay writing [url=http://s.workflowfaq.com/essaywritersforhire39804]english language essay writing[/url] how to write a expository essay [url=https://aaa.moda/howtowriteanalyticalessay98163]write essays for me[/url] english essay writing [url=http://y.saudhosting.com/howtowriteanessays11675]how to write essays better[/url] how to write a story essay [url=http://yourls.site/uyessayonline30458]hot to write an essay[/url] topics to write an evaluation essay on [url=https://ameo.link/thesite]writing essay help[/url] writing a case study essay [url=https://ameo.link/thesite]i want to write an essay[/url] show me how to write an essay [url=http://4gt.site/uyessayonline73632]write the essay for me[/url] how to write a introductory paragraph for an essay [url=http://swish.st/howtowritea5paragraphessay30174]how to write good academic essays[/url] best essay writing books [url=https://dziku.ovh/Buyessayonline47086]help write an essay[/url]回复
  37. 匿名Hello. And Bye.回复
  38. 匿名天龙私服全套_奇迹Mu私服全套_魔兽私服全套_魔域私服全套_墨香私服全套完美世界开服一条龙制作45ur.comQQ1207542352 [url=http://www.47ec.com/]天堂开服一条龙制作47ec.comQQ1285574370[/url]回复

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏