|
View previous topic :: View next topic
|
| Author |
Message |
AlperBALCI
Site Yöneticisi

Joined: 09.11.08 Posts: 103 Location: İstanbul / Türkiye
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: SEO uygulamaları ve Google Optimizasyonu
|
|
Başlıkta belirtilen konudaki fikir ve önerilerinizi bu bölümde belirtebilirsiniz.
İlk örnek olarak şu linki açıklayacağız.
http://www.evo-turkish.com/haberler-rss.xml
Bildiğiniz gibi Nuke Evolution bu tür *.xml dosyalar vermiyor.
Ama Google da bunu istiyor.
Çözüm az sonra bu başlığın altında olacak.
|
Şans Gölgeniz Olsun, Hiç Peşinizi Bırakmasın!!!
|
|
|
Back to top
|
|
|
AlperBALCI
Site Yöneticisi

Joined: 09.11.08 Posts: 103 Location: İstanbul / Türkiye
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Re: SEO uygulamaları ve Google Optimizasyonu
|
|
Yukarıda bahsedilen, *.xml şeklinde içeriğin oluşması için,
Örnek Link: http://www.evo-turkish.com/haberler-rss.xml
.htaccess dosyanızı açınız.
Önce haberler-rss.xml ve haberler-rss.php yi sitenizin ana dizininin içine atın.
Aşağıdaki kodu .htaccess dosyasının içinde herhangi bir yere yapıştırın.
| Quote:
|
|
RewriteRule ^haberler-rss.xml$ haberler-rss.php [L]
|
haberler-rss.xml dosyasının içeriği aşağıdaki şekildedir.
| PHP:
|
<?php include("mainfile.php"); header("Content-Type: text/xml"); $result = $db->sql_query("SELECT sid, title, hometext FROM "._STORIES_TABLE." ORDER BY sid DESC limit 10");
if (!result) { echo "Bir Hata Oluştu"; } else { echo "<?xml version=\"1.0\" encoding=\"utf-8\"?> "; echo "<rss version=\"2.0\" "; echo " xmlns:dc=\"http://purl.org/dc/elements/1.1/\" "; echo " xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\" "; echo " xmlns:admin=\"http://webns.net/mvcb/\" "; echo " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">
"; echo "<channel> "; echo "<title>Haber Akışları - Evo-Turkish.Com</title> "; echo "<link>$nukeurl</link> "; echo "<description>".htmlspecialchars($backend_title)."</description> "; echo "<language>$backend_language</language>
";
while (list($sid, $title, $hometext) = $db->sql_fetchrow($result)) { echo "<item> "; echo "<title>".$title."</title> "; echo "<link>$nukeurl/modules.php?name=News&file=article&sid=$sid</link> "; echo "<description>".htmlspecialchars($hometext)."</description> "; echo "</item>
"; } echo "</channel> "; echo "</rss>"; }
?>
|
haberler-rss.php dosyasının içeriği de aşağıdaki şekildedir.
| PHP:
|
<?php include("mainfile.php"); header("Content-Type: text/xml"); $result = $db->sql_query("SELECT sid, title, hometext FROM "._STORIES_TABLE." ORDER BY sid DESC limit 10");
if (!result) { echo "Bir Hata Oluştu"; } else { echo "<?xml version=\"1.0\" encoding=\"utf-8\"?> "; echo "<rss version=\"2.0\" "; echo " xmlns:dc=\"http://purl.org/dc/elements/1.1/\" "; echo " xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\" "; echo " xmlns:admin=\"http://webns.net/mvcb/\" "; echo " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">
"; echo "<channel> "; echo "<title>Haber Akışları - Evo-Turkish.Com</title> "; echo "<link>$nukeurl</link> "; echo "<description>".htmlspecialchars($backend_title)."</description> "; echo "<language>$backend_language</language>
";
while (list($sid, $title, $hometext) = $db->sql_fetchrow($result)) { echo "<item> "; echo "<title>".$title."</title> "; echo "<link>$nukeurl/modules.php?name=News&file=article&sid=$sid</link> "; echo "<description>".htmlspecialchars($hometext)."</description> "; echo "</item>
"; } echo "</channel> "; echo "</rss>"; }
?>
|
Bu kodlar Nuke Evolution 2.1.0 için uyumlu hale getirilmiştir.
Yukarıdaki örneklere bakarak, değişik eklentilere ait (Downloads, Topics, Contents vs vs) *.xml dosyaları da kolaylıkla üretilebilir.
|
Şans Gölgeniz Olsun, Hiç Peşinizi Bırakmasın!!!
|
|
|
Back to top
|
|
|
gkhnd
Site Üyesi
Joined: 20.12.08 Posts: 43
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Ynt: SEO uygulamaları ve Google Optimizasyonu
|
|
|
güzel bi eklenti sağolasın hocam site açılır açılmaz deneyeceğim malum host...
|
|
|
|
Back to top
|
|
|
AlperBALCI
Site Yöneticisi

Joined: 09.11.08 Posts: 103 Location: İstanbul / Türkiye
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Re: SEO uygulamaları ve Google Optimizasyonu
|
|
Elim değmişken forumlar versiyonunu da yapmadan duramadım. :)
.htaccess dosyanıza bunu ekleyin.
| Quote:
|
|
RewriteRule ^forumlar-rss.xml$ forumlar-rss.php [L]
|
forumlar-rss.xml dosyasının içine şunu yazın.
| PHP:
|
<?php include("mainfile.php"); header("Content-Type: text/xml"); $result = $db->sql_query("SELECT t.topic_id, t.topic_title, t.topic_last_post_id FROM ".TOPICS_TABLE." t, ".FORUMS_TABLE." f WHERE t.forum_id=f.forum_id AND f.auth_view=0 ORDER BY t.topic_last_post_id DESC limit 10");
if (!result) { echo "Bir Hata Oluştu"; } else { echo "<?xml version=\"1.0\" encoding=\"utf-8\"?> "; echo "<rss version=\"2.0\" "; echo " xmlns:dc=\"http://purl.org/dc/elements/1.1/\" "; echo " xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\" "; echo " xmlns:admin=\"http://webns.net/mvcb/\" "; echo " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">
"; echo "<channel> "; echo "<title>Forum Başlıkları - Evo-Turkish.Com</title> "; echo "<link>$nukeurl</link> "; echo "<description>".htmlspecialchars($backend_title)."</description> "; echo "<language>$backend_language</language>
";
while(list($topic_id, $topic_title, $topic_last_post_id) = $db->sql_fetchrow($result)) { $topic_title = set_smilies(decode_bbcode(check_words(stripslashes($topic_title)), 0, true), $nukeurl); $result2 = $db->sql_query("SELECT pt.post_text, p.post_time, u.username, u.user_level FROM ".POSTS_TEXT_TABLE." pt, ".POSTS_TABLE." p, "._USERS_TABLE." u WHERE pt.post_id = p.post_id AND u.user_id = p.poster_id AND p.post_id='$topic_last_post_id'"); list($desc, $post_time, $username, $userlevel) = $db->sql_fetchrow($result2); $desc = set_smilies(decode_bbcode(stripslashes($desc), 0, true), $nukeurl); if ( !empty($username) && $userlevel != -1) { $informant_email = get_user_field('user_email', $username, false); $informant = ( !empty($informant_email) ) ? $informant_email . ' ('.$username.')' : $adminmail . ' (Webmaster)'; } else { $informant = $adminmail . ' (Webmaster)'; }
echo "<item> "; echo "<title>".htmlspecialchars($topic_title)."</title> "; echo "<link>$nukeurl/modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id</link> "; echo "<description>".htmlspecialchars($desc)."</description> "; echo "</item>
"; } echo "</channel> "; echo "</rss>"; }
?>
|
forumlar-rss.php dosyasının içine şunu yazın.
| PHP:
|
<?php include("mainfile.php"); header("Content-Type: text/xml"); $result = $db->sql_query("SELECT t.topic_id, t.topic_title, t.topic_last_post_id FROM ".TOPICS_TABLE." t, ".FORUMS_TABLE." f WHERE t.forum_id=f.forum_id AND f.auth_view=0 ORDER BY t.topic_last_post_id DESC limit 10");
if (!result) { echo "Bir Hata Oluştu"; } else { echo "<?xml version=\"1.0\" encoding=\"utf-8\"?> "; echo "<rss version=\"2.0\" "; echo " xmlns:dc=\"http://purl.org/dc/elements/1.1/\" "; echo " xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\" "; echo " xmlns:admin=\"http://webns.net/mvcb/\" "; echo " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">
"; echo "<channel> "; echo "<title>Forum Başlıkları - Evo-Turkish.Com</title> "; echo "<link>$nukeurl</link> "; echo "<description>".htmlspecialchars($backend_title)."</description> "; echo "<language>$backend_language</language>
";
while(list($topic_id, $topic_title, $topic_last_post_id) = $db->sql_fetchrow($result)) { $topic_title = set_smilies(decode_bbcode(check_words(stripslashes($topic_title)), 0, true), $nukeurl); $result2 = $db->sql_query("SELECT pt.post_text, p.post_time, u.username, u.user_level FROM ".POSTS_TEXT_TABLE." pt, ".POSTS_TABLE." p, "._USERS_TABLE." u WHERE pt.post_id = p.post_id AND u.user_id = p.poster_id AND p.post_id='$topic_last_post_id'"); list($desc, $post_time, $username, $userlevel) = $db->sql_fetchrow($result2); $desc = set_smilies(decode_bbcode(stripslashes($desc), 0, true), $nukeurl); if ( !empty($username) && $userlevel != -1) { $informant_email = get_user_field('user_email', $username, false); $informant = ( !empty($informant_email) ) ? $informant_email . ' ('.$username.')' : $adminmail . ' (Webmaster)'; } else { $informant = $adminmail . ' (Webmaster)'; }
echo "<item> "; echo "<title>".htmlspecialchars($topic_title)."</title> "; echo "<link>$nukeurl/modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id</link> "; echo "<description>".htmlspecialchars($desc)."</description> "; echo "</item>
"; } echo "</channel> "; echo "</rss>"; }
?>
|
Hayırlı olsun!
Çalışan Link:
http://www.evo-turkish.com/forumlar-rss.xml
|
Şans Gölgeniz Olsun, Hiç Peşinizi Bırakmasın!!!
|
|
|
Back to top
|
|
|
AlperBALCI
Site Yöneticisi

Joined: 09.11.08 Posts: 103 Location: İstanbul / Türkiye
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Re: SEO uygulamaları ve Google Optimizasyonu
|
|
Bazen BBCode sistemi kodun içinde (güvenlik nedeniyle) bazı yerleri değiştirebiliyor.
Dosya olarak da ekliyorum.
Düzenlemeye zahmet edemeyecek kişiler için.
|
Şans Gölgeniz Olsun, Hiç Peşinizi Bırakmasın!!!
|
|
|
Back to top
|
|
|
gkhnd
Site Üyesi
Joined: 20.12.08 Posts: 43
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Ynt: SEO uygulamaları ve Google Optimizasyonu
|
|
|
eline sağlık hocam sitedeki sorunu bulur bulmaz hemen deniycem, çok büyük eksiklikti halloldu gibi
|
|
|
|
Back to top
|
|
|
gkhnd
Site Üyesi
Joined: 20.12.08 Posts: 43
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Ynt: SEO uygulamaları ve Google Optimizasyonu
|
|
forumlar-rss.xml MRSS Yayını 11 dakika önce Hatalar 11
hocam forumlar-rss.xml dosyasını google sitemap olarak idexlemiyor hata veriyor.Bilginize
MRSS dosyası olarak görüyor.
haberler xml de sorun yok google varsayilanliyor
|
|
|
|
Back to top
|
|
|
gonlumungulu
Site Üyesi
Joined: 27.02.09 Posts: 3 Location: Elazığ
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Ynt: SEO uygulamaları ve Google Optimizasyonu
|
|
|
Paylaşım için teşekürler daha onceden forum.xml ugrasmıstım ama bir turlu yapamamıstım. tekrar tesekürler.
|
|
|
|
Back to top
|
|
|
gonlumungulu
Site Üyesi
Joined: 27.02.09 Posts: 3 Location: Elazığ
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Ynt: SEO uygulamaları ve Google Optimizasyonu
|
|
|
Bu forumlar-rss.xml Rss içeriği gösterilmiyor . php nuke Sürümden olabilirmi
|
|
|
|
Back to top
|
|
|
gkhnd
Site Üyesi
Joined: 20.12.08 Posts: 43
Status: Offline
|
Posted: 27.02.09
|
|
Post subject: Re: Ynt: SEO uygulamaları ve Google Optimizasyonu
|
|
| gonlumungulu wrote (View Post):
|
|
Bu forumlar-rss.xml Rss içeriği gösterilmiyor . php nuke Sürümden olabilirmi
|
evo-rc2 beta nın sql sorguları hızlandırılmış ve daha güvenli hale getirilmiştir.
Normal nuke sql sorgu kodlarından çok farklıdır. Alper Beyin verdiği evo sürümü için sizde sql sorguları değiştirip deneyin.
bende içerik gösteriyor;
fakat google site haritası ekle bolumune eklediğimde MRSS dosyası olarak görüyor ve google kaydetmiyor, hatalar oluştu ibaresi veriyor.
|
|
|
|
Back to top
|
|
|
|
|