该问题已被锁定!
17
关注
6073
浏览

这程序SEO优化太不给力了吧?

AI智能回复搜索中,请稍后...

查看全部 10 个回答

AWSupport 初级会员 用户来自于: 广东省深圳市
2015-08-17 17:59
app/topic/main.php   查找:
if ($related_topics = $this->model('topic')->related_topics($topic_info['topic_id']))
{
	foreach ($related_topics AS $key => $val)
	{
	    $related_topics_ids[$val['topic_id']] = $val['topic_id'];
	}
}
 替换成:  
$page_keywords = $topic_info['topic_title'];

if ($related_topics = $this->model('topic')->related_topics($topic_info['topic_id']))
{
	foreach ($related_topics AS $key => $val)
	{
		$related_topics_ids[$val['topic_id']] = $val['topic_id'];
		
	    $page_keywords = $val['topic_title'];
	}
}
	
TPL::set_meta('keywords', implode(',', $page_keywords));
TPL::set_meta('description', cjk_substr(str_replace("\r\n", ' ', strip_tags($topic_info['topic_description'])), 0, 128, 'UTF-8', '...'));
 下个版本更新

关于作者

问题动态

发布时间
2015-08-11 11:47
更新时间
2015-09-20 22:16
关注人数
17 人关注

推荐内容

《seo》帮忙看看为什么一个月多了,只有首页收录
网站错误页面正确代码应显示成404
wC 的程序 或者模板是不是有问题,做了5个站,收录基本是没有。
如何做好一个网站的SEO优化?
这个程序有没有做seo优化方面的计划啊
㊙️wecenter的SEO优化分享『不想做个伸手党』
回答问题答案里锚文本支持吗
今天再次发一表一下关于这套bug程序的建议。
qiu模板
问题被官方锁定 想更新内容都不行 无语了................