Arkadaşlar bu sefer de V7 Makaleler ve Forum SEO ile karşınızdayım.
Oluşan linkler:
FORUM:
forum anasayfa -> forum/index.html
forum linki -> forum/kategori-ismi-forum-ismi-f#.html
forumun sayfaları -> forum/kategori-ismi-forum-ismi-f#-r#.html
konu linki -> forum/konu-ismi-t#.html
konunun sayfaları -> forum/konu-ismi-t#-r#.html
MAKALELER:
makaleler anasayfa -> makaleler.html
makale kategorisi -> kategori-ismi-c#.html
kategorinin sayfaları -> kategori-ismi-c#-r#.html
makale linki -> makale-ismi-a#.html
makalenin sayfaları -> makale-ismi-a#-r#.html
Yapımcı: Antiseptic -
[SEO Turk forumlarında bulunan linkleri görebilmek için üyelik gerekmektedir. ]
KURULUM:
maincore.php dosyamızı açıp aşağıdaki kodu buluyoruz:
Üzerine ekliyoruz:
PHP- Kodu:
// Fusion v7 SEO by antiseptic - www.pcturk.org - başlangıç
function seoname($seoit) {
// $seoit = strip_tags($seoit);
$seoit = str_replace('&',' ',$seoit);
$seoit = str_replace('+',' ',$seoit);
$seoit = str_replace(';',' ',$seoit);
$seoit = str_replace('?',' ',$seoit);
$seoit = str_replace('=',' ',$seoit);
$seoit = str_replace('/',' ',$seoit);
$seoit = str_replace('\\',' ',$seoit);
$seoit = str_replace('@',' ',$seoit);
$seoit = str_replace('~',' ',$seoit);
$seoit = str_replace('!',' ',$seoit);
$seoit = str_replace('£',' ',$seoit);
$seoit = str_replace('$',' ',$seoit);
$seoit = str_replace('%',' ',$seoit);
$seoit = str_replace('ğ','g',$seoit);
$seoit = str_replace('Ğ','G',$seoit);
$seoit = str_replace('ı','i',$seoit);
$seoit = str_replace('İ','i',$seoit);
$seoit = str_replace('ü','u',$seoit);
$seoit = str_replace('Ü','U',$seoit);
$seoit = str_replace('Ş','S',$seoit);
$seoit = str_replace('ş','s',$seoit);
$seoit = str_replace('ö','o',$seoit);
$seoit = str_replace('Ö','O',$seoit);
$seoit = str_replace('Ç','C',$seoit);
$seoit = str_replace('ç','c',$seoit);
$seoit = str_replace('^',' ',$seoit);
$seoit = str_replace('*',' ',$seoit);
$seoit = str_replace('_',' ',$seoit);
$seoit = str_replace('{',' ',$seoit);
$seoit = str_replace('}',' ',$seoit);
$seoit = str_replace('[',' ',$seoit);
$seoit = str_replace(']',' ',$seoit);
$seoit = str_replace('-',' ',$seoit);
$seoit = str_replace(' & ',' ',$seoit);
$seoit = str_replace('"',' ',$seoit);
$seoit = str_replace('.',' ',$seoit);
$seoit = str_replace('\'',' ',$seoit);
$seoit = str_replace(',',' ',$seoit);
$seoit = str_replace(' ','-',$seoit);
$seoit = str_replace(' ','-',$seoit);
$seoit = str_replace(' ','-',$seoit);
$seoit = str_replace(':','',$seoit);
$seoit = str_replace('#','',$seoit);
$seoit = str_replace('(','',$seoit);
$seoit = str_replace(')','',$seoit);
$seoit = str_replace('---','-',$seoit);
$seoit = str_replace('--','-',$seoit);
$seoit = strtolower($seoit);
return $seoit;
}
function makepagenavseo($start, $count, $total, $range = 0, $link = "") {
global $locale;
if ($link == "") { $link = FUSION_SELF."?"; }
$pg_cnt = ceil($total / $count);
if ($pg_cnt <= 1) { return ""; }
$idx_back = $start - $count;
$idx_next = $start + $count;
$cur_page = ceil(($start + 1) / $count);
$res = $locale['global_092']." ".$cur_page.$locale['global_093'].$pg_cnt.": ";
if($idx_back >= 0) {
if($cur_page > ($range + 1)) {
$res .= "<a href='".$link."-r0.html'>1</a>...";
}
}
$idx_fst = max($cur_page - $range, 1);
$idx_lst = min($cur_page + $range, $pg_cnt);
if ($range == 0) {
$idx_fst = 1;
$idx_lst = $pg_cnt;
}
for ($i = $idx_fst; $i <= $idx_lst; $i++) {
$offset_page = ($i - 1) * $count;
if ($i == $cur_page) {
$res .= "<span><strong>".$i."</strong></span>";
} else {
$res .= "<a href='".$link."-r".$offset_page.".html'>".$i."</a>";
}
}
if ($idx_next < $total) {
if ($cur_page < ($pg_cnt - $range)) {
$res .= "...<a href='".$link."-r".($pg_cnt - 1) * $count.".html'>".$pg_cnt."</a>\n";
}
}
return "<div class='pagenav'>\n".$res."</div>\n";
}
// Fusion v7 SEO by antiseptic - www.pcturk.org - bitiş
themes/temanızın adı/theme.php yi açıyoruz. Aşağıdaki kodu buluyoruz:
**NOT: Bu kodun aynısı olmayabilir, temadan temaya farklılık gösterebilir fakat buna benzer bir kod olmalıdır. "render_articles" fonksiyonunun kodudur.
PHP- Kodu:
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
Bununla değiştiriyoruz:
PHP- Kodu:
function render_article($subject, $article, $info, $subject) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·", $subject).itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
Aşağıdaki linkteki tüm dosyaları sitemizin ana klasörüne atıyoruz:
[SEO Turk forumlarında bulunan linkleri görebilmek için üyelik gerekmektedir. ]
Ve son olarak Yönetim Paneli -> Sistem Yönetimi -> Site Linkleri bölümünden
Forum linkini "forum/index.html"
İncelemeler linkini "makaleler.html" olarak değiştiriyoruz.
NOT: Windows Server'da çalışmaz
NOT: Copyright'ımı silmeyin. Zaten görünüm bozmuyor, köşede ufacık "SEO" yazıyor. Lütfen silmeyin. Emeğe saygı!!!