in showflat.tpl :
twitter and facebook's url is bound to $facebookURL .
The generated URL is "ubbthreads.php?ubb=showflat&Number=xxxxx"
which is not url-friendly.
I've enabled "Spider-friendly URLs" , so the $facebookURL should honor the parameter , and generate the url-friendly URL , such as "/ubbthreads.php/topics/xxxxx"