<{if $tagbar}>
<{includeq file="db:tag_bar.tpl"}>
<{/if}>
<{if $online}>
<{/if}>
<{if $viewer_level gt 1}>
<{if $mode gt 1}>
<{*-- irmtfan mistype forum_posts_admin => form_posts_admin - action="topicmanager.php" => action="action.post.php" --*}>
<{/if}>
<{* irmtfan add $mode to not show polls in admin mode *}>
<{if ($mode lte 1) && $topic_poll}>
<{if $topic_pollresult}>
<{includeq file="db:newbb_poll_results.html" poll=$poll}>
<{else}>
<{includeq file="db:newbb_poll_view.html" poll=$poll}>
<{/if}>
<{/if}>
<{$smarty.const._MD_TOPICOPTION}>
<{if $viewer_level gt 1}>
<{foreach item=act from=$admin_actions}>
<{$act.name}>
<{/foreach}>
<{/if}>
<{if count($adminpoll_actions) > 0}>
--------
<{$smarty.const._MD_POLLOPTIONADMIN}>
<{foreach item=actpoll from=$adminpoll_actions}>
<{$actpoll.name}>
<{/foreach}>
<{/if}>
<{* -- irmtfan user should not see rating if no permission -- *}>
<{if $rating_enable && $forum_post && $forum_reply}>
<{$smarty.const._MD_RATE}>
<{$smarty.const._MD_RATE5}>
<{$smarty.const._MD_RATE4}>
<{$smarty.const._MD_RATE3}>
<{$smarty.const._MD_RATE2}>
<{$smarty.const._MD_RATE1}>
<{/if}>
<{$smarty.const._MD_VIEWMODE}>
<{foreach item=act from=$viewmode_options}>
<{$act.title}>
<{/foreach}>
<{if $mode lte 1}>
<{/if}>
<{* -- irmtfan hardcode removed style="float: right; text-align:right;" --*}>
<{$forum_page_nav|replace:'form':'div'|replace:'id="xo-pagenav"':''}>
<{if $viewer_level gt 1 && $topic_status == 1}>
<{$smarty.const._MD_TOPICLOCK}>
<{/if}>
<{*-- irmtfan remove here and move to the newbb_thread.html
<{if $post_id == 0}>
<{/if}>
--*}>
<{foreach item=topic_post from=$topic_posts}>
<{includeq file="db:newbb_thread.html" topic_post=$topic_post mode=$mode}>
<{foreachelse}>
<{$smarty.const._MD_ERRORPOST}>
<{/foreach}>
<{if $mode gt 1}>
<{/if}>
<{$forum_page_nav|replace:'form':'div'|replace:'id="xo-pagenav"':''}> <{*-- irmtfan to solve nested forms and id="xo-pagenav" issue --*}>
<{$forum_reply}> <{$forum_addpoll}> <{$forum_post_or_register}>
<{if $quickreply.show}>
<{/if}>
<{*-- irmtfan hardcode removed style="float: left; text-align: left;" --*}>
<{foreach item=perm from=$permission_table}>
<{$perm}>
<{/foreach}>
<{*-- irmtfan hardcode removed style="float: right; text-align: right;" --*}>
<{includeq file='db:newbb_notification_select.html'}>
<{*-- irmtfan remove
-- end of irmtfan remove *}>