arkadaşlar sitemap uygulaması yazdım mkportal için, bu bence büyük bi boşluktu, öyle bi portalın sitemap eklentisi olmaması, artık var şimdilik sadece haberleri listeliyor ama ilerde downloadlar vs eklenebilir. olay bu;

1.) /mkportal/modules/news/index.php açın

Dosyanın sonunda bulun
}
?>
öncesine ekleyin;
function hk_sitemap() {
        global $mkportals, $DB, $mklib;
        
// HK Sitemaps for News -- Huseyin KELES -- www.whosayin.com -- 2008

$ust  = "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"
        xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
        xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9
                            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd/\">
";
        $query = $DB->query( "SELECT id, titolo, data, testo FROM mkp_news ORDER BY `data` DESC");
        while( $row = $DB->fetch_row($query) ) {
            $id = $row['id'];
            $tarih = gmdate('Y-m-d', $row['data']);
            $haber = "
    <url>
        <loc>$mklib->siteurl/index.php?ind=news&amp;op=news_show_single&amp;ide=$id</loc>
        <lastmod>$tarih</lastmod>
                    <changefreq>daily</changefreq>
                    <priority>0.8</priority>
    </url>";
            $icerik .= $haber;
        }
        $alt = "
</urlset>";
        $hk_sitemap_=         $ust.
                        $icerik.
                        $alt;                 
        $dosya = fopen($MK_PATH . "hk_sitemap.xml", "w");
        fwrite($dosya, $hk_sitemap_);
        fclose($dosya);

  }
2.) reg_data() fonksiyonunun içinde bulun;
$DB->close_db();
öncesine ekleyin;
$this->hk_sitemap();
3.) update_news() fonksiyonunun içinde bulun;
$DB->close_db();
öncesine ekleyin;
$this->hk_sitemap();
4.) delete_news() fonksiyonunun içinde bulun;
$DB->close_db();
öncesine ekleyin;
$this->hk_sitemap();
hepsi bu, sitemapınız site_root/hk_sitemap.xml yolunda olacak. bunu isterseniz google, yahoo gibi servislere ekleyebilirsiniz. ilerde download kısmı ve diğer kısımlar içinde sitemap oluşturtmayı düşünüyorum aynı mantıkla.

not: haberlerde deişiklik yapmadan sitemap oluşturulmaz, sitemapın oluşturulması için bi haber ekleyin yada silinki sitemap oluşturulsun. her değişiklikte otomatik güncellenecektir sitemap.

mkportal.it teki konusu;
http://mkportal.it/support/showthread.php?p=151865