[ticket/13062] Add viewforum.php core event to modify topic ids sql query

Event request: http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=45383

<a href="https://tracker.phpbb.com/browse/PHPBB3-13062">PHPBB3-13062</a>.