I will post on how to implement it here.
First thing you need to do is generate the URLs at runtime, something like this:
function url_parse($module, $arguments) {
$out = "/$module/";
foreach ($arguments as $name => $value) {
# If this argument is numeric:
if (is_numeric($name)) {
# Then its an argument without a value:
$out .= "$value/";
} else {
# If not then its an argument with a value:
$out .= "$name:$value/";
}
}
return $out;
}
You would call that function with code like this:
echo url_parse('viewtopic', array(
'id' => 4574,
'this' => 'that',
'something',
))
This would output a url like this:
/viewtopic/id:4574/this:that/something/
Thats all you need to generate the urls. Please note that this can also be used to generate the standard url.
Now for the fun part, making apache load the viewtopic.php file:
Make a .htaccess file with the following code:
Simple isn't it?