@garciat
could this approach be used to make the mods "login on frontpage" and also your "users online" work via extension + change to main.tpl?
You could add a new section inside the template (include/template/main.tpl), place something like <!-- forum_newthing --> where you want to add new content, then in your hook do something like:
<hook id="ft_end"><![CDATA[ ob_start(); require_once $ext_info['path'].'/hook_ft_end.php'; $tpl_temp = forum_trim(ob_get_contents()); $tpl_main = str_replace('<!-- forum_newthing -->', $tpl_temp, $tpl_main); ob_end_clean(); ]]></hook>
Edit: Since that requires editing the template you can simple edit the one in include/template/main.tpl, but if you'd rather you could make use of the hd_pre_template_loaded hook to load a template from your extension directory instead of the default one.
part of quotes from:
http://fluxbb.org/forums/topic/2592/hoo … t-problem/