DISCUZ X1.5主题分类和分类信息写进TITLE
<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 16px; font-family: 'Trebuchet MS',Arial,sans-serif; color: rgb(64,64,64); font-size: 13px" class="Apple-style-span"> <p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">根据我自己的DISCUZ X1.5论坛的特征(因为我就用一个分类信息,所以在DZ X1.5后台开启了分类信息的“默认显示分类”),我需要主题分类和分类信息列表页的TITLE标题如下的SEO优化效果1、如果点开的页面有主题分类也有分类信息,TITLE标题显示为“主题分类 – 分类信息 – 论坛名称”2、如果点开的页面无主题分类也无分类信息,TITLE标题显示为“版块名称 – 论坛名称”3、如果点开的页面有主题分类无分类信息,TITLE标题显示为“主题分类 – 版块名称 – 论坛名称”4、如果点开的页面无主题分类有分类信息,TITLE标题显示为“分类信息 – 论坛名称” <p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">修改方法如下sourcemoduleforumforum_forumdisplay.php修改 <div style="overflow-x: auto; overflow-y: auto; background-color: rgb(231,229,220); margin: 18px 0px; width: 594px; font-family: Consolas,'Courier New',Courier,mono; font-size: 12px; padding-top: 1px" class="dp-highlighter"> <div style="padding-left: 45px" class="bar"> <div style="border-left: rgb(108,226,108) 3px solid; padding-bottom: 10px; background-color: rgb(248,248,248); padding-left: 10px; padding-right: 8px; font: 9px Verdana,Geneva,Helvetica,sans-serif; color: silver; padding-top: 3px" class="tools"> <a style="outline-style: none; color: rgb(160,160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" href="#">view plain<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" href="#">copy to clipboard<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" href="#">print<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('About',this);return false;" href="#">?
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |