The addition of the following code to postings.php will allow you to use the search-engine friendly URLs to merge threads:
Below:
PHP Code:
// get other threadid
$getthreadid=intval(substr($mergethreadurl,strpos($mergethreadurl,"threadid=")+9));
Insert:
PHP Code:
// Hack: Work with search-engine friendly links
$getsearchfriendlythreadid=intval(substr($mergethreadurl,strpos($mergethreadurl,"/t")+2));
if ($getthreadid==0) {
$getthreadid=$getsearchfriendlythreadid;
}
// End hack: Work with search-engine friendly links
This will only work if your new url's contain "/t<threadnumber>". If you are using a different prefix, you'll need to alter the script accordingly, where the "2" equals the number of characters within the quotes. Also, if your forum resides in a directory that starts with the letter "t" this will not work for you. You'll need to modify it.