Not tested this, but this should work. It's an altered version of my own query.
Now in your templates, use "{$threads}" and it'll display like this:
Changing The Way MyBB Does Threads (Eric J.)
That should give you a basic idea of how to work it, but as I say, I'm not 100% sure it'll work.
E: Missed some of your post, but this is what needs to be done to display all threads.
E2: And the classes are tid1, tid2, etc. ZiNgA mentions doing it with xThreads below, but since I was doing this, I figured it could be easily integrated.