A good rule of thumb, for when you decide you want to customize pages; look at the URL of the page you're viewing, it says what template file to edit...
For example, the script to this discussion is:
ubbthreads.php?ubb=showflat&Number=181711#Post181711
From that we see ubb= is showflat, which would be the showflat.tpl file.