IPB:
vBulletin:
phpBB 3:
Basically what it does, it creates a list of links from your forum in one page. I've yet to test how good it is with Google, but I'll work in making it search engine friendly later.
Demo:
I've edited it for IPB/vB/phpBB 3, I have not yet tested it with phpBB 3, so if anyone runs a forum with phpBB 3, please test it if you can.
What you should know:
If your forums uses mysql table prefix. Change, ex:
Feel free to play around, and throw in some suggestions/ideas.
PHP:
<?php
// Index Site Topics (c) xSaimex[dot]com
// v0.1
// IPB Version
$host = ''; // e.g localhost
$user = ''; // e.g root
$pass = ''; // e.g 123
$db = ''; // e.g forum
mysql_connect("$host", "$user", "$pass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());
$result = mysql_query("SELECT tid,title FROM topics")
or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<title>TopicMap</title>";
echo "<a href=\"index.php?showtopic=$row[tid]\"><b>$row[title]</b></a>";
echo "<br>";
}
?>
PHP:
<?php
// Index Site Topics (c) xSaimex[dot]com
// v0.1
// vBulletin Version
$host = ''; // e.g localhost
$user = ''; // e.g root
$pass = ''; // e.g 123
$db = ''; // e.g forum
mysql_connect("$host", "$user", "$pass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());
$result = mysql_query("SELECT threadid,title FROM thread")
or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<title>TopicMap</title>";
echo "<a href=\"showthread.php?t=$row[threadid]\"><b>$row[title]</b></a>";
echo "<br>";
}
?>
PHP:
<?php
// Index Site Topics (c) xSaimex[dot]com
// v0.1
// phpBB Version
$host = ''; // e.g localhost
$user = ''; // e.g root
$pass = ''; // e.g 123
$db = ''; // e.g forum
mysql_connect("$host", "$user", "$pass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());
$result = mysql_query("SELECT topic_id,forum_id,topic_title FROM phpbb_topics")
or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<title>TopicMap</title>";
echo "<a href=\"viewtopic.php?f=$row[forum_id]&t=$row[topic_id]\"><b>$row[topic_title]</b></a>";
echo "<br>";
}
?>
Demo:
Code:
http://xsaimex.com/topicmap.php
What you should know:
If your forums uses mysql table prefix. Change, ex:
PHP:
SELECT topic_id,forum_id,topic_title FROM phpbb_topics
to
SELECT topic_id,forum_id,topic_title FROM PREFIX_topics