WIP #882 Add more hooks v2

> I think one also needs adding above the query to get the threads; the
amount of times I want to alter something here and it proves almost
impossible.

**Reference:**
http://community.mybb.com/thread-122419-post-884062.html#pid884062