Parašė And2s· 2010 Sau. 17 19:01:04
#2
//forum_threads
$result = dbquery("SELECT forum_id,thread_id, thread_subject FROM ".DB_PREFIX."threads ORDER BY thread_id ASC");
$rows = dbrows($result);
if ($rows!=0) {
while ($data = dbarray($result)) {
echo "\t<url>\n";
echo "\t\t<loc>".$settings['siteurl']."forumas/".seoname($data['thread_subject'])."-fc".$data['forum_id']."-ft".$data['thread_id'].".htm</loc>\n";
echo "\t\t<priority>0.8</priority>\n";
echo "\t\t<changefreq>daily</changefreq>\n";
echo "\t</url>\n";