Buna tam bir eklenti demek ne kadar doğru bunu bilmiyorum. Buna anca üstadlarım karar verir. Şunu söylemem gerekir ki plug-in yazmayı bilmiyorum o nedenle sizi birazcık uğraştırıcam. Bulduğum olay tamamen mantıksal bir şey. Discription ve keywords bölümlerine o konuyla ilgili daha çok başlık ve ilgili kelime ekleyeceğiz ama asıl önemli olan ilgili keywordsler ekleyeceğiz.Bunu da otomatik olarak yapacağız
Mantık aşağıdaki gibi. Başık kodlarını filan yazdımda tag eklentisindeki isimlerin oraya otomatik olarak geçmesini sağlayacak kodu bulamadım eğer bulan varsa birisi yapsın.
biçimler/headinclude templatesini açın
Bunu bulun
PHP- Kodu:
< meta name = "keywords" content = "$threadinfo[title], $vboptions[keywords]" />
< meta name = "description" content = "<if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
Bununla Değiştirin
PHP- Kodu:
< meta name = "keywords" content = "$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
< meta name = "description" content = "$foruminfo[forumdescription]. <if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
Bunu bulun
PHP- Kodu:
< meta name = "keywords" content = "$foruminfo[title_clean], $vboptions[keywords]" />
< meta name = "description" content = "<if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
Bununla değiştirin
PHP- Kodu:
< meta name = "keywords" content = "$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
< meta name = "description" content = "$foruminfo[forumdescription]. <if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
Olay tamamen bundan ibaret kodları biraz incelerseniz mantığı zaten keşfedeceksiniz.
Eklenti tamamen bana aittir
Templatesinde daha önce değişiklik yapmamış olan arkadaşlar için kodları değiştirilmiş hazır halde de veriyorum...
PHP- Kodu:
< meta http - equiv = "Content-Type" content = "text/html; charset=$stylevar[charset]" />< meta name = "generator" content = "vBulletin $vboptions[templateversion]" /><if condition = "$show['threadinfo']" >< meta name = "keywords" content = "$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
< meta name = "description" content = "$foruminfo[forumdescription]. <if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else /><if condition = "$show['foruminfo']" >< meta name = "keywords" content = "$foruminfo[title_clean], $vboptions[keywords]" />
< meta name = "description" content = "<if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />< meta name = "keywords" content = "$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
< meta name = "description" content = "$foruminfo[forumdescription]. <if condition=" $pagenumber > 1 "><phrase 1=" $pagenumber ">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
</if></if><!-- CSS ++++++++++ -->
$style [ css ]
<if condition = "is_browser('opera') AND !is_browser('opera', '8.0.1')" >
< style type = "text/css" id = "vbulletin_opera8fix_css" >
ul , ol { padding - $stylevar [ left ]: 20px ; }
</ style >
</if>
<if condition = "$show['editor_css']" >
$editor_css
</if>
<!-- / CSS ++++++++++ -->
< script type = "text/javascript" src = "$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]" > </script>
<script type="text/javascript" src="$stylevar[yuipath]/connection/connection-min.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var SECURITYTOKEN = "$bbuserinfo[securitytoken]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&forumids=$foruminfo[forumid]" />
</if>
</if>
Yapımcı: UcTuK
Orjinal linki: