北京建站工作室,假山怎么制作 教程,wordpress做seo合适吗,石家庄建行网站1、关于去掉DZ论坛标题处的Powered by Discuz!#xff0c;去掉他的原因是为了使标题更加简洁明了#xff0c;还有就是不被搜索到导致SPAM#xff1a;具体的修改方法#xff1a;打开/templates/default/header.htm#xff0c;在第五行中直接删除#xff1a;- Powered by D…1、关于去掉DZ论坛标题处的Powered by Discuz!去掉他的原因是为了使标题更加简洁明了还有就是不被搜索到导致SPAM具体的修改方法打开/templates/default/header.htm在第五行中直接删除- Powered by Discuz!就可。2、如果针对DZ底部的版权信息进行修改建议不要进行大的修改那是版权问题在这里风格 模板里 /templates/default/footer.html 注意对应自己正在使用的模板第47行处开始。3、去掉多余的或修改Meta部分“”同样在header.htm内。将 改为/Meta区中这两个可以留1个即可是为了保护作者的版权打开archiver/include/header.inc.php将前面对应的改为 $_DCACHE[settings][seotitle]? $navtitle? $_DCACHE[settings][bbname]? - Archiver将Kewords中的Discuz!,Board,Comsenz,forums,bulletin board,去掉将meta namedescription后边的 - Discuz! Archiver也可去掉同样跟上边说的一样将 其中之一去掉1个。把关键字放大修改 forum.inc.phpindex.inc.phpthread.inc.php在这些文件的最后加入$_DCACHE[settings][seokeywords]?论坛信息分类优化打开viewthread.php查找$navigation » $forum[name] » $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 » $fup[name] $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 » $forum[name] » $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 » $fup[name] $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$tidfromuid$discuz_uid;在推荐朋友功能中增加推荐人的标记。这样的推荐能给推荐人带来金币收入。高级优化前提1.discuz! 5.0/5.5 已启用伪静态功能只启用普通页面静态化就可以了2.不要启用Archiver功能3.后台的keywords和description设置只是针对首页的(如果您没做列表页和内容页的meta修改则也应用到它们);4.后台首页文件名为/(当然您也可以设置自己特定的)然后开始优化一、meta的优化discuz的后台可以对meta信息进行设置甚至可以添加自己的头部信息但它的设置都是针对于所有页面的全部页面都拥有相同的keywords和description是SEO所不赞成的。方案一:删除meta修改页头模板文件 templates/default/header.htm将meta的keywords和description标签删除。这两个标签作用很小了而且还有discuz自带的一些无用信息用得不好反而会有坏作用因此宁缺勿滥。方案二:定制meta本部分实现了将内容页keywords设为帖子标题description为内容前100字也实现了主页与各版列表页meta的单独设置(不同版的不同同一版各列表页相同)。1.修改页头模板文件 templates\default\header.htm将meta的keywords和description标签改为如下形式这里的$seokeywords、$seodescription就是后台设置的那个值下面说怎么定制这个值{$metakeywords}是奇虎的关键字留下以后处理2.内容页(viewthread)设置keywords为帖子标题description为内容前100字2.1修改 viewthread.php 文件在 include template(viewthread); (更新:dz5.5为iinclude template($iscircle ? supesite_viewthread : viewthread); ) 语句的上面加入一行require_once DISCUZ_ROOT../include/bmt.thread.inc.php;2.2创建 include/bmt.thread.inc.php 文件内容为if(!defined(IN_DISCUZ)) { exit(Access Denied); }$seokeywords strip_tags($thread[subject]); //关键字设为帖子的标题//(已更新: nethome 提出问题当启用主题分类并允许按类别浏览时原来代码会有问题。所以加了标签过滤,本来在viewthread.php中改更好为以后升级方便还是放在这里吧subject很短不会影响效率)$seodescription current( $postlist );//description取文章内容的前100字$seodescription mb_substr( $seodescription[message],0,100,gb2312 );$seodescription htmlspecialchars( strip_tags($seodescription) );?*此处数字和个别函数适用于GBK版本utf 8 的可能有个别不一样请大家继续寻找相关更适合自己版本的优化内容。