عرض مشاركة واحدة
قديم 06-06-2019, 11:17 PM
المشاركة 8
Mohamed yasser
مشرف قسم تطوير المواقع
.:: مطور لغة PHP ::.
  • Mohamed yasser غير متواجد حالياً
افتراضي رد: خريطة منتداك بصيغة php , خريطة منتداك بصيغة sitemap.php , وسر ظهور Noindex
جرب ده لاني نسيت اعمل التحديد
كود PHP:
<?php 
require('./global.php'); 
$siteurl "https://www.helpernt.com/vb"

header('Content-type: text/xml'); 

echo 
"<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n"
echo 
"<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd\">"


$result mysql_query("SELECT title, threadid , forumid FROM thread ORDER BY threadid desc"); 
while(
$row mysql_fetch_assoc($result)) 

if(
$row['forumid'] != AND  $row['forumid'] != 1

echo 
"\n<url>\n<loc>".$siteurl."/showthread.php?t=".$row["threadid"]."</loc>\n<changefreq>daily</changefreq>\n</url>"



echo 
"\n</urlset>"
?>