[ticket/12217] Add more template events to viewtopic_body.html

Add viewtopic template events before/after the posts,
after the sorting options to allow adding contents to
respective places (like advertisement and so on).

<a href="http://tracker.phpbb.com/browse/PHPBB3-12217">PHPBB3-12217</a>.