Eski SEO eklentisi olan PhpBB Seo Usu ile sistemini kullanmaya devam ediyorsanız Benzer Konular yani Similar Topics eklentisinin tam Seo çevirisi yapamadığını bunun yerine "topic" yazdığını görmüşsünüzdür. Arama motorlarında bu durum aynı konuya ait iki farklı link olarak görülmekte ve kopya değerlendirilmesine sebep olmakta. Google'nin son dizin uygulamasında bu durum açıkça görülebiliyor.
En ideal olanı henüz yolun başında olanlar için SEO link konusuna hiç girmemek ancak toplu link çevirisi için tam çözüm bulamamış ve aşırı hit kaybını göze alamamışsanız bir şekilde sistemi uydurmaya çalışmanız gerekir.
Precise Similar Topics Son test Edilen Sürümü: 1.4.2
Şu an 1.4.3 Sürümü mevcut. Test ettiğimde eklerim.
Kod: Tümünü seç
/ext/vse/similartopics/core/similar_topics.php --> açalım
BUL
Kod: Tümünü seç
$this->auth = $auth;
$this->cache = $cache;
$this->config = $config;
Önüne Aşağıdaki Kodu Ekle
Kod: Tümünü seç
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> added by Shredder
global $phpbb_container;
// www.phpBB-SEO.com SEO TOOLKIT END -> added by Shredder
*******
BUL
Kod: Tümünü seç
$this->root_path = $root_path;
$this->php_ext = $php_ext;
Sonrasına Ekle
Kod: Tümünü seç
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> added by Shredder
$sql = 'SELECT ext_active
FROM ' . EXT_TABLE . "
WHERE ext_name = 'phpbbseo/usu'";
$result = $this->db->sql_query($sql);
$phpbb_seo = $this->db->sql_fetchfield('ext_active');
$this->db->sql_freeresult($result);
if ($phpbb_seo)
{
$this->seo_core = $phpbb_container->get('phpbbseo.usu.core');
}
// www.phpBB-SEO.com SEO TOOLKIT END -> added by Shredder
**
BUL
Kod: Tümünü seç
foreach ($rowset as $row)
{
$similar_forum_id = (int) $row['forum_id'];
$similar_topic_id = (int) $row['topic_id'];
Sonrasına Ekle
Kod: Tümünü seç
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> added by Shredder
$seo = (isset($this->seo_core)) ? $this->seo_core->seo_opt['url_rewrite'] : 0;
if ($seo)
{
$this->seo_core->set_url($row['forum_name'], $forum_id, 'forum');
$this->seo_core->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $this->seo_core->seo_static['global_announce'] : $this->seo_core->seo_url['forum'][$forum_id]);
}
// www.phpBB-SEO.com SEO TOOLKIT END -> added by Shredder
Kod: Tümünü seç
$topic_row = array(
'TOPIC_AUTHOR_FULL' => get_username_string('full', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
Öncesine Ekle
Kod: Tümünü seç
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> added by Shredder
if ($seo)
{
if (@$phpbb_seo->seo_opt['no_dupe']['on']) {
if (($replies + 1) > $phpbb_seo->seo_opt['topic_per_page']) {
$phpbb_seo->seo_opt['topic_last_page'][$topic_id] = floor($replies / $phpbb_seo->seo_opt['topic_per_page']) * $phpbb_seo->seo_opt['topic_per_page'];
}
}
$newest_post = append_sid("{$this->root_path}viewtopic.$this->phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&view=unread') . '#unread';
$last_post = !empty($this->seo_core->seo_opt['no_dupe']['on']) ? append_sid("{$this->root_path}viewtopic.$this->phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&start=' . @intval($this->seo_core->seo_opt['topic_last_page'][$topic_id])) . '#p' . $row['topic_last_post_id'] : append_sid("{$this->root_path}viewtopic.$this->phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'];
}
else
{
$newest_post = $view_topic_url . '&view=unread#unread';
$last_post = $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'];
}
// www.phpBB-SEO.com SEO TOOLKIT END -> added by Shredder
Bulunacak kodları bulmakta zorlanacak olursanız, sadece ilk satırı aratın. Benzer kod olma olasılığından dolayı birden fazla satır ekledim.