马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
看到有想要修改导读页的title,但是后台又没有设置的地方,建网站因此只能修改程序文件。 1.修改title文字 编辑source/language/forum/lang_template.php文件 修改以下行即可 <p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide => 导读,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide_digest => 最新精华,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide_hot => 最新热门,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide_my => 我的帖子,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide_new => 最新回复,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide_newthread => 最新发表,</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; color: rgb(0, 0, 0); font-family: 微软雅黑, 苹果丽中黑, Arial, Helvetica, sans-serif; font-size: 16px;"> guide_so => 抢沙发,</p>
2.修改title格式 编辑source/module/forum/forum_guide.php文件 修改以下行即可 $navtitle = $lang[guide].-.$lang[guide_.$view];
导读页面的标题、关键词、描述,修改方法: 打开source\module\forum\forum_guide,找到:$navtitle = $lang['guide'].'-'.$lang['guide_'.$view];
直接改成:<div align="left"><font size="3">$navtitle = '标题';
$metakeywords = '关键词';
$metadescription = '描述';</font></div>
|