MyBB Community Forums

Full Version: Sitemap MOD at the bottom for SEO
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is just a code modification that i made early today.

find in global.php:
// Send page headers
send_page_headers();

and add these lines after that:
//seoarchive mod START by FiKa

	$say = "0";
	$farsiv = "<center><table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" id=\"table1\" height=\"132\"><tr><td width=\"600\" height=\"132\"><font size=\"1\"><p align=\"center\">Sitemap done by <a href=\"http://chat.vitadin.net\" target=_blank>Vitadin Chat</a><br />\n";
$query = $db->query("SELECT tid, subject FROM ".TABLE_PREFIX."threads ORDER BY lastpost DESC LIMIT 100");
while ($thread = $db->fetch_array($query)) {
	++$say;
    $farsiv .= "<a href=\"archive/index.php/thread-$thread[tid].html\"><span style=\"text-decoration: none\"> [$say] </span></a>";
}
	$farsiv .= "</p></td></tr></table></center>";
//seoarchive mod END by fika

and open your footer template and add this where u want to show the sitemap.Bottom will be the best. Smile
{$farsiv}

You can see a demo at http://forum.vitadin.net
[Image: sitemap.JPG]

If someone can make a plugin for this please link back to the plugin description..
Surely u can edit how many post to be displayed at the bottom. Just change the limit parameter..

LIMIT 100

will display 100 lastpost at the bottom..

It s a nice future to be indexed much more.