Parašė Roksys· 2010 Sau. 17 18:01:51
#1
Darasusi sitemap.xml.php, na esmė jo ta kad sugeneruoja sitemapą. Ir yra šiokia tokia bėda.
//forum_threads
$result = dbquery("SELECT 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";
Kai nueinu į sitmepą, nerodo forumo id, kokią čia klaidą įvėliau?:?
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";