Google arama sitemizdeki konuları indeklemesi için yapılan eklenti.
Demo: http://greensboring.com/sitemap.xml
Ekran Görüntüsü:
Site Map Yüklemesi:
1.) http://greensboring.com/download/file.php?id=5660 Linkinden dosyayı indirin.
İndirdiğiniz Dosyanın içinden çıkan "sitemap.php" açın.
- Kod: Tümünü seç
<?php
// PHPBB 3.0 Olympus Class Sitemap Modification
// Version 12 - August 11, 2010
// Copyright 2010 Liv Jones - Greensboring.com
// Support or to download the latest:
// http://greensboring.com/viewtopic.php?f=23&t=1563
// If your PHPBB installation is in a subdomain or folder
// you may need to adjust the following variables:
// EXAMPLES:
// Example: $subdomain='www.';
// Example: $domain='sitenizinadresi.com';
// Example: $path='/';
// Example: $urls=50000; (Kaç urls index?)
// CUSTOM INSTALLATION VARIABLES:
$subdomain='';
$domain=$_SERVER['HTTP_HOST'];
$folder='/';
$urls=50000;
// Change Nothing Below Here:
// ********************************************************************
$domainpath='http://'.$subdomain.$domain.$folder;
// Connect
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'config.' . $phpEx);
include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
$db = new $sql_db();
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false);
// Initiate Engines for countdown start
$file = $domainpath . 'index.' . $phpEx;
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $file);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$fil3 = curl_exec($ch);
curl_close($ch);
$url=base64_decode('aHR0cDovL2dyZWVuc2JvcmluZy5jb20=');
if (strpos($fil3,$url) === FALSE)
{echo 'Something went wrong, check your path first: '.$domainpath.'<br>';
die(base64_decode('UGxlYXNlIGFkZCBsaW5rIHRvIGdyZWVuc2JvcmluZy5jb20gb24geW91ciBpbmRleCBwYWdlIGZvciB0aGUgc2l0ZW1hcCB0byB3b3JrLCBpZiB5b3UgbmVlZCBhc3Npc3RhbmNlLCBwbGVhc2UgcmVmZXIgdG8gdGhpcyB3ZWJwYWdlOiA8YSBocmVmPSJodHRwOi8vZ3JlZW5zYm9yaW5nLmNvbS92aWV3dG9waWMucGhwP2Y9MjMmdD0xNTYzIj5odHRwOi8vZ3JlZW5zYm9yaW5nLmNvbS92aWV3dG9waWMucGhwP2Y9MjMmdD0xNTYzPC9hPiAtIFRoYW5rcyE='));}
// Send Header
header("Content-Type: text/xml;charset=iso-8859-1");
// Send initial Data
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'."\n";
// Send Index
$current_time=time();
echo '<url>
<loc>'.$domainpath.'</loc>
<lastmod>'.date("Y-m-d\TH:i:sP",$current_time).'</lastmod>
</url>';
$urls=$urls-1;
// Send Forums
$sql = 'SELECT * FROM '.$table_prefix.'forums WHERE enable_indexing=1 LIMIT '.$urls;
$result = $db->sql_query($sql);
while ($data=$db->sql_fetchrow($result)) {
// Fix for parents forums showing 1969
if ($data['forum_last_post_time'] == 0) {
$data['forum_last_post_time']=$current_time;}
echo '<url>
<loc>'.$domainpath.'viewforum.php?f='.$data['forum_id'].'</loc>
<lastmod>'.date("Y-m-d\TH:i:sP",$data['forum_last_post_time']).'</lastmod>
</url>';
$urls=$urls-1;
}
// Send Topics
$sql = 'SELECT * FROM '.$table_prefix.'topics as t, '.$table_prefix.'forums as f WHERE t.topic_approved=1 AND t.forum_id=f.forum_id AND f.enable_indexing=1 ORDER BY t.topic_id DESC LIMIT '.$urls;
$result = $db->sql_query($sql);
while ($data=$db->sql_fetchrow($result)) {
echo '<url>
<loc>'.$domainpath.'viewtopic.php?f='.$data['forum_id'].'&t='.$data['topic_id'].'</loc>
<lastmod>'.date("Y-m-d\TH:i:sP",$data['topic_last_post_time']).'</lastmod>
</url>';
}
// Send Closing Tags
echo ' </urlset>';
// LICENSE: You are free to use and distribute this software for personal purposes under the parameters that a link to its distribution website at Greensboring.com be placed on the website it's being used.
// (Well that and it would be super lovely, and we love you long time.)
// Better yet, I'm looking for a job abroad in Brussels, or the U.K.
// Feel free to contact me if you'd like to offer me one!
// liv@greensboring.com
?>
- Kod: Tümünü seç
// Example: $path='/forum/';
yukarda yazan yeri root > forum ise bu şekil yapın.
2.) root > index.php aç düzenle:
Bul:
- Kod: Tümünü seç
'TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], $total_posts),
Sonra Ekle: (Modu yayınlayanın linkini olduğu gibi bırakın emeğe sayğı ! )
- Kod: Tümünü seç
'SITE_MAP' => '<a href="sitemap.php" title="sitemap" rel="alternate" type="application/rss+xml">SiteMap</a> by <a href="http://greensboring.com/">Greensboring.com - Outside the media. Beyond the News.</a>',
3.) Tema dosyanızı bulun.
styles > temanız > template > index_body.html aç
Bul:
- Kod: Tümünü seç
<!-- INCLUDE overall_footer.html -->
Önceki Satıra Ekle:
- Kod: Tümünü seç
{SITE_MAP}
ekleyin yada oluşturun (yoksa) .htaccess file
- Kod: Tümünü seç
Options +FollowSymlinks
RewriteEngine on
RewriteRule sitemap.xml sitemap.php [NC]
Site map dosyanızı Google tanıtın. http://google.com/webmasters/sitemaps/
Site map dosyanızı Yahoo tanıtın. https://siteexplorer.search.yahoo.com/submit
Diğerleri içinde yöntem aynı !
Bu eklentinin tek kötü yanı sitenizde seo yüklü olsa bile indexlemeyi yinede
Örnek: http://www.sitem.com/konu-1.html
http://www.sitem.com/viewtopic.php?f=6&t=3329 şeklinde alması. Bunun çözümünü bulan varsa süper olacak.