[ticket/13025] Add template events for buttons on viewforum and viewtopic

[PHPBB3-13025](https://tracker.phpbb.com/browse/PHPBB3-13025)