Paul,
you mention the URLS which would have to be changed in the add-ons, in the search pages, and other pages, and words removed..... With just the changes I've done above the dynamic URLs continue to work fine, however. So changing the search URLs which result is not required unless one wants to create a
completely search-engine friendly site. I am happy to rewrite my most common reference material section which does not change very often, and will leave a complete rewrite up to that person. I'm not interested in remaking your software .
It was however necessary to add the new topics and forums to the rewrite map files when they are changed . So taking the code above from bb_func_ptopic.php above and making it into the following function
function update_rewrite_txt($topic_title) {
global $db_mysql;
$f=fopen('/var/myowndictionary/current/rewrite_topic.txt',"a");
fwrite($f,"\n" . str_replace(' ','_',$topic_title)."\t". mod_queryOne($db_mysql,"select max(topic_id) from mb_topics")."\n");
fclose($f);
}
you can call the function from bb_func_editmsg.php when the topic title has been changed.
Amazingly, without urlencoding anything anywhere, just using plain text (my database tables and databases and my website are in UTF-8 encoding as it's a Korean site) .... the url redirection does work with non-ASCII characters in the forum and topic titles. My site is not broken !! However, an ugly side-effect is that non-ASCII stuff in the topic or forum name when it appears in the URL in the address bar (where you type the address in) ----- in MSIE it comes out looking just fine, but Firefox shows the URL as being all percent signs and numbers/letters which can be unreadable in firefox. The problem is browser's which do not allow for non-ASCII URLS as for example domain names in KOrean or Chinese.
A bad thing is that the rewrite_topic.txt and rewrite_forum.txt files are re-read on every page request. This is good for instant updating, but as you know system intensive in many ways. I may just move all my rules into my httpd.conf to prevent this problem.
So I would say that it works in 75% of the cases without breaking compatibility .
Have a wonderful day, Paul. Good luck to you and thank you for the software.