diff --git a/C:/Users/nickv/Desktop/3.0-tpl_prosilver_viewtopic_body.html.php b/C:/Users/nickv/Desktop/3.1-tpl_prosilver_viewtopic_body.html.php
index 31e3f6f..d69dcf7 100644
--- a/C:/Users/nickv/Desktop/3.0-tpl_prosilver_viewtopic_body.html.php
+++ b/C:/Users/nickv/Desktop/3.1-tpl_prosilver_viewtopic_body.html.php
@@ -1,61 +1,108 @@
-<?php if (!defined('IN_PHPBB')) exit; $this->_tpl_include('overall_header.html'); if ($this->_rootref['U_MCP']) {  ?><p>[&nbsp;<a href="<?php echo (isset($this->_rootref['U_MCP'])) ? $this->_rootref['U_MCP'] : ''; ?>"><?php echo ((isset($this->_rootref['L_MCP'])) ? $this->_rootref['L_MCP'] : ((isset($user->lang['MCP'])) ? $user->lang['MCP'] : '{ MCP }')); ?></a>&nbsp;]</p><?php } ?>
-
-<h2><a href="<?php echo (isset($this->_rootref['U_VIEW_TOPIC'])) ? $this->_rootref['U_VIEW_TOPIC'] : ''; ?>"><?php echo (isset($this->_rootref['TOPIC_TITLE'])) ? $this->_rootref['TOPIC_TITLE'] : ''; ?></a></h2>
-<!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body --><?php if ($this->_rootref['FORUM_DESC']) {  ?><div style="display: none !important;"><?php echo (isset($this->_rootref['FORUM_DESC'])) ? $this->_rootref['FORUM_DESC'] : ''; ?><br /></div><?php } if ($this->_rootref['MODERATORS']) {  ?>
-
+<?php if (!defined('IN_PHPBB')) exit; $_template->_tpl_include('overall_header.html'); ?>
+<?php if ((isset($_rootref['U_MCP']) ? $_rootref['U_MCP'] : null)
+) {  ?><p>[&nbsp;<a href="<?php echo (isset($_rootref['U_MCP'])) ? $_rootref['U_MCP'] : ''; ?>
+"><?php echo ((isset($_rootref['L_MCP'])) ? $_rootref['L_MCP'] : ((isset($_lang['MCP'])) ? $_lang['MCP'] : '{ MCP }')); ?>
+</a>&nbsp;]</p><?php } ?>
+
+<h2><a href="<?php echo (isset($_rootref['U_VIEW_TOPIC'])) ? $_rootref['U_VIEW_TOPIC'] : ''; ?>
+"><?php echo (isset($_rootref['TOPIC_TITLE'])) ? $_rootref['TOPIC_TITLE'] : ''; ?>
+</a></h2>
+<!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body -->
+<?php if ((isset($_rootref['FORUM_DESC']) ? $_rootref['FORUM_DESC'] : null)
+) {  ?><div style="display: none !important;"><?php echo (isset($_rootref['FORUM_DESC'])) ? $_rootref['FORUM_DESC'] : ''; ?>
+<br /></div><?php } ?>
+
+
+<?php if ((isset($_rootref['MODERATORS']) ? $_rootref['MODERATORS'] : null)
+) {  ?>
 <p>
-			<strong><?php if ($this->_rootref['S_SINGLE_MODERATOR']) {  echo ((isset($this->_rootref['L_MODERATOR'])) ? $this->_rootref['L_MODERATOR'] : ((isset($user->lang['MODERATOR'])) ? $user->lang['MODERATOR'] : '{ MODERATOR }')); } else { echo ((isset($this->_rootref['L_MODERATORS'])) ? $this->_rootref['L_MODERATORS'] : ((isset($user->lang['MODERATORS'])) ? $user->lang['MODERATORS'] : '{ MODERATORS }')); } ?>:</strong> <?php echo (isset($this->_rootref['MODERATORS'])) ? $this->_rootref['MODERATORS'] : ''; ?>
+	<strong><?php if ((isset($_rootref['S_SINGLE_MODERATOR']) ? $_rootref['S_SINGLE_MODERATOR'] : null)
+) {   echo ((isset($_rootref['L_MODERATOR'])) ? $_rootref['L_MODERATOR'] : ((isset($_lang['MODERATOR'])) ? $_lang['MODERATOR'] : '{ MODERATOR }')); ?>
+<?php } else {  echo ((isset($_rootref['L_MODERATORS'])) ? $_rootref['L_MODERATORS'] : ((isset($_lang['MODERATORS'])) ? $_lang['MODERATORS'] : '{ MODERATORS }')); ?>
+<?php } ?>:</strong> <?php echo (isset($_rootref['MODERATORS'])) ? $_rootref['MODERATORS'] : ''; ?>
 
-	</p>
-<?php } if ($this->_rootref['S_FORUM_RULES']) {  ?>
+</p>
+<?php } ?>
 
+<?php if ((isset($_rootref['S_FORUM_RULES']) ? $_rootref['S_FORUM_RULES'] : null)
+) {  ?>
 	<div class="rules">
-		<div class="inner"><span class="corners-top"><span></span></span>
+		<div class="inner">
 
-		<?php if ($this->_rootref['U_FORUM_RULES']) {  ?>
-
-			<a href="<?php echo (isset($this->_rootref['U_FORUM_RULES'])) ? $this->_rootref['U_FORUM_RULES'] : ''; ?>"><?php echo ((isset($this->_rootref['L_FORUM_RULES'])) ? $this->_rootref['L_FORUM_RULES'] : ((isset($user->lang['FORUM_RULES'])) ? $user->lang['FORUM_RULES'] : '{ FORUM_RULES }')); ?></a>
+		<?php if ((isset($_rootref['U_FORUM_RULES']) ? $_rootref['U_FORUM_RULES'] : null)
+) {  ?>
+			<a href="<?php echo (isset($_rootref['U_FORUM_RULES'])) ? $_rootref['U_FORUM_RULES'] : ''; ?>
+"><?php echo ((isset($_rootref['L_FORUM_RULES'])) ? $_rootref['L_FORUM_RULES'] : ((isset($_lang['FORUM_RULES'])) ? $_lang['FORUM_RULES'] : '{ FORUM_RULES }')); ?>
+</a>
 		<?php } else { ?>
 
-			<strong><?php echo ((isset($this->_rootref['L_FORUM_RULES'])) ? $this->_rootref['L_FORUM_RULES'] : ((isset($user->lang['FORUM_RULES'])) ? $user->lang['FORUM_RULES'] : '{ FORUM_RULES }')); ?></strong><br />
-			<?php echo (isset($this->_rootref['FORUM_RULES'])) ? $this->_rootref['FORUM_RULES'] : ''; ?>
+			<strong><?php echo ((isset($_rootref['L_FORUM_RULES'])) ? $_rootref['L_FORUM_RULES'] : ((isset($_lang['FORUM_RULES'])) ? $_lang['FORUM_RULES'] : '{ FORUM_RULES }')); ?>
+</strong><br />
+			<?php echo (isset($_rootref['FORUM_RULES'])) ? $_rootref['FORUM_RULES'] : ''; ?>
 
 		<?php } ?>
 
 
-		<span class="corners-bottom"><span></span></span></div>
+		</div>
 	</div>
 <?php } ?>
 
-
 <div class="topic-actions">
 
 	<div class="buttons">
-	<?php if (! $this->_rootref['S_IS_BOT'] && $this->_rootref['S_DISPLAY_REPLY_INFO']) {  ?>
-
-		<div class="<?php if ($this->_rootref['S_IS_LOCKED']) {  ?>locked-icon<?php } else { ?>reply-icon<?php } ?>"><a href="<?php echo (isset($this->_rootref['U_POST_REPLY_TOPIC'])) ? $this->_rootref['U_POST_REPLY_TOPIC'] : ''; ?>" title="<?php if ($this->_rootref['S_IS_LOCKED']) {  echo ((isset($this->_rootref['L_TOPIC_LOCKED'])) ? $this->_rootref['L_TOPIC_LOCKED'] : ((isset($user->lang['TOPIC_LOCKED'])) ? $user->lang['TOPIC_LOCKED'] : '{ TOPIC_LOCKED }')); } else { echo ((isset($this->_rootref['L_POST_REPLY'])) ? $this->_rootref['L_POST_REPLY'] : ((isset($user->lang['POST_REPLY'])) ? $user->lang['POST_REPLY'] : '{ POST_REPLY }')); } ?>"><span></span><?php if ($this->_rootref['S_IS_LOCKED']) {  echo ((isset($this->_rootref['L_TOPIC_LOCKED_SHORT'])) ? $this->_rootref['L_TOPIC_LOCKED_SHORT'] : ((isset($user->lang['TOPIC_LOCKED_SHORT'])) ? $user->lang['TOPIC_LOCKED_SHORT'] : '{ TOPIC_LOCKED_SHORT }')); } else { echo ((isset($this->_rootref['L_POST_REPLY'])) ? $this->_rootref['L_POST_REPLY'] : ((isset($user->lang['POST_REPLY'])) ? $user->lang['POST_REPLY'] : '{ POST_REPLY }')); } ?></a></div>
+	<?php if (! (isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+ && (isset($_rootref['S_DISPLAY_REPLY_INFO']) ? $_rootref['S_DISPLAY_REPLY_INFO'] : null)
+) {  ?>
+		<div class="<?php if ((isset($_rootref['S_IS_LOCKED']) ? $_rootref['S_IS_LOCKED'] : null)
+) {  ?>locked-icon<?php } else { ?>reply-icon<?php } ?>"><a href="<?php echo (isset($_rootref['U_POST_REPLY_TOPIC'])) ? $_rootref['U_POST_REPLY_TOPIC'] : ''; ?>
+" title="<?php if ((isset($_rootref['S_IS_LOCKED']) ? $_rootref['S_IS_LOCKED'] : null)
+) {   echo ((isset($_rootref['L_TOPIC_LOCKED'])) ? $_rootref['L_TOPIC_LOCKED'] : ((isset($_lang['TOPIC_LOCKED'])) ? $_lang['TOPIC_LOCKED'] : '{ TOPIC_LOCKED }')); ?>
+<?php } else {  echo ((isset($_rootref['L_POST_REPLY'])) ? $_rootref['L_POST_REPLY'] : ((isset($_lang['POST_REPLY'])) ? $_lang['POST_REPLY'] : '{ POST_REPLY }')); ?>
+<?php } ?>"><span></span><?php if ((isset($_rootref['S_IS_LOCKED']) ? $_rootref['S_IS_LOCKED'] : null)
+) {   echo ((isset($_rootref['L_TOPIC_LOCKED_SHORT'])) ? $_rootref['L_TOPIC_LOCKED_SHORT'] : ((isset($_lang['TOPIC_LOCKED_SHORT'])) ? $_lang['TOPIC_LOCKED_SHORT'] : '{ TOPIC_LOCKED_SHORT }')); ?>
+<?php } else {  echo ((isset($_rootref['L_POST_REPLY'])) ? $_rootref['L_POST_REPLY'] : ((isset($_lang['POST_REPLY'])) ? $_lang['POST_REPLY'] : '{ POST_REPLY }')); ?>
+<?php } ?></a></div>
 	<?php } ?>
 
 	</div>
 
-	<?php if ($this->_rootref['S_DISPLAY_SEARCHBOX']) {  ?>
-
+	<?php if ((isset($_rootref['S_DISPLAY_SEARCHBOX']) ? $_rootref['S_DISPLAY_SEARCHBOX'] : null)
+) {  ?>
 		<div class="search-box">
-			<form method="get" id="topic-search" action="<?php echo (isset($this->_rootref['S_SEARCHBOX_ACTION'])) ? $this->_rootref['S_SEARCHBOX_ACTION'] : ''; ?>">
+			<form method="get" id="topic-search" action="<?php echo (isset($_rootref['S_SEARCHBOX_ACTION'])) ? $_rootref['S_SEARCHBOX_ACTION'] : ''; ?>
+">
 			<fieldset>
-				<input class="inputbox search tiny"  type="text" name="keywords" id="search_keywords" size="20" value="<?php echo ((isset($this->_rootref['L_SEARCH_TOPIC'])) ? $this->_rootref['L_SEARCH_TOPIC'] : ((isset($user->lang['SEARCH_TOPIC'])) ? $user->lang['SEARCH_TOPIC'] : '{ SEARCH_TOPIC }')); ?>" onclick="if(this.value=='<?php echo ((isset($this->_rootref['LA_SEARCH_TOPIC'])) ? $this->_rootref['LA_SEARCH_TOPIC'] : ((isset($this->_rootref['L_SEARCH_TOPIC'])) ? addslashes($this->_rootref['L_SEARCH_TOPIC']) : ((isset($user->lang['SEARCH_TOPIC'])) ? addslashes($user->lang['SEARCH_TOPIC']) : '{ SEARCH_TOPIC }'))); ?>')this.value='';" onblur="if(this.value=='')this.value='<?php echo ((isset($this->_rootref['LA_SEARCH_TOPIC'])) ? $this->_rootref['LA_SEARCH_TOPIC'] : ((isset($this->_rootref['L_SEARCH_TOPIC'])) ? addslashes($this->_rootref['L_SEARCH_TOPIC']) : ((isset($user->lang['SEARCH_TOPIC'])) ? addslashes($user->lang['SEARCH_TOPIC']) : '{ SEARCH_TOPIC }'))); ?>';" />
-				<input class="button2" type="submit" value="<?php echo ((isset($this->_rootref['L_SEARCH'])) ? $this->_rootref['L_SEARCH'] : ((isset($user->lang['SEARCH'])) ? $user->lang['SEARCH'] : '{ SEARCH }')); ?>" />
-				<?php echo (isset($this->_rootref['S_SEARCH_LOCAL_HIDDEN_FIELDS'])) ? $this->_rootref['S_SEARCH_LOCAL_HIDDEN_FIELDS'] : ''; ?>
+				<input class="inputbox search tiny"  type="text" name="keywords" id="search_keywords" size="20" value="<?php echo ((isset($_rootref['L_SEARCH_TOPIC'])) ? $_rootref['L_SEARCH_TOPIC'] : ((isset($_lang['SEARCH_TOPIC'])) ? $_lang['SEARCH_TOPIC'] : '{ SEARCH_TOPIC }')); ?>
+" onclick="if(this.value=='<?php echo ((isset($_rootref['LA_SEARCH_TOPIC'])) ? $_rootref['LA_SEARCH_TOPIC'] : ((isset($_rootref['L_SEARCH_TOPIC'])) ? addslashes($_rootref['L_SEARCH_TOPIC']) : ((isset($_lang['SEARCH_TOPIC'])) ? addslashes($_lang['SEARCH_TOPIC']) : '{ SEARCH_TOPIC }'))); ?>
+')this.value='';" onblur="if(this.value=='')this.value='<?php echo ((isset($_rootref['LA_SEARCH_TOPIC'])) ? $_rootref['LA_SEARCH_TOPIC'] : ((isset($_rootref['L_SEARCH_TOPIC'])) ? addslashes($_rootref['L_SEARCH_TOPIC']) : ((isset($_lang['SEARCH_TOPIC'])) ? addslashes($_lang['SEARCH_TOPIC']) : '{ SEARCH_TOPIC }'))); ?>
+';" />
+				<input class="button2" type="submit" value="<?php echo ((isset($_rootref['L_SEARCH'])) ? $_rootref['L_SEARCH'] : ((isset($_lang['SEARCH'])) ? $_lang['SEARCH'] : '{ SEARCH }')); ?>
+" />
+				<?php echo (isset($_rootref['S_SEARCH_LOCAL_HIDDEN_FIELDS'])) ? $_rootref['S_SEARCH_LOCAL_HIDDEN_FIELDS'] : ''; ?>
 
 			</fieldset>
 			</form>
 		</div>
-	<?php } if ($this->_rootref['PAGINATION'] || $this->_rootref['TOTAL_POSTS']) {  ?>
+	<?php } ?>
 
-		<div class="pagination">
-			<?php if ($this->_rootref['U_VIEW_UNREAD_POST'] && ! $this->_rootref['S_IS_BOT']) {  ?><a href="<?php echo (isset($this->_rootref['U_VIEW_UNREAD_POST'])) ? $this->_rootref['U_VIEW_UNREAD_POST'] : ''; ?>"><?php echo ((isset($this->_rootref['L_VIEW_UNREAD_POST'])) ? $this->_rootref['L_VIEW_UNREAD_POST'] : ((isset($user->lang['VIEW_UNREAD_POST'])) ? $user->lang['VIEW_UNREAD_POST'] : '{ VIEW_UNREAD_POST }')); ?></a> &bull; <?php } echo (isset($this->_rootref['TOTAL_POSTS'])) ? $this->_rootref['TOTAL_POSTS'] : ''; ?>
 
-			<?php if ($this->_rootref['PAGE_NUMBER']) {  if ($this->_rootref['PAGINATION']) {  ?> &bull; <a href="#" onclick="jumpto(); return false;" title="<?php echo ((isset($this->_rootref['L_JUMP_TO_PAGE'])) ? $this->_rootref['L_JUMP_TO_PAGE'] : ((isset($user->lang['JUMP_TO_PAGE'])) ? $user->lang['JUMP_TO_PAGE'] : '{ JUMP_TO_PAGE }')); ?>"><?php echo (isset($this->_rootref['PAGE_NUMBER'])) ? $this->_rootref['PAGE_NUMBER'] : ''; ?></a> &bull; <span><?php echo (isset($this->_rootref['PAGINATION'])) ? $this->_rootref['PAGINATION'] : ''; ?></span><?php } else { ?> &bull; <?php echo (isset($this->_rootref['PAGE_NUMBER'])) ? $this->_rootref['PAGE_NUMBER'] : ''; } } ?>
+	<?php if ((isset($_rootref['PAGINATION']) ? $_rootref['PAGINATION'] : null)
+ || (isset($_rootref['TOTAL_POSTS']) ? $_rootref['TOTAL_POSTS'] : null)
+) {  ?>
+		<div class="pagination">
+			<?php if ((isset($_rootref['U_VIEW_UNREAD_POST']) ? $_rootref['U_VIEW_UNREAD_POST'] : null)
+ && ! (isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+) {  ?><a href="<?php echo (isset($_rootref['U_VIEW_UNREAD_POST'])) ? $_rootref['U_VIEW_UNREAD_POST'] : ''; ?>
+"><?php echo ((isset($_rootref['L_VIEW_UNREAD_POST'])) ? $_rootref['L_VIEW_UNREAD_POST'] : ((isset($_lang['VIEW_UNREAD_POST'])) ? $_lang['VIEW_UNREAD_POST'] : '{ VIEW_UNREAD_POST }')); ?>
+</a> &bull; <?php }  echo (isset($_rootref['TOTAL_POSTS'])) ? $_rootref['TOTAL_POSTS'] : ''; ?>
+
+			<?php if ((isset($_rootref['PAGE_NUMBER']) ? $_rootref['PAGE_NUMBER'] : null)
+) {   if ((isset($_rootref['PAGINATION']) ? $_rootref['PAGINATION'] : null)
+) {  ?> &bull; <a href="#" onclick="jumpto(); return false;" title="<?php echo ((isset($_rootref['L_JUMP_TO_PAGE'])) ? $_rootref['L_JUMP_TO_PAGE'] : ((isset($_lang['JUMP_TO_PAGE'])) ? $_lang['JUMP_TO_PAGE'] : '{ JUMP_TO_PAGE }')); ?>
+"><?php echo (isset($_rootref['PAGE_NUMBER'])) ? $_rootref['PAGE_NUMBER'] : ''; ?>
+</a> &bull; <span><?php echo (isset($_rootref['PAGINATION'])) ? $_rootref['PAGINATION'] : ''; ?>
+</span><?php } else { ?> &bull; <?php echo (isset($_rootref['PAGE_NUMBER'])) ? $_rootref['PAGE_NUMBER'] : ''; ?>
+<?php }  } ?>
 
 		</div>
 	<?php } ?>
@@ -64,162 +111,406 @@
 </div>
 <div class="clear"></div>
 
-<?php if ($this->_rootref['S_HAS_POLL']) {  ?>
-
-	<form method="post" action="<?php echo (isset($this->_rootref['S_POLL_ACTION'])) ? $this->_rootref['S_POLL_ACTION'] : ''; ?>">
+<?php if ((isset($_rootref['S_HAS_POLL']) ? $_rootref['S_HAS_POLL'] : null)
+) {  ?>
+	<form method="post" action="<?php echo (isset($_rootref['S_POLL_ACTION'])) ? $_rootref['S_POLL_ACTION'] : ''; ?>
+">
 
 	<div class="panel">
-		<div class="inner"><span class="corners-top"><span></span></span>
+		<div class="inner">
 
 		<div class="content">
-			<h2><?php echo (isset($this->_rootref['POLL_QUESTION'])) ? $this->_rootref['POLL_QUESTION'] : ''; ?></h2>
-			<p class="author"><?php echo ((isset($this->_rootref['L_POLL_LENGTH'])) ? $this->_rootref['L_POLL_LENGTH'] : ((isset($user->lang['POLL_LENGTH'])) ? $user->lang['POLL_LENGTH'] : '{ POLL_LENGTH }')); if ($this->_rootref['S_CAN_VOTE'] && $this->_rootref['L_POLL_LENGTH']) {  ?><br /><?php } if ($this->_rootref['S_CAN_VOTE']) {  echo ((isset($this->_rootref['L_MAX_VOTES'])) ? $this->_rootref['L_MAX_VOTES'] : ((isset($user->lang['MAX_VOTES'])) ? $user->lang['MAX_VOTES'] : '{ MAX_VOTES }')); } ?></p>
+			<h2><?php echo (isset($_rootref['POLL_QUESTION'])) ? $_rootref['POLL_QUESTION'] : ''; ?>
+</h2>
+			<p class="author"><?php echo ((isset($_rootref['L_POLL_LENGTH'])) ? $_rootref['L_POLL_LENGTH'] : ((isset($_lang['POLL_LENGTH'])) ? $_lang['POLL_LENGTH'] : '{ POLL_LENGTH }')); ?>
+<?php if ((isset($_rootref['S_CAN_VOTE']) ? $_rootref['S_CAN_VOTE'] : null)
+ && (isset($_rootref['L_POLL_LENGTH']) ? $_rootref['L_POLL_LENGTH'] : null)
+) {  ?><br /><?php }  if ((isset($_rootref['S_CAN_VOTE']) ? $_rootref['S_CAN_VOTE'] : null)
+) {   echo ((isset($_rootref['L_MAX_VOTES'])) ? $_rootref['L_MAX_VOTES'] : ((isset($_lang['MAX_VOTES'])) ? $_lang['MAX_VOTES'] : '{ MAX_VOTES }')); ?>
+<?php } ?></p>
 
 			<fieldset class="polls">
-			<?php $_poll_option_count = (isset($this->_tpldata['poll_option'])) ? sizeof($this->_tpldata['poll_option']) : 0;if ($_poll_option_count) {for ($_poll_option_i = 0; $_poll_option_i < $_poll_option_count; ++$_poll_option_i){$_poll_option_val = &$this->_tpldata['poll_option'][$_poll_option_i]; ?>
-
-				<dl class="<?php if ($_poll_option_val['POLL_OPTION_VOTED']) {  ?>voted<?php } ?>"<?php if ($_poll_option_val['POLL_OPTION_VOTED']) {  ?> title="<?php echo ((isset($this->_rootref['L_POLL_VOTED_OPTION'])) ? $this->_rootref['L_POLL_VOTED_OPTION'] : ((isset($user->lang['POLL_VOTED_OPTION'])) ? $user->lang['POLL_VOTED_OPTION'] : '{ POLL_VOTED_OPTION }')); ?>"<?php } ?>>
-					<dt><?php if ($this->_rootref['S_CAN_VOTE']) {  ?><label for="vote_<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>"><?php echo $_poll_option_val['POLL_OPTION_CAPTION']; ?></label><?php } else { echo $_poll_option_val['POLL_OPTION_CAPTION']; } ?></dt>
-					<?php if ($this->_rootref['S_CAN_VOTE']) {  ?><dd style="width: auto;"><?php if ($this->_rootref['S_IS_MULTI_CHOICE']) {  ?><input type="checkbox" name="vote_id[]" id="vote_<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>" value="<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>"<?php if ($_poll_option_val['POLL_OPTION_VOTED']) {  ?> checked="checked"<?php } ?> /><?php } else { ?><input type="radio" name="vote_id[]" id="vote_<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>" value="<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>"<?php if ($_poll_option_val['POLL_OPTION_VOTED']) {  ?> checked="checked"<?php } ?> /><?php } ?></dd><?php } if ($this->_rootref['S_DISPLAY_RESULTS']) {  ?><dd class="resultbar"><div class="<?php if ($_poll_option_val['POLL_OPTION_PCT'] < (20)) {  ?>pollbar1<?php } else if ($_poll_option_val['POLL_OPTION_PCT'] < (40)) {  ?>pollbar2<?php } else if ($_poll_option_val['POLL_OPTION_PCT'] < (60)) {  ?>pollbar3<?php } else if ($_poll_option_val['POLL_OPTION_PCT'] < (80)) {  ?>pollbar4<?php } else { ?>pollbar5<?php } ?>" style="width:<?php echo $_poll_option_val['POLL_OPTION_PERCENT']; ?>;"><?php echo $_poll_option_val['POLL_OPTION_RESULT']; ?></div></dd>
-					<dd><?php if ($_poll_option_val['POLL_OPTION_RESULT'] == 0) {  echo ((isset($this->_rootref['L_NO_VOTES'])) ? $this->_rootref['L_NO_VOTES'] : ((isset($user->lang['NO_VOTES'])) ? $user->lang['NO_VOTES'] : '{ NO_VOTES }')); } else { echo $_poll_option_val['POLL_OPTION_PERCENT']; } ?></dd><?php } ?>
+			<?php $_poll_option_count = (isset($_tpldata['poll_option'])) ? sizeof($_tpldata['poll_option']) : 0;if ($_poll_option_count) {for ($_poll_option_i = 0; $_poll_option_i < $_poll_option_count; ++$_poll_option_i){$_poll_option_val = &$_tpldata['poll_option'][$_poll_option_i]; ?>
+
+				<dl class="<?php if ((isset($_poll_option_val['POLL_OPTION_VOTED']) ? $_poll_option_val['POLL_OPTION_VOTED'] : null)) {  ?>voted<?php } ?>"<?php if ((isset($_poll_option_val['POLL_OPTION_VOTED']) ? $_poll_option_val['POLL_OPTION_VOTED'] : null)) {  ?> title="<?php echo ((isset($_rootref['L_POLL_VOTED_OPTION'])) ? $_rootref['L_POLL_VOTED_OPTION'] : ((isset($_lang['POLL_VOTED_OPTION'])) ? $_lang['POLL_VOTED_OPTION'] : '{ POLL_VOTED_OPTION }')); ?>
+"<?php } ?>>
+					<dt><?php if ((isset($_rootref['S_CAN_VOTE']) ? $_rootref['S_CAN_VOTE'] : null)
+) {  ?><label for="vote_<?php echo (isset($_poll_option_val['POLL_OPTION_ID'])) ? $_poll_option_val['POLL_OPTION_ID'] : ''; ?>
+"><?php echo (isset($_poll_option_val['POLL_OPTION_CAPTION'])) ? $_poll_option_val['POLL_OPTION_CAPTION'] : ''; ?>
+</label><?php } else {  echo (isset($_poll_option_val['POLL_OPTION_CAPTION'])) ? $_poll_option_val['POLL_OPTION_CAPTION'] : ''; ?>
+<?php } ?></dt>
+					<?php if ((isset($_rootref['S_CAN_VOTE']) ? $_rootref['S_CAN_VOTE'] : null)
+) {  ?><dd style="width: auto;"><?php if ((isset($_rootref['S_IS_MULTI_CHOICE']) ? $_rootref['S_IS_MULTI_CHOICE'] : null)
+) {  ?><input type="checkbox" name="vote_id[]" id="vote_<?php echo (isset($_poll_option_val['POLL_OPTION_ID'])) ? $_poll_option_val['POLL_OPTION_ID'] : ''; ?>
+" value="<?php echo (isset($_poll_option_val['POLL_OPTION_ID'])) ? $_poll_option_val['POLL_OPTION_ID'] : ''; ?>
+"<?php if ((isset($_poll_option_val['POLL_OPTION_VOTED']) ? $_poll_option_val['POLL_OPTION_VOTED'] : null)) {  ?> checked="checked"<?php } ?> /><?php } else { ?><input type="radio" name="vote_id[]" id="vote_<?php echo (isset($_poll_option_val['POLL_OPTION_ID'])) ? $_poll_option_val['POLL_OPTION_ID'] : ''; ?>
+" value="<?php echo (isset($_poll_option_val['POLL_OPTION_ID'])) ? $_poll_option_val['POLL_OPTION_ID'] : ''; ?>
+"<?php if ((isset($_poll_option_val['POLL_OPTION_VOTED']) ? $_poll_option_val['POLL_OPTION_VOTED'] : null)) {  ?> checked="checked"<?php } ?> /><?php } ?></dd><?php } ?>
+
+					<?php if ((isset($_rootref['S_DISPLAY_RESULTS']) ? $_rootref['S_DISPLAY_RESULTS'] : null)
+) {  ?><dd class="resultbar"><div class="<?php if ((isset($_poll_option_val['POLL_OPTION_PCT']) ? $_poll_option_val['POLL_OPTION_PCT'] : null) < 20) {  ?>pollbar1<?php } else if ((isset($_poll_option_val['POLL_OPTION_PCT']) ? $_poll_option_val['POLL_OPTION_PCT'] : null) < 40) {  ?>pollbar2<?php } else if ((isset($_poll_option_val['POLL_OPTION_PCT']) ? $_poll_option_val['POLL_OPTION_PCT'] : null) < 60) {  ?>pollbar3<?php } else if ((isset($_poll_option_val['POLL_OPTION_PCT']) ? $_poll_option_val['POLL_OPTION_PCT'] : null) < 80) {  ?>pollbar4<?php } else { ?>pollbar5<?php } ?>" style="width:<?php echo (isset($_poll_option_val['POLL_OPTION_PERCENT'])) ? $_poll_option_val['POLL_OPTION_PERCENT'] : ''; ?>
+;"><?php echo (isset($_poll_option_val['POLL_OPTION_RESULT'])) ? $_poll_option_val['POLL_OPTION_RESULT'] : ''; ?>
+</div></dd>
+					<dd><?php if ((isset($_poll_option_val['POLL_OPTION_RESULT']) ? $_poll_option_val['POLL_OPTION_RESULT'] : null) == 0) {   echo ((isset($_rootref['L_NO_VOTES'])) ? $_rootref['L_NO_VOTES'] : ((isset($_lang['NO_VOTES'])) ? $_lang['NO_VOTES'] : '{ NO_VOTES }')); ?>
+<?php } else {  echo (isset($_poll_option_val['POLL_OPTION_PERCENT'])) ? $_poll_option_val['POLL_OPTION_PERCENT'] : ''; ?>
+<?php } ?></dd><?php } ?>
 
 				</dl>
-			<?php }} if ($this->_rootref['S_DISPLAY_RESULTS']) {  ?>
+			<?php }} ?>
 
+
+			<?php if ((isset($_rootref['S_DISPLAY_RESULTS']) ? $_rootref['S_DISPLAY_RESULTS'] : null)
+) {  ?>
 				<dl>
 					<dt>&nbsp;</dt>
-					<dd class="resultbar"><?php echo ((isset($this->_rootref['L_TOTAL_VOTES'])) ? $this->_rootref['L_TOTAL_VOTES'] : ((isset($user->lang['TOTAL_VOTES'])) ? $user->lang['TOTAL_VOTES'] : '{ TOTAL_VOTES }')); ?> : <?php echo (isset($this->_rootref['TOTAL_VOTES'])) ? $this->_rootref['TOTAL_VOTES'] : ''; ?></dd>
+					<dd class="resultbar"><?php echo ((isset($_rootref['L_TOTAL_VOTES'])) ? $_rootref['L_TOTAL_VOTES'] : ((isset($_lang['TOTAL_VOTES'])) ? $_lang['TOTAL_VOTES'] : '{ TOTAL_VOTES }')); ?>
+ : <?php echo (isset($_rootref['TOTAL_VOTES'])) ? $_rootref['TOTAL_VOTES'] : ''; ?>
+</dd>
 				</dl>
-			<?php } if ($this->_rootref['S_CAN_VOTE']) {  ?>
+			<?php } ?>
 
+
+			<?php if ((isset($_rootref['S_CAN_VOTE']) ? $_rootref['S_CAN_VOTE'] : null)
+) {  ?>
 				<dl style="border-top: none;">
 					<dt>&nbsp;</dt>
-					<dd class="resultbar"><input type="submit" name="update" value="<?php echo ((isset($this->_rootref['L_SUBMIT_VOTE'])) ? $this->_rootref['L_SUBMIT_VOTE'] : ((isset($user->lang['SUBMIT_VOTE'])) ? $user->lang['SUBMIT_VOTE'] : '{ SUBMIT_VOTE }')); ?>" class="button1" /></dd>
+					<dd class="resultbar"><input type="submit" name="update" value="<?php echo ((isset($_rootref['L_SUBMIT_VOTE'])) ? $_rootref['L_SUBMIT_VOTE'] : ((isset($_lang['SUBMIT_VOTE'])) ? $_lang['SUBMIT_VOTE'] : '{ SUBMIT_VOTE }')); ?>
+" class="button1" /></dd>
 				</dl>
-			<?php } if (! $this->_rootref['S_DISPLAY_RESULTS']) {  ?>
+			<?php } ?>
 
+
+			<?php if (! (isset($_rootref['S_DISPLAY_RESULTS']) ? $_rootref['S_DISPLAY_RESULTS'] : null)
+) {  ?>
 				<dl style="border-top: none;">
 					<dt>&nbsp;</dt>
-					<dd class="resultbar"><a href="<?php echo (isset($this->_rootref['U_VIEW_RESULTS'])) ? $this->_rootref['U_VIEW_RESULTS'] : ''; ?>"><?php echo ((isset($this->_rootref['L_VIEW_RESULTS'])) ? $this->_rootref['L_VIEW_RESULTS'] : ((isset($user->lang['VIEW_RESULTS'])) ? $user->lang['VIEW_RESULTS'] : '{ VIEW_RESULTS }')); ?></a></dd>
+					<dd class="resultbar"><a href="<?php echo (isset($_rootref['U_VIEW_RESULTS'])) ? $_rootref['U_VIEW_RESULTS'] : ''; ?>
+"><?php echo ((isset($_rootref['L_VIEW_RESULTS'])) ? $_rootref['L_VIEW_RESULTS'] : ((isset($_lang['VIEW_RESULTS'])) ? $_lang['VIEW_RESULTS'] : '{ VIEW_RESULTS }')); ?>
+</a></dd>
 				</dl>
 			<?php } ?>
 
 			</fieldset>
 		</div>
 
-		<span class="corners-bottom"><span></span></span></div>
-		<?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
+		</div>
+		<?php echo (isset($_rootref['S_FORM_TOKEN'])) ? $_rootref['S_FORM_TOKEN'] : ''; ?>
 
-		<?php echo (isset($this->_rootref['S_HIDDEN_FIELDS'])) ? $this->_rootref['S_HIDDEN_FIELDS'] : ''; ?>
+		<?php echo (isset($_rootref['S_HIDDEN_FIELDS'])) ? $_rootref['S_HIDDEN_FIELDS'] : ''; ?>
 
 	</div>
 
 
 	</form>
 	<hr />
-<?php } $_postrow_count = (isset($this->_tpldata['postrow'])) ? sizeof($this->_tpldata['postrow']) : 0;if ($_postrow_count) {for ($_postrow_i = 0; $_postrow_i < $_postrow_count; ++$_postrow_i){$_postrow_val = &$this->_tpldata['postrow'][$_postrow_i]; if ($_postrow_val['S_FIRST_UNREAD']) {  ?><a id="unread"></a><?php } ?>
+<?php } ?>
+
+<?php $_postrow_count = (isset($_tpldata['postrow'])) ? sizeof($_tpldata['postrow']) : 0;if ($_postrow_count) {for ($_postrow_i = 0; $_postrow_i < $_postrow_count; ++$_postrow_i){$_postrow_val = &$_tpldata['postrow'][$_postrow_i]; ?>
+	<?php if ((isset($_postrow_val['S_FIRST_UNREAD']) ? $_postrow_val['S_FIRST_UNREAD'] : null)) {  ?><a id="unread"></a><?php } ?>
 
-	<div id="p<?php echo $_postrow_val['POST_ID']; ?>" class="post <?php if (($_postrow_val['S_ROW_COUNT'] & 1)  ) {  ?>bg1<?php } else { ?>bg2<?php } if ($_postrow_val['S_UNREAD_POST']) {  ?> unreadpost<?php } if ($_postrow_val['S_POST_REPORTED']) {  ?> reported<?php } if ($_postrow_val['S_ONLINE'] && ! $_postrow_val['S_IGNORE_POST']) {  ?> online<?php } ?>">
-		<div class="inner"><span class="corners-top"><span></span></span>
+	<div id="p<?php echo (isset($_postrow_val['POST_ID'])) ? $_postrow_val['POST_ID'] : ''; ?>
+" class="post <?php if (($_postrow_i & 1)  ) {  ?>bg1<?php } else { ?>bg2<?php }  if ((isset($_postrow_val['S_UNREAD_POST']) ? $_postrow_val['S_UNREAD_POST'] : null)) {  ?> unreadpost<?php }  if ((isset($_postrow_val['S_POST_REPORTED']) ? $_postrow_val['S_POST_REPORTED'] : null)) {  ?> reported<?php }  if ((isset($_postrow_val['S_ONLINE']) ? $_postrow_val['S_ONLINE'] : null) && ! (isset($_postrow_val['S_IGNORE_POST']) ? $_postrow_val['S_IGNORE_POST'] : null)) {  ?> online<?php } ?>">
+		<div class="inner">
 
 		<div class="postbody">
-			<?php if ($_postrow_val['S_IGNORE_POST']) {  ?>
+			<?php if ((isset($_postrow_val['S_IGNORE_POST']) ? $_postrow_val['S_IGNORE_POST'] : null)) {  ?>
+
+				<div class="ignore"><?php echo (isset($_postrow_val['L_IGNORE_POST'])) ? $_postrow_val['L_IGNORE_POST'] : ''; ?>
+</div>
+			<?php } else { ?>
 
-				<div class="ignore"><?php echo $_postrow_val['L_IGNORE_POST']; ?></div>
-			<?php } else { if (! $this->_rootref['S_IS_BOT']) {  if ($_postrow_val['U_EDIT'] || $_postrow_val['U_DELETE'] || $_postrow_val['U_REPORT'] || $_postrow_val['U_WARN'] || $_postrow_val['U_INFO'] || $_postrow_val['U_QUOTE']) {  ?>
+
+		<?php if (! (isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+) {  ?>
+			<?php if ((isset($_postrow_val['U_EDIT']) ? $_postrow_val['U_EDIT'] : null) || (isset($_postrow_val['U_DELETE']) ? $_postrow_val['U_DELETE'] : null) || (isset($_postrow_val['U_REPORT']) ? $_postrow_val['U_REPORT'] : null) || (isset($_postrow_val['U_WARN']) ? $_postrow_val['U_WARN'] : null) || (isset($_postrow_val['U_INFO']) ? $_postrow_val['U_INFO'] : null) || (isset($_postrow_val['U_QUOTE']) ? $_postrow_val['U_QUOTE'] : null)) {  ?>
 
 				<ul class="profile-icons">
-					<?php if ($_postrow_val['U_EDIT']) {  ?><li class="edit-icon"><a href="<?php echo $_postrow_val['U_EDIT']; ?>" title="<?php echo ((isset($this->_rootref['L_EDIT_POST'])) ? $this->_rootref['L_EDIT_POST'] : ((isset($user->lang['EDIT_POST'])) ? $user->lang['EDIT_POST'] : '{ EDIT_POST }')); ?>"><span><?php echo ((isset($this->_rootref['L_EDIT_POST'])) ? $this->_rootref['L_EDIT_POST'] : ((isset($user->lang['EDIT_POST'])) ? $user->lang['EDIT_POST'] : '{ EDIT_POST }')); ?></span></a></li><?php } if ($_postrow_val['U_DELETE']) {  ?><li class="delete-icon"><a href="<?php echo $_postrow_val['U_DELETE']; ?>" title="<?php echo ((isset($this->_rootref['L_DELETE_POST'])) ? $this->_rootref['L_DELETE_POST'] : ((isset($user->lang['DELETE_POST'])) ? $user->lang['DELETE_POST'] : '{ DELETE_POST }')); ?>"><span><?php echo ((isset($this->_rootref['L_DELETE_POST'])) ? $this->_rootref['L_DELETE_POST'] : ((isset($user->lang['DELETE_POST'])) ? $user->lang['DELETE_POST'] : '{ DELETE_POST }')); ?></span></a></li><?php } if ($_postrow_val['U_REPORT']) {  ?><li class="report-icon"><a href="<?php echo $_postrow_val['U_REPORT']; ?>" title="<?php echo ((isset($this->_rootref['L_REPORT_POST'])) ? $this->_rootref['L_REPORT_POST'] : ((isset($user->lang['REPORT_POST'])) ? $user->lang['REPORT_POST'] : '{ REPORT_POST }')); ?>"><span><?php echo ((isset($this->_rootref['L_REPORT_POST'])) ? $this->_rootref['L_REPORT_POST'] : ((isset($user->lang['REPORT_POST'])) ? $user->lang['REPORT_POST'] : '{ REPORT_POST }')); ?></span></a></li><?php } if ($_postrow_val['U_WARN']) {  ?><li class="warn-icon"><a href="<?php echo $_postrow_val['U_WARN']; ?>" title="<?php echo ((isset($this->_rootref['L_WARN_USER'])) ? $this->_rootref['L_WARN_USER'] : ((isset($user->lang['WARN_USER'])) ? $user->lang['WARN_USER'] : '{ WARN_USER }')); ?>"><span><?php echo ((isset($this->_rootref['L_WARN_USER'])) ? $this->_rootref['L_WARN_USER'] : ((isset($user->lang['WARN_USER'])) ? $user->lang['WARN_USER'] : '{ WARN_USER }')); ?></span></a></li><?php } if ($_postrow_val['U_INFO']) {  ?><li class="info-icon"><a href="<?php echo $_postrow_val['U_INFO']; ?>" title="<?php echo ((isset($this->_rootref['L_INFORMATION'])) ? $this->_rootref['L_INFORMATION'] : ((isset($user->lang['INFORMATION'])) ? $user->lang['INFORMATION'] : '{ INFORMATION }')); ?>"><span><?php echo ((isset($this->_rootref['L_INFORMATION'])) ? $this->_rootref['L_INFORMATION'] : ((isset($user->lang['INFORMATION'])) ? $user->lang['INFORMATION'] : '{ INFORMATION }')); ?></span></a></li><?php } if ($_postrow_val['U_QUOTE']) {  ?><li class="quote-icon"><a href="<?php echo $_postrow_val['U_QUOTE']; ?>" title="<?php echo ((isset($this->_rootref['L_REPLY_WITH_QUOTE'])) ? $this->_rootref['L_REPLY_WITH_QUOTE'] : ((isset($user->lang['REPLY_WITH_QUOTE'])) ? $user->lang['REPLY_WITH_QUOTE'] : '{ REPLY_WITH_QUOTE }')); ?>"><span><?php echo ((isset($this->_rootref['L_REPLY_WITH_QUOTE'])) ? $this->_rootref['L_REPLY_WITH_QUOTE'] : ((isset($user->lang['REPLY_WITH_QUOTE'])) ? $user->lang['REPLY_WITH_QUOTE'] : '{ REPLY_WITH_QUOTE }')); ?></span></a></li><?php } ?>
+					<?php if ((isset($_postrow_val['U_EDIT']) ? $_postrow_val['U_EDIT'] : null)) {  ?><li class="edit-icon"><a href="<?php echo (isset($_postrow_val['U_EDIT'])) ? $_postrow_val['U_EDIT'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_EDIT_POST'])) ? $_rootref['L_EDIT_POST'] : ((isset($_lang['EDIT_POST'])) ? $_lang['EDIT_POST'] : '{ EDIT_POST }')); ?>
+"><span><?php echo ((isset($_rootref['L_EDIT_POST'])) ? $_rootref['L_EDIT_POST'] : ((isset($_lang['EDIT_POST'])) ? $_lang['EDIT_POST'] : '{ EDIT_POST }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_DELETE']) ? $_postrow_val['U_DELETE'] : null)) {  ?><li class="delete-icon"><a href="<?php echo (isset($_postrow_val['U_DELETE'])) ? $_postrow_val['U_DELETE'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_DELETE_POST'])) ? $_rootref['L_DELETE_POST'] : ((isset($_lang['DELETE_POST'])) ? $_lang['DELETE_POST'] : '{ DELETE_POST }')); ?>
+" data-ajax="post_delete"<?php if ((isset($_postrow_val['POST_NUMBER']) ? $_postrow_val['POST_NUMBER'] : null) == 1) {  ?> data-refresh="true"<?php } ?>><span><?php echo ((isset($_rootref['L_DELETE_POST'])) ? $_rootref['L_DELETE_POST'] : ((isset($_lang['DELETE_POST'])) ? $_lang['DELETE_POST'] : '{ DELETE_POST }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_REPORT']) ? $_postrow_val['U_REPORT'] : null)) {  ?><li class="report-icon"><a href="<?php echo (isset($_postrow_val['U_REPORT'])) ? $_postrow_val['U_REPORT'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_REPORT_POST'])) ? $_rootref['L_REPORT_POST'] : ((isset($_lang['REPORT_POST'])) ? $_lang['REPORT_POST'] : '{ REPORT_POST }')); ?>
+"><span><?php echo ((isset($_rootref['L_REPORT_POST'])) ? $_rootref['L_REPORT_POST'] : ((isset($_lang['REPORT_POST'])) ? $_lang['REPORT_POST'] : '{ REPORT_POST }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_WARN']) ? $_postrow_val['U_WARN'] : null)) {  ?><li class="warn-icon"><a href="<?php echo (isset($_postrow_val['U_WARN'])) ? $_postrow_val['U_WARN'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_WARN_USER'])) ? $_rootref['L_WARN_USER'] : ((isset($_lang['WARN_USER'])) ? $_lang['WARN_USER'] : '{ WARN_USER }')); ?>
+"><span><?php echo ((isset($_rootref['L_WARN_USER'])) ? $_rootref['L_WARN_USER'] : ((isset($_lang['WARN_USER'])) ? $_lang['WARN_USER'] : '{ WARN_USER }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_INFO']) ? $_postrow_val['U_INFO'] : null)) {  ?><li class="info-icon"><a href="<?php echo (isset($_postrow_val['U_INFO'])) ? $_postrow_val['U_INFO'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_INFORMATION'])) ? $_rootref['L_INFORMATION'] : ((isset($_lang['INFORMATION'])) ? $_lang['INFORMATION'] : '{ INFORMATION }')); ?>
+"><span><?php echo ((isset($_rootref['L_INFORMATION'])) ? $_rootref['L_INFORMATION'] : ((isset($_lang['INFORMATION'])) ? $_lang['INFORMATION'] : '{ INFORMATION }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_QUOTE']) ? $_postrow_val['U_QUOTE'] : null)) {  ?><li class="quote-icon"><a href="<?php echo (isset($_postrow_val['U_QUOTE'])) ? $_postrow_val['U_QUOTE'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_REPLY_WITH_QUOTE'])) ? $_rootref['L_REPLY_WITH_QUOTE'] : ((isset($_lang['REPLY_WITH_QUOTE'])) ? $_lang['REPLY_WITH_QUOTE'] : '{ REPLY_WITH_QUOTE }')); ?>
+"><span><?php echo ((isset($_rootref['L_REPLY_WITH_QUOTE'])) ? $_rootref['L_REPLY_WITH_QUOTE'] : ((isset($_lang['REPLY_WITH_QUOTE'])) ? $_lang['REPLY_WITH_QUOTE'] : '{ REPLY_WITH_QUOTE }')); ?>
+</span></a></li><?php } ?>
 
 				</ul>
-			<?php } } ?>
-
+			<?php } ?>
 
-			<h3 <?php if ($_postrow_val['S_FIRST_ROW']) {  ?>class="first"<?php } ?>><?php if ($_postrow_val['POST_ICON_IMG']) {  ?><img src="<?php echo (isset($this->_rootref['T_ICONS_PATH'])) ? $this->_rootref['T_ICONS_PATH'] : ''; echo $_postrow_val['POST_ICON_IMG']; ?>" width="<?php echo $_postrow_val['POST_ICON_IMG_WIDTH']; ?>" height="<?php echo $_postrow_val['POST_ICON_IMG_HEIGHT']; ?>" alt="" /> <?php } ?><a href="#p<?php echo $_postrow_val['POST_ID']; ?>"><?php echo $_postrow_val['POST_SUBJECT']; ?></a></h3>
-			<p class="author"><?php if ($this->_rootref['S_IS_BOT']) {  echo $_postrow_val['MINI_POST_IMG']; } else { ?><a href="<?php echo $_postrow_val['U_MINI_POST']; ?>"><?php echo $_postrow_val['MINI_POST_IMG']; ?></a><?php } echo ((isset($this->_rootref['L_POST_BY_AUTHOR'])) ? $this->_rootref['L_POST_BY_AUTHOR'] : ((isset($user->lang['POST_BY_AUTHOR'])) ? $user->lang['POST_BY_AUTHOR'] : '{ POST_BY_AUTHOR }')); ?> <strong><?php echo $_postrow_val['POST_AUTHOR_FULL']; ?></strong> &raquo; <?php echo $_postrow_val['POST_DATE']; ?> </p>
+		<?php } ?>
 
-			<?php if ($_postrow_val['S_POST_UNAPPROVED'] || $_postrow_val['S_POST_REPORTED']) {  ?>
 
+			<h3 <?php if (($_postrow_i == 0)) {  ?>class="first"<?php } ?>><?php if ((isset($_postrow_val['POST_ICON_IMG']) ? $_postrow_val['POST_ICON_IMG'] : null)) {  ?><img src="<?php echo (isset($_rootref['T_ICONS_PATH'])) ? $_rootref['T_ICONS_PATH'] : ''; ?>
+<?php echo (isset($_postrow_val['POST_ICON_IMG'])) ? $_postrow_val['POST_ICON_IMG'] : ''; ?>
+" width="<?php echo (isset($_postrow_val['POST_ICON_IMG_WIDTH'])) ? $_postrow_val['POST_ICON_IMG_WIDTH'] : ''; ?>
+" height="<?php echo (isset($_postrow_val['POST_ICON_IMG_HEIGHT'])) ? $_postrow_val['POST_ICON_IMG_HEIGHT'] : ''; ?>
+" alt="" /> <?php } ?><a href="#p<?php echo (isset($_postrow_val['POST_ID'])) ? $_postrow_val['POST_ID'] : ''; ?>
+"><?php echo (isset($_postrow_val['POST_SUBJECT'])) ? $_postrow_val['POST_SUBJECT'] : ''; ?>
+</a></h3>
+			<p class="author"><?php if ((isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+) {   echo (isset($_postrow_val['MINI_POST_IMG'])) ? $_postrow_val['MINI_POST_IMG'] : ''; ?>
+<?php } else { ?><a href="<?php echo (isset($_postrow_val['U_MINI_POST'])) ? $_postrow_val['U_MINI_POST'] : ''; ?>
+"><?php echo (isset($_postrow_val['MINI_POST_IMG'])) ? $_postrow_val['MINI_POST_IMG'] : ''; ?>
+</a><?php }  echo ((isset($_rootref['L_POST_BY_AUTHOR'])) ? $_rootref['L_POST_BY_AUTHOR'] : ((isset($_lang['POST_BY_AUTHOR'])) ? $_lang['POST_BY_AUTHOR'] : '{ POST_BY_AUTHOR }')); ?>
+ <strong><?php echo (isset($_postrow_val['POST_AUTHOR_FULL'])) ? $_postrow_val['POST_AUTHOR_FULL'] : ''; ?>
+</strong> &raquo; <?php echo (isset($_postrow_val['POST_DATE'])) ? $_postrow_val['POST_DATE'] : ''; ?>
+ </p>
+
+			<?php if ((isset($_postrow_val['S_POST_UNAPPROVED']) ? $_postrow_val['S_POST_UNAPPROVED'] : null) || (isset($_postrow_val['S_POST_REPORTED']) ? $_postrow_val['S_POST_REPORTED'] : null)) {  ?>
+
+			<form method="post" class="mcp_approve" action="<?php echo (isset($_postrow_val['U_APPROVE_ACTION'])) ? $_postrow_val['U_APPROVE_ACTION'] : ''; ?>
+" data-ajax="post_approve">
 				<p class="rules">
-					<?php if ($_postrow_val['S_POST_UNAPPROVED']) {  echo (isset($this->_rootref['UNAPPROVED_IMG'])) ? $this->_rootref['UNAPPROVED_IMG'] : ''; ?> <a href="<?php echo $_postrow_val['U_MCP_APPROVE']; ?>"><strong><?php echo ((isset($this->_rootref['L_POST_UNAPPROVED'])) ? $this->_rootref['L_POST_UNAPPROVED'] : ((isset($user->lang['POST_UNAPPROVED'])) ? $user->lang['POST_UNAPPROVED'] : '{ POST_UNAPPROVED }')); ?></strong></a><br /><?php } if ($_postrow_val['S_POST_REPORTED']) {  echo (isset($this->_rootref['REPORTED_IMG'])) ? $this->_rootref['REPORTED_IMG'] : ''; ?> <a href="<?php echo $_postrow_val['U_MCP_REPORT']; ?>"><strong><?php echo ((isset($this->_rootref['L_POST_REPORTED'])) ? $this->_rootref['L_POST_REPORTED'] : ((isset($user->lang['POST_REPORTED'])) ? $user->lang['POST_REPORTED'] : '{ POST_REPORTED }')); ?></strong></a><?php } ?>
+					<?php if ((isset($_postrow_val['S_POST_UNAPPROVED']) ? $_postrow_val['S_POST_UNAPPROVED'] : null)) {  ?>
+
+						<?php echo (isset($_rootref['UNAPPROVED_IMG'])) ? $_rootref['UNAPPROVED_IMG'] : ''; ?>
+ <strong><?php echo ((isset($_rootref['L_POST_UNAPPROVED'])) ? $_rootref['L_POST_UNAPPROVED'] : ((isset($_lang['POST_UNAPPROVED'])) ? $_lang['POST_UNAPPROVED'] : '{ POST_UNAPPROVED }')); ?>
+</strong>
+						<input class="button2" type="submit" value="<?php echo ((isset($_rootref['L_DISAPPROVE'])) ? $_rootref['L_DISAPPROVE'] : ((isset($_lang['DISAPPROVE'])) ? $_lang['DISAPPROVE'] : '{ DISAPPROVE }')); ?>
+" name="action[disapprove]" />
+						<input class="button1" type="submit" value="<?php echo ((isset($_rootref['L_APPROVE'])) ? $_rootref['L_APPROVE'] : ((isset($_lang['APPROVE'])) ? $_lang['APPROVE'] : '{ APPROVE }')); ?>
+" name="action[approve]" />
+						<input type="hidden" name="post_id_list[]" value="<?php echo (isset($_postrow_val['POST_ID'])) ? $_postrow_val['POST_ID'] : ''; ?>
+" />
+						<?php echo (isset($_rootref['S_FORM_TOKEN'])) ? $_rootref['S_FORM_TOKEN'] : ''; ?>
+
+					<br /><?php } ?>
+
+					<?php if ((isset($_postrow_val['S_POST_REPORTED']) ? $_postrow_val['S_POST_REPORTED'] : null)) {   echo (isset($_rootref['REPORTED_IMG'])) ? $_rootref['REPORTED_IMG'] : ''; ?>
+ <a href="<?php echo (isset($_postrow_val['U_MCP_REPORT'])) ? $_postrow_val['U_MCP_REPORT'] : ''; ?>
+"><strong><?php echo ((isset($_rootref['L_POST_REPORTED'])) ? $_rootref['L_POST_REPORTED'] : ((isset($_lang['POST_REPORTED'])) ? $_lang['POST_REPORTED'] : '{ POST_REPORTED }')); ?>
+</strong></a><?php } ?>
 
 				</p>
+			</form>
 			<?php } ?>
 
 
-			<div class="content"><?php echo $_postrow_val['MESSAGE']; ?></div>
+			<div class="content"><?php echo (isset($_postrow_val['MESSAGE'])) ? $_postrow_val['MESSAGE'] : ''; ?>
+</div>
 
-			<?php if ($_postrow_val['S_HAS_ATTACHMENTS']) {  ?>
+			<?php if ((isset($_postrow_val['S_HAS_ATTACHMENTS']) ? $_postrow_val['S_HAS_ATTACHMENTS'] : null)) {  ?>
 
 				<dl class="attachbox">
-					<dt><?php echo ((isset($this->_rootref['L_ATTACHMENTS'])) ? $this->_rootref['L_ATTACHMENTS'] : ((isset($user->lang['ATTACHMENTS'])) ? $user->lang['ATTACHMENTS'] : '{ ATTACHMENTS }')); ?></dt>
+					<dt><?php echo ((isset($_rootref['L_ATTACHMENTS'])) ? $_rootref['L_ATTACHMENTS'] : ((isset($_lang['ATTACHMENTS'])) ? $_lang['ATTACHMENTS'] : '{ ATTACHMENTS }')); ?>
+</dt><?php if (!defined('IN_PHPBB')) exit; ?>
 					<?php $_attachment_count = (isset($_postrow_val['attachment'])) ? sizeof($_postrow_val['attachment']) : 0;if ($_attachment_count) {for ($_attachment_i = 0; $_attachment_i < $_attachment_count; ++$_attachment_i){$_attachment_val = &$_postrow_val['attachment'][$_attachment_i]; ?>
 
-						<dd><?php echo $_attachment_val['DISPLAY_ATTACHMENT']; ?></dd>
+						<dd><?php echo (isset($_attachment_val['DISPLAY_ATTACHMENT'])) ? $_attachment_val['DISPLAY_ATTACHMENT'] : ''; ?>
+</dd>
 					<?php }} ?>
 
 				</dl>
-			<?php } if ($_postrow_val['S_DISPLAY_NOTICE']) {  ?><div class="rules"><?php echo ((isset($this->_rootref['L_DOWNLOAD_NOTICE'])) ? $this->_rootref['L_DOWNLOAD_NOTICE'] : ((isset($user->lang['DOWNLOAD_NOTICE'])) ? $user->lang['DOWNLOAD_NOTICE'] : '{ DOWNLOAD_NOTICE }')); ?></div><?php } if ($_postrow_val['EDITED_MESSAGE'] || $_postrow_val['EDIT_REASON']) {  ?>
+			<?php } ?>
+
+
+			<?php if ((isset($_postrow_val['S_DISPLAY_NOTICE']) ? $_postrow_val['S_DISPLAY_NOTICE'] : null)) {  ?><div class="rules"><?php echo ((isset($_rootref['L_DOWNLOAD_NOTICE'])) ? $_rootref['L_DOWNLOAD_NOTICE'] : ((isset($_lang['DOWNLOAD_NOTICE'])) ? $_lang['DOWNLOAD_NOTICE'] : '{ DOWNLOAD_NOTICE }')); ?>
+</div><?php } ?>
+
+			<?php if ((isset($_postrow_val['EDITED_MESSAGE']) ? $_postrow_val['EDITED_MESSAGE'] : null) || (isset($_postrow_val['EDIT_REASON']) ? $_postrow_val['EDIT_REASON'] : null)) {  ?>
 
-				<div class="notice"><?php echo $_postrow_val['EDITED_MESSAGE']; ?>
+				<div class="notice"><?php echo (isset($_postrow_val['EDITED_MESSAGE'])) ? $_postrow_val['EDITED_MESSAGE'] : ''; ?>
 
-					<?php if ($_postrow_val['EDIT_REASON']) {  ?><br /><strong><?php echo ((isset($this->_rootref['L_REASON'])) ? $this->_rootref['L_REASON'] : ((isset($user->lang['REASON'])) ? $user->lang['REASON'] : '{ REASON }')); ?>:</strong> <em><?php echo $_postrow_val['EDIT_REASON']; ?></em><?php } ?>
+					<?php if ((isset($_postrow_val['EDIT_REASON']) ? $_postrow_val['EDIT_REASON'] : null)) {  ?><br /><strong><?php echo ((isset($_rootref['L_REASON'])) ? $_rootref['L_REASON'] : ((isset($_lang['REASON'])) ? $_lang['REASON'] : '{ REASON }')); ?>
+:</strong> <em><?php echo (isset($_postrow_val['EDIT_REASON'])) ? $_postrow_val['EDIT_REASON'] : ''; ?>
+</em><?php } ?>
 
 				</div>
-			<?php } if ($_postrow_val['BUMPED_MESSAGE']) {  ?><div class="notice"><br /><br /><?php echo $_postrow_val['BUMPED_MESSAGE']; ?></div><?php } if ($_postrow_val['SIGNATURE']) {  ?><div id="sig<?php echo $_postrow_val['POST_ID']; ?>" class="signature"><?php echo $_postrow_val['SIGNATURE']; ?></div><?php } } ?>
+			<?php } ?>
+
+
+			<?php if ((isset($_postrow_val['BUMPED_MESSAGE']) ? $_postrow_val['BUMPED_MESSAGE'] : null)) {  ?><div class="notice"><br /><br /><?php echo (isset($_postrow_val['BUMPED_MESSAGE'])) ? $_postrow_val['BUMPED_MESSAGE'] : ''; ?>
+</div><?php } ?>
+
+			<?php if ((isset($_postrow_val['SIGNATURE']) ? $_postrow_val['SIGNATURE'] : null)) {  ?><div id="sig<?php echo (isset($_postrow_val['POST_ID'])) ? $_postrow_val['POST_ID'] : ''; ?>
+" class="signature"><?php echo (isset($_postrow_val['SIGNATURE'])) ? $_postrow_val['SIGNATURE'] : ''; ?>
+</div><?php } ?>
+
+		<?php } ?>
 
 
 		</div>
 
-		<?php if (! $_postrow_val['S_IGNORE_POST']) {  ?>
+		<?php if (! (isset($_postrow_val['S_IGNORE_POST']) ? $_postrow_val['S_IGNORE_POST'] : null)) {  ?>
 
-			<dl class="postprofile" id="profile<?php echo $_postrow_val['POST_ID']; ?>">
+			<dl class="postprofile" id="profile<?php echo (isset($_postrow_val['POST_ID'])) ? $_postrow_val['POST_ID'] : ''; ?>
+">
 			<dt>
-				<?php if ($_postrow_val['POSTER_AVATAR']) {  if ($_postrow_val['U_POST_AUTHOR']) {  ?><a href="<?php echo $_postrow_val['U_POST_AUTHOR']; ?>"><?php echo $_postrow_val['POSTER_AVATAR']; ?></a><?php } else { echo $_postrow_val['POSTER_AVATAR']; } ?><br />
-				<?php } if (! $_postrow_val['U_POST_AUTHOR']) {  ?><strong><?php echo $_postrow_val['POST_AUTHOR_FULL']; ?></strong><?php } else { echo $_postrow_val['POST_AUTHOR_FULL']; } ?>
+				<?php if ((isset($_postrow_val['POSTER_AVATAR']) ? $_postrow_val['POSTER_AVATAR'] : null)) {  ?>
+
+					<?php if ((isset($_postrow_val['U_POST_AUTHOR']) ? $_postrow_val['U_POST_AUTHOR'] : null)) {  ?><a href="<?php echo (isset($_postrow_val['U_POST_AUTHOR'])) ? $_postrow_val['U_POST_AUTHOR'] : ''; ?>
+"><?php echo (isset($_postrow_val['POSTER_AVATAR'])) ? $_postrow_val['POSTER_AVATAR'] : ''; ?>
+</a><?php } else {  echo (isset($_postrow_val['POSTER_AVATAR'])) ? $_postrow_val['POSTER_AVATAR'] : ''; ?>
+<?php } ?><br />
+				<?php } ?>
+
+				<?php if (! (isset($_postrow_val['U_POST_AUTHOR']) ? $_postrow_val['U_POST_AUTHOR'] : null)) {  ?><strong><?php echo (isset($_postrow_val['POST_AUTHOR_FULL'])) ? $_postrow_val['POST_AUTHOR_FULL'] : ''; ?>
+</strong><?php } else {  echo (isset($_postrow_val['POST_AUTHOR_FULL'])) ? $_postrow_val['POST_AUTHOR_FULL'] : ''; ?>
+<?php } ?>
 
 			</dt>
 
-			<?php if ($_postrow_val['RANK_TITLE'] || $_postrow_val['RANK_IMG']) {  ?><dd><?php echo $_postrow_val['RANK_TITLE']; if ($_postrow_val['RANK_TITLE'] && $_postrow_val['RANK_IMG']) {  ?><br /><?php } echo $_postrow_val['RANK_IMG']; ?></dd><?php } ?>
+			<?php if ((isset($_postrow_val['RANK_TITLE']) ? $_postrow_val['RANK_TITLE'] : null) || (isset($_postrow_val['RANK_IMG']) ? $_postrow_val['RANK_IMG'] : null)) {  ?><dd><?php echo (isset($_postrow_val['RANK_TITLE'])) ? $_postrow_val['RANK_TITLE'] : ''; ?>
+<?php if ((isset($_postrow_val['RANK_TITLE']) ? $_postrow_val['RANK_TITLE'] : null) && (isset($_postrow_val['RANK_IMG']) ? $_postrow_val['RANK_IMG'] : null)) {  ?><br /><?php }  echo (isset($_postrow_val['RANK_IMG'])) ? $_postrow_val['RANK_IMG'] : ''; ?>
+</dd><?php } ?>
 
 
 		<dd>&nbsp;</dd>
 
-		<?php if ($_postrow_val['POSTER_POSTS'] != ('')) {  ?><dd><strong><?php echo ((isset($this->_rootref['L_POSTS'])) ? $this->_rootref['L_POSTS'] : ((isset($user->lang['POSTS'])) ? $user->lang['POSTS'] : '{ POSTS }')); ?>:</strong> <?php echo $_postrow_val['POSTER_POSTS']; ?></dd><?php } if ($_postrow_val['GALLERY_IMAGES'] != ('')) {  ?><dd><strong><?php echo ((isset($this->_rootref['L_IMAGES'])) ? $this->_rootref['L_IMAGES'] : ((isset($user->lang['IMAGES'])) ? $user->lang['IMAGES'] : '{ IMAGES }')); ?>:</strong> <?php if ($_postrow_val['U_GALLERY_SEARCH']) {  ?><a href="<?php echo $_postrow_val['U_GALLERY_SEARCH']; ?>"><?php echo $_postrow_val['GALLERY_IMAGES']; ?></a><?php } else { echo $_postrow_val['GALLERY_IMAGES']; } ?></dd><?php } if ($_postrow_val['POSTER_JOINED']) {  ?><dd><strong><?php echo ((isset($this->_rootref['L_JOINED'])) ? $this->_rootref['L_JOINED'] : ((isset($user->lang['JOINED'])) ? $user->lang['JOINED'] : '{ JOINED }')); ?>:</strong> <?php echo $_postrow_val['POSTER_JOINED']; ?></dd><?php } if ($_postrow_val['POSTER_FROM']) {  ?><dd><strong><?php echo ((isset($this->_rootref['L_LOCATION'])) ? $this->_rootref['L_LOCATION'] : ((isset($user->lang['LOCATION'])) ? $user->lang['LOCATION'] : '{ LOCATION }')); ?>:</strong> <?php echo $_postrow_val['POSTER_FROM']; ?></dd><?php } if ($_postrow_val['S_PROFILE_FIELD1']) {  ?><!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
-			<dd><strong><?php echo $_postrow_val['PROFILE_FIELD1_NAME']; ?>:</strong> <?php echo $_postrow_val['PROFILE_FIELD1_VALUE']; ?></dd>
-		<?php } $_custom_fields_count = (isset($_postrow_val['custom_fields'])) ? sizeof($_postrow_val['custom_fields']) : 0;if ($_custom_fields_count) {for ($_custom_fields_i = 0; $_custom_fields_i < $_custom_fields_count; ++$_custom_fields_i){$_custom_fields_val = &$_postrow_val['custom_fields'][$_custom_fields_i]; ?>
+		<?php if ((isset($_postrow_val['POSTER_POSTS']) ? $_postrow_val['POSTER_POSTS'] : null) != '') {  ?><dd><strong><?php echo ((isset($_rootref['L_POSTS'])) ? $_rootref['L_POSTS'] : ((isset($_lang['POSTS'])) ? $_lang['POSTS'] : '{ POSTS }')); ?>
+:</strong> <?php echo (isset($_postrow_val['POSTER_POSTS'])) ? $_postrow_val['POSTER_POSTS'] : ''; ?>
+</dd><?php } ?>
+
+		<?php if ((isset($_postrow_val['POSTER_JOINED']) ? $_postrow_val['POSTER_JOINED'] : null)) {  ?><dd><strong><?php echo ((isset($_rootref['L_JOINED'])) ? $_rootref['L_JOINED'] : ((isset($_lang['JOINED'])) ? $_lang['JOINED'] : '{ JOINED }')); ?>
+:</strong> <?php echo (isset($_postrow_val['POSTER_JOINED'])) ? $_postrow_val['POSTER_JOINED'] : ''; ?>
+</dd><?php } ?>
+
+		<?php if ((isset($_postrow_val['POSTER_FROM']) ? $_postrow_val['POSTER_FROM'] : null)) {  ?><dd><strong><?php echo ((isset($_rootref['L_LOCATION'])) ? $_rootref['L_LOCATION'] : ((isset($_lang['LOCATION'])) ? $_lang['LOCATION'] : '{ LOCATION }')); ?>
+:</strong> <?php echo (isset($_postrow_val['POSTER_FROM'])) ? $_postrow_val['POSTER_FROM'] : ''; ?>
+</dd><?php } ?>
+
+
+		<?php if ((isset($_postrow_val['S_PROFILE_FIELD1']) ? $_postrow_val['S_PROFILE_FIELD1'] : null)) {  ?>
+
+			<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
+			<dd><strong><?php echo (isset($_postrow_val['PROFILE_FIELD1_NAME'])) ? $_postrow_val['PROFILE_FIELD1_NAME'] : ''; ?>
+:</strong> <?php echo (isset($_postrow_val['PROFILE_FIELD1_VALUE'])) ? $_postrow_val['PROFILE_FIELD1_VALUE'] : ''; ?>
+</dd>
+		<?php } ?>
+
+
+		<?php $_custom_fields_count = (isset($_postrow_val['custom_fields'])) ? sizeof($_postrow_val['custom_fields']) : 0;if ($_custom_fields_count) {for ($_custom_fields_i = 0; $_custom_fields_i < $_custom_fields_count; ++$_custom_fields_i){$_custom_fields_val = &$_postrow_val['custom_fields'][$_custom_fields_i]; ?>
 
-			<dd><strong><?php echo $_custom_fields_val['PROFILE_FIELD_NAME']; ?>:</strong> <?php echo $_custom_fields_val['PROFILE_FIELD_VALUE']; ?></dd>
-		<?php }} if (! $this->_rootref['S_IS_BOT']) {  if ($_postrow_val['U_PM'] || $_postrow_val['U_EMAIL'] || $_postrow_val['U_WWW'] || $_postrow_val['U_WWW'] || $_postrow_val['U_WWW'] || $_postrow_val['U_MSN'] || $_postrow_val['U_ICQ'] || $_postrow_val['U_YIM'] || $_postrow_val['U_AIM'] || $_postrow_val['U_JABBER']) {  ?>
+			<dd><strong><?php echo (isset($_custom_fields_val['PROFILE_FIELD_NAME'])) ? $_custom_fields_val['PROFILE_FIELD_NAME'] : ''; ?>
+:</strong> <?php echo (isset($_custom_fields_val['PROFILE_FIELD_VALUE'])) ? $_custom_fields_val['PROFILE_FIELD_VALUE'] : ''; ?>
+</dd>
+		<?php }} ?>
+
+
+		<?php if (! (isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+) {  ?>
+		<?php if ((isset($_postrow_val['U_PM']) ? $_postrow_val['U_PM'] : null) || (isset($_postrow_val['U_EMAIL']) ? $_postrow_val['U_EMAIL'] : null) || (isset($_postrow_val['U_WWW']) ? $_postrow_val['U_WWW'] : null) || (isset($_postrow_val['U_MSN']) ? $_postrow_val['U_MSN'] : null) || (isset($_postrow_val['U_ICQ']) ? $_postrow_val['U_ICQ'] : null) || (isset($_postrow_val['U_YIM']) ? $_postrow_val['U_YIM'] : null) || (isset($_postrow_val['U_AIM']) ? $_postrow_val['U_AIM'] : null) || (isset($_postrow_val['U_JABBER']) ? $_postrow_val['U_JABBER'] : null)) {  ?>
 
 			<dd>
 				<ul class="profile-icons">
-					<?php if ($_postrow_val['U_PM']) {  ?><li class="pm-icon"><a href="<?php echo $_postrow_val['U_PM']; ?>" title="<?php echo ((isset($this->_rootref['L_PRIVATE_MESSAGE'])) ? $this->_rootref['L_PRIVATE_MESSAGE'] : ((isset($user->lang['PRIVATE_MESSAGE'])) ? $user->lang['PRIVATE_MESSAGE'] : '{ PRIVATE_MESSAGE }')); ?>"><span><?php echo ((isset($this->_rootref['L_PRIVATE_MESSAGE'])) ? $this->_rootref['L_PRIVATE_MESSAGE'] : ((isset($user->lang['PRIVATE_MESSAGE'])) ? $user->lang['PRIVATE_MESSAGE'] : '{ PRIVATE_MESSAGE }')); ?></span></a></li><?php } if ($_postrow_val['U_EMAIL']) {  ?><li class="email-icon"><a href="<?php echo $_postrow_val['U_EMAIL']; ?>" title="<?php echo ((isset($this->_rootref['L_SEND_EMAIL_USER'])) ? $this->_rootref['L_SEND_EMAIL_USER'] : ((isset($user->lang['SEND_EMAIL_USER'])) ? $user->lang['SEND_EMAIL_USER'] : '{ SEND_EMAIL_USER }')); ?> <?php echo $_postrow_val['POST_AUTHOR']; ?>"><span><?php echo ((isset($this->_rootref['L_SEND_EMAIL_USER'])) ? $this->_rootref['L_SEND_EMAIL_USER'] : ((isset($user->lang['SEND_EMAIL_USER'])) ? $user->lang['SEND_EMAIL_USER'] : '{ SEND_EMAIL_USER }')); ?> <?php echo $_postrow_val['POST_AUTHOR']; ?></span></a></li><?php } if ($_postrow_val['U_WWW']) {  ?><li class="web-icon"><a href="<?php echo $_postrow_val['U_WWW']; ?>" title="<?php echo ((isset($this->_rootref['L_VISIT_WEBSITE'])) ? $this->_rootref['L_VISIT_WEBSITE'] : ((isset($user->lang['VISIT_WEBSITE'])) ? $user->lang['VISIT_WEBSITE'] : '{ VISIT_WEBSITE }')); ?>: <?php echo $_postrow_val['U_WWW']; ?>"><span><?php echo ((isset($this->_rootref['L_WEBSITE'])) ? $this->_rootref['L_WEBSITE'] : ((isset($user->lang['WEBSITE'])) ? $user->lang['WEBSITE'] : '{ WEBSITE }')); ?></span></a></li><?php } if ($_postrow_val['U_MSN']) {  ?><li class="msnm-icon"><a href="<?php echo $_postrow_val['U_MSN']; ?>" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($this->_rootref['L_MSNM'])) ? $this->_rootref['L_MSNM'] : ((isset($user->lang['MSNM'])) ? $user->lang['MSNM'] : '{ MSNM }')); ?>"><span><?php echo ((isset($this->_rootref['L_MSNM'])) ? $this->_rootref['L_MSNM'] : ((isset($user->lang['MSNM'])) ? $user->lang['MSNM'] : '{ MSNM }')); ?></span></a></li><?php } if ($_postrow_val['U_ICQ']) {  ?><li class="icq-icon"><a href="<?php echo $_postrow_val['U_ICQ']; ?>" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($this->_rootref['L_ICQ'])) ? $this->_rootref['L_ICQ'] : ((isset($user->lang['ICQ'])) ? $user->lang['ICQ'] : '{ ICQ }')); ?>"><span><?php echo ((isset($this->_rootref['L_ICQ'])) ? $this->_rootref['L_ICQ'] : ((isset($user->lang['ICQ'])) ? $user->lang['ICQ'] : '{ ICQ }')); ?></span></a></li><?php } if ($_postrow_val['U_YIM']) {  ?><li class="yahoo-icon"><a href="<?php echo $_postrow_val['U_YIM']; ?>" onclick="popup(this.href, 780, 550); return false;" title="<?php echo ((isset($this->_rootref['L_YIM'])) ? $this->_rootref['L_YIM'] : ((isset($user->lang['YIM'])) ? $user->lang['YIM'] : '{ YIM }')); ?>"><span><?php echo ((isset($this->_rootref['L_YIM'])) ? $this->_rootref['L_YIM'] : ((isset($user->lang['YIM'])) ? $user->lang['YIM'] : '{ YIM }')); ?></span></a></li><?php } if ($_postrow_val['U_AIM']) {  ?><li class="aim-icon"><a href="<?php echo $_postrow_val['U_AIM']; ?>" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($this->_rootref['L_AIM'])) ? $this->_rootref['L_AIM'] : ((isset($user->lang['AIM'])) ? $user->lang['AIM'] : '{ AIM }')); ?>"><span><?php echo ((isset($this->_rootref['L_AIM'])) ? $this->_rootref['L_AIM'] : ((isset($user->lang['AIM'])) ? $user->lang['AIM'] : '{ AIM }')); ?></span></a></li><?php } if ($_postrow_val['U_JABBER']) {  ?><li class="jabber-icon"><a href="<?php echo $_postrow_val['U_JABBER']; ?>" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($this->_rootref['L_JABBER'])) ? $this->_rootref['L_JABBER'] : ((isset($user->lang['JABBER'])) ? $user->lang['JABBER'] : '{ JABBER }')); ?>"><span><?php echo ((isset($this->_rootref['L_JABBER'])) ? $this->_rootref['L_JABBER'] : ((isset($user->lang['JABBER'])) ? $user->lang['JABBER'] : '{ JABBER }')); ?></span></a></li><?php } if ($_postrow_val['U_GALLERY']) {  ?><li class="gallery-icon"><a href="<?php echo $_postrow_val['U_GALLERY']; ?>" title="<?php echo ((isset($this->_rootref['L_PERSONAL_ALBUM'])) ? $this->_rootref['L_PERSONAL_ALBUM'] : ((isset($user->lang['PERSONAL_ALBUM'])) ? $user->lang['PERSONAL_ALBUM'] : '{ PERSONAL_ALBUM }')); ?>"><span><?php echo ((isset($this->_rootref['L_PERSONAL_ALBUM'])) ? $this->_rootref['L_PERSONAL_ALBUM'] : ((isset($user->lang['PERSONAL_ALBUM'])) ? $user->lang['PERSONAL_ALBUM'] : '{ PERSONAL_ALBUM }')); ?></span></a></li><?php } ?>
+					<?php if ((isset($_postrow_val['U_PM']) ? $_postrow_val['U_PM'] : null)) {  ?><li class="pm-icon"><a href="<?php echo (isset($_postrow_val['U_PM'])) ? $_postrow_val['U_PM'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_PRIVATE_MESSAGE'])) ? $_rootref['L_PRIVATE_MESSAGE'] : ((isset($_lang['PRIVATE_MESSAGE'])) ? $_lang['PRIVATE_MESSAGE'] : '{ PRIVATE_MESSAGE }')); ?>
+"><span><?php echo ((isset($_rootref['L_PRIVATE_MESSAGE'])) ? $_rootref['L_PRIVATE_MESSAGE'] : ((isset($_lang['PRIVATE_MESSAGE'])) ? $_lang['PRIVATE_MESSAGE'] : '{ PRIVATE_MESSAGE }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_EMAIL']) ? $_postrow_val['U_EMAIL'] : null)) {  ?><li class="email-icon"><a href="<?php echo (isset($_postrow_val['U_EMAIL'])) ? $_postrow_val['U_EMAIL'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_SEND_EMAIL_USER'])) ? $_rootref['L_SEND_EMAIL_USER'] : ((isset($_lang['SEND_EMAIL_USER'])) ? $_lang['SEND_EMAIL_USER'] : '{ SEND_EMAIL_USER }')); ?>
+ <?php echo (isset($_postrow_val['POST_AUTHOR'])) ? $_postrow_val['POST_AUTHOR'] : ''; ?>
+"><span><?php echo ((isset($_rootref['L_SEND_EMAIL_USER'])) ? $_rootref['L_SEND_EMAIL_USER'] : ((isset($_lang['SEND_EMAIL_USER'])) ? $_lang['SEND_EMAIL_USER'] : '{ SEND_EMAIL_USER }')); ?>
+ <?php echo (isset($_postrow_val['POST_AUTHOR'])) ? $_postrow_val['POST_AUTHOR'] : ''; ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_WWW']) ? $_postrow_val['U_WWW'] : null)) {  ?><li class="web-icon"><a href="<?php echo (isset($_postrow_val['U_WWW'])) ? $_postrow_val['U_WWW'] : ''; ?>
+" title="<?php echo ((isset($_rootref['L_VISIT_WEBSITE'])) ? $_rootref['L_VISIT_WEBSITE'] : ((isset($_lang['VISIT_WEBSITE'])) ? $_lang['VISIT_WEBSITE'] : '{ VISIT_WEBSITE }')); ?>
+: <?php echo (isset($_postrow_val['U_WWW'])) ? $_postrow_val['U_WWW'] : ''; ?>
+"><span><?php echo ((isset($_rootref['L_WEBSITE'])) ? $_rootref['L_WEBSITE'] : ((isset($_lang['WEBSITE'])) ? $_lang['WEBSITE'] : '{ WEBSITE }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_MSN']) ? $_postrow_val['U_MSN'] : null)) {  ?><li class="msnm-icon"><a href="<?php echo (isset($_postrow_val['U_MSN'])) ? $_postrow_val['U_MSN'] : ''; ?>
+" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($_rootref['L_MSNM'])) ? $_rootref['L_MSNM'] : ((isset($_lang['MSNM'])) ? $_lang['MSNM'] : '{ MSNM }')); ?>
+"><span><?php echo ((isset($_rootref['L_MSNM'])) ? $_rootref['L_MSNM'] : ((isset($_lang['MSNM'])) ? $_lang['MSNM'] : '{ MSNM }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_ICQ']) ? $_postrow_val['U_ICQ'] : null)) {  ?><li class="icq-icon"><a href="<?php echo (isset($_postrow_val['U_ICQ'])) ? $_postrow_val['U_ICQ'] : ''; ?>
+" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($_rootref['L_ICQ'])) ? $_rootref['L_ICQ'] : ((isset($_lang['ICQ'])) ? $_lang['ICQ'] : '{ ICQ }')); ?>
+"><span><?php echo ((isset($_rootref['L_ICQ'])) ? $_rootref['L_ICQ'] : ((isset($_lang['ICQ'])) ? $_lang['ICQ'] : '{ ICQ }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_YIM']) ? $_postrow_val['U_YIM'] : null)) {  ?><li class="yahoo-icon"><a href="<?php echo (isset($_postrow_val['U_YIM'])) ? $_postrow_val['U_YIM'] : ''; ?>
+" onclick="popup(this.href, 780, 550); return false;" title="<?php echo ((isset($_rootref['L_YIM'])) ? $_rootref['L_YIM'] : ((isset($_lang['YIM'])) ? $_lang['YIM'] : '{ YIM }')); ?>
+"><span><?php echo ((isset($_rootref['L_YIM'])) ? $_rootref['L_YIM'] : ((isset($_lang['YIM'])) ? $_lang['YIM'] : '{ YIM }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_AIM']) ? $_postrow_val['U_AIM'] : null)) {  ?><li class="aim-icon"><a href="<?php echo (isset($_postrow_val['U_AIM'])) ? $_postrow_val['U_AIM'] : ''; ?>
+" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($_rootref['L_AIM'])) ? $_rootref['L_AIM'] : ((isset($_lang['AIM'])) ? $_lang['AIM'] : '{ AIM }')); ?>
+"><span><?php echo ((isset($_rootref['L_AIM'])) ? $_rootref['L_AIM'] : ((isset($_lang['AIM'])) ? $_lang['AIM'] : '{ AIM }')); ?>
+</span></a></li><?php } ?>
+
+					<?php if ((isset($_postrow_val['U_JABBER']) ? $_postrow_val['U_JABBER'] : null)) {  ?><li class="jabber-icon"><a href="<?php echo (isset($_postrow_val['U_JABBER'])) ? $_postrow_val['U_JABBER'] : ''; ?>
+" onclick="popup(this.href, 550, 320); return false;" title="<?php echo ((isset($_rootref['L_JABBER'])) ? $_rootref['L_JABBER'] : ((isset($_lang['JABBER'])) ? $_lang['JABBER'] : '{ JABBER }')); ?>
+"><span><?php echo ((isset($_rootref['L_JABBER'])) ? $_rootref['L_JABBER'] : ((isset($_lang['JABBER'])) ? $_lang['JABBER'] : '{ JABBER }')); ?>
+</span></a></li><?php } ?>
 
 				</ul>
 			</dd>
-		<?php } } ?>
+		<?php } ?>
+
+		<?php } ?>
 
 
 		</dl>
 	<?php } ?>
 
 
-		<div class="back2top"><a href="#wrap" class="top" title="<?php echo ((isset($this->_rootref['L_BACK_TO_TOP'])) ? $this->_rootref['L_BACK_TO_TOP'] : ((isset($user->lang['BACK_TO_TOP'])) ? $user->lang['BACK_TO_TOP'] : '{ BACK_TO_TOP }')); ?>"><?php echo ((isset($this->_rootref['L_BACK_TO_TOP'])) ? $this->_rootref['L_BACK_TO_TOP'] : ((isset($user->lang['BACK_TO_TOP'])) ? $user->lang['BACK_TO_TOP'] : '{ BACK_TO_TOP }')); ?></a></div>
+		<div class="back2top"><a href="#wrap" class="top" title="<?php echo ((isset($_rootref['L_BACK_TO_TOP'])) ? $_rootref['L_BACK_TO_TOP'] : ((isset($_lang['BACK_TO_TOP'])) ? $_lang['BACK_TO_TOP'] : '{ BACK_TO_TOP }')); ?>
+"><?php echo ((isset($_rootref['L_BACK_TO_TOP'])) ? $_rootref['L_BACK_TO_TOP'] : ((isset($_lang['BACK_TO_TOP'])) ? $_lang['BACK_TO_TOP'] : '{ BACK_TO_TOP }')); ?>
+</a></div>
 
-		<span class="corners-bottom"><span></span></span></div>
+		</div>
 	</div>
 
 	<hr class="divider" />
-<?php }} if ($this->_rootref['S_QUICK_REPLY']) {  $this->_tpl_include('quickreply_editor.html'); } if ($this->_rootref['S_NUM_POSTS'] > (1) || $this->_rootref['PREVIOUS_PAGE']) {  ?>
+<?php }} ?>
+<?php if ((isset($_rootref['S_QUICK_REPLY']) ? $_rootref['S_QUICK_REPLY'] : null)
+) {  ?>
+	<?php $_template->_tpl_include('quickreply_editor.html'); ?>
 
-	<form id="viewtopic" method="post" action="<?php echo (isset($this->_rootref['S_TOPIC_ACTION'])) ? $this->_rootref['S_TOPIC_ACTION'] : ''; ?>">
+<?php } ?>
+<?php if ((isset($_rootref['S_NUM_POSTS']) ? $_rootref['S_NUM_POSTS'] : null)
+ > 1 || (isset($_rootref['PREVIOUS_PAGE']) ? $_rootref['PREVIOUS_PAGE'] : null)
+) {  ?>
+	<form id="viewtopic" method="post" action="<?php echo (isset($_rootref['S_TOPIC_ACTION'])) ? $_rootref['S_TOPIC_ACTION'] : ''; ?>
+">
 
 	<fieldset class="display-options" style="margin-top: 0; ">
-		<?php if ($this->_rootref['PREVIOUS_PAGE']) {  ?><a href="<?php echo (isset($this->_rootref['PREVIOUS_PAGE'])) ? $this->_rootref['PREVIOUS_PAGE'] : ''; ?>" class="left-box <?php echo (isset($this->_rootref['S_CONTENT_FLOW_BEGIN'])) ? $this->_rootref['S_CONTENT_FLOW_BEGIN'] : ''; ?>"><?php echo ((isset($this->_rootref['L_PREVIOUS'])) ? $this->_rootref['L_PREVIOUS'] : ((isset($user->lang['PREVIOUS'])) ? $user->lang['PREVIOUS'] : '{ PREVIOUS }')); ?></a><?php } if ($this->_rootref['NEXT_PAGE']) {  ?><a href="<?php echo (isset($this->_rootref['NEXT_PAGE'])) ? $this->_rootref['NEXT_PAGE'] : ''; ?>" class="right-box <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>"><?php echo ((isset($this->_rootref['L_NEXT'])) ? $this->_rootref['L_NEXT'] : ((isset($user->lang['NEXT'])) ? $user->lang['NEXT'] : '{ NEXT }')); ?></a><?php } if (! $this->_rootref['S_IS_BOT']) {  ?>
-
-		<label><?php echo ((isset($this->_rootref['L_DISPLAY_POSTS'])) ? $this->_rootref['L_DISPLAY_POSTS'] : ((isset($user->lang['DISPLAY_POSTS'])) ? $user->lang['DISPLAY_POSTS'] : '{ DISPLAY_POSTS }')); ?>: <?php echo (isset($this->_rootref['S_SELECT_SORT_DAYS'])) ? $this->_rootref['S_SELECT_SORT_DAYS'] : ''; ?></label>
-		<label><?php echo ((isset($this->_rootref['L_SORT_BY'])) ? $this->_rootref['L_SORT_BY'] : ((isset($user->lang['SORT_BY'])) ? $user->lang['SORT_BY'] : '{ SORT_BY }')); ?> <?php echo (isset($this->_rootref['S_SELECT_SORT_KEY'])) ? $this->_rootref['S_SELECT_SORT_KEY'] : ''; ?></label> <label><?php echo (isset($this->_rootref['S_SELECT_SORT_DIR'])) ? $this->_rootref['S_SELECT_SORT_DIR'] : ''; ?> <input type="submit" name="sort" value="<?php echo ((isset($this->_rootref['L_GO'])) ? $this->_rootref['L_GO'] : ((isset($user->lang['GO'])) ? $user->lang['GO'] : '{ GO }')); ?>" class="button2" /></label>
+		<?php if ((isset($_rootref['PREVIOUS_PAGE']) ? $_rootref['PREVIOUS_PAGE'] : null)
+) {  ?><a href="<?php echo (isset($_rootref['PREVIOUS_PAGE'])) ? $_rootref['PREVIOUS_PAGE'] : ''; ?>
+" class="left-box <?php echo (isset($_rootref['S_CONTENT_FLOW_BEGIN'])) ? $_rootref['S_CONTENT_FLOW_BEGIN'] : ''; ?>
+"><?php echo ((isset($_rootref['L_PREVIOUS'])) ? $_rootref['L_PREVIOUS'] : ((isset($_lang['PREVIOUS'])) ? $_lang['PREVIOUS'] : '{ PREVIOUS }')); ?>
+</a><?php } ?>
+
+		<?php if ((isset($_rootref['NEXT_PAGE']) ? $_rootref['NEXT_PAGE'] : null)
+) {  ?><a href="<?php echo (isset($_rootref['NEXT_PAGE'])) ? $_rootref['NEXT_PAGE'] : ''; ?>
+" class="right-box <?php echo (isset($_rootref['S_CONTENT_FLOW_END'])) ? $_rootref['S_CONTENT_FLOW_END'] : ''; ?>
+"><?php echo ((isset($_rootref['L_NEXT'])) ? $_rootref['L_NEXT'] : ((isset($_lang['NEXT'])) ? $_lang['NEXT'] : '{ NEXT }')); ?>
+</a><?php } ?>
+
+		<?php if (! (isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+) {  ?>
+		<label><?php echo ((isset($_rootref['L_DISPLAY_POSTS'])) ? $_rootref['L_DISPLAY_POSTS'] : ((isset($_lang['DISPLAY_POSTS'])) ? $_lang['DISPLAY_POSTS'] : '{ DISPLAY_POSTS }')); ?>
+: <?php echo (isset($_rootref['S_SELECT_SORT_DAYS'])) ? $_rootref['S_SELECT_SORT_DAYS'] : ''; ?>
+</label>
+		<label><?php echo ((isset($_rootref['L_SORT_BY'])) ? $_rootref['L_SORT_BY'] : ((isset($_lang['SORT_BY'])) ? $_lang['SORT_BY'] : '{ SORT_BY }')); ?>
+ <?php echo (isset($_rootref['S_SELECT_SORT_KEY'])) ? $_rootref['S_SELECT_SORT_KEY'] : ''; ?>
+</label> <label><?php echo (isset($_rootref['S_SELECT_SORT_DIR'])) ? $_rootref['S_SELECT_SORT_DIR'] : ''; ?>
+ <input type="submit" name="sort" value="<?php echo ((isset($_rootref['L_GO'])) ? $_rootref['L_GO'] : ((isset($_lang['GO'])) ? $_lang['GO'] : '{ GO }')); ?>
+" class="button2" /></label>
 		<?php } ?>
 
 	</fieldset>
@@ -228,39 +519,77 @@
 	<hr />
 <?php } ?>
 
-
 <div class="topic-actions">
 	<div class="buttons">
-	<?php if (! $this->_rootref['S_IS_BOT'] && $this->_rootref['S_DISPLAY_REPLY_INFO']) {  ?>
-
-		<div class="<?php if ($this->_rootref['S_IS_LOCKED']) {  ?>locked-icon<?php } else { ?>reply-icon<?php } ?>"><a href="<?php echo (isset($this->_rootref['U_POST_REPLY_TOPIC'])) ? $this->_rootref['U_POST_REPLY_TOPIC'] : ''; ?>" title="<?php if ($this->_rootref['S_IS_LOCKED']) {  echo ((isset($this->_rootref['L_TOPIC_LOCKED'])) ? $this->_rootref['L_TOPIC_LOCKED'] : ((isset($user->lang['TOPIC_LOCKED'])) ? $user->lang['TOPIC_LOCKED'] : '{ TOPIC_LOCKED }')); } else { echo ((isset($this->_rootref['L_POST_REPLY'])) ? $this->_rootref['L_POST_REPLY'] : ((isset($user->lang['POST_REPLY'])) ? $user->lang['POST_REPLY'] : '{ POST_REPLY }')); } ?>"><span></span><?php if ($this->_rootref['S_IS_LOCKED']) {  echo ((isset($this->_rootref['L_TOPIC_LOCKED_SHORT'])) ? $this->_rootref['L_TOPIC_LOCKED_SHORT'] : ((isset($user->lang['TOPIC_LOCKED_SHORT'])) ? $user->lang['TOPIC_LOCKED_SHORT'] : '{ TOPIC_LOCKED_SHORT }')); } else { echo ((isset($this->_rootref['L_POST_REPLY'])) ? $this->_rootref['L_POST_REPLY'] : ((isset($user->lang['POST_REPLY'])) ? $user->lang['POST_REPLY'] : '{ POST_REPLY }')); } ?></a></div>
+	<?php if (! (isset($_rootref['S_IS_BOT']) ? $_rootref['S_IS_BOT'] : null)
+ && (isset($_rootref['S_DISPLAY_REPLY_INFO']) ? $_rootref['S_DISPLAY_REPLY_INFO'] : null)
+) {  ?>
+		<div class="<?php if ((isset($_rootref['S_IS_LOCKED']) ? $_rootref['S_IS_LOCKED'] : null)
+) {  ?>locked-icon<?php } else { ?>reply-icon<?php } ?>"><a href="<?php echo (isset($_rootref['U_POST_REPLY_TOPIC'])) ? $_rootref['U_POST_REPLY_TOPIC'] : ''; ?>
+" title="<?php if ((isset($_rootref['S_IS_LOCKED']) ? $_rootref['S_IS_LOCKED'] : null)
+) {   echo ((isset($_rootref['L_TOPIC_LOCKED'])) ? $_rootref['L_TOPIC_LOCKED'] : ((isset($_lang['TOPIC_LOCKED'])) ? $_lang['TOPIC_LOCKED'] : '{ TOPIC_LOCKED }')); ?>
+<?php } else {  echo ((isset($_rootref['L_POST_REPLY'])) ? $_rootref['L_POST_REPLY'] : ((isset($_lang['POST_REPLY'])) ? $_lang['POST_REPLY'] : '{ POST_REPLY }')); ?>
+<?php } ?>"><span></span><?php if ((isset($_rootref['S_IS_LOCKED']) ? $_rootref['S_IS_LOCKED'] : null)
+) {   echo ((isset($_rootref['L_TOPIC_LOCKED_SHORT'])) ? $_rootref['L_TOPIC_LOCKED_SHORT'] : ((isset($_lang['TOPIC_LOCKED_SHORT'])) ? $_lang['TOPIC_LOCKED_SHORT'] : '{ TOPIC_LOCKED_SHORT }')); ?>
+<?php } else {  echo ((isset($_rootref['L_POST_REPLY'])) ? $_rootref['L_POST_REPLY'] : ((isset($_lang['POST_REPLY'])) ? $_lang['POST_REPLY'] : '{ POST_REPLY }')); ?>
+<?php } ?></a></div>
 	<?php } ?>
 
 	</div>
 
-	<?php if ($this->_rootref['PAGINATION'] || $this->_rootref['TOTAL_POSTS']) {  ?>
-
+	<?php if ((isset($_rootref['PAGINATION']) ? $_rootref['PAGINATION'] : null)
+ || (isset($_rootref['TOTAL_POSTS']) ? $_rootref['TOTAL_POSTS'] : null)
+) {  ?>
 		<div class="pagination">
-			<?php echo (isset($this->_rootref['TOTAL_POSTS'])) ? $this->_rootref['TOTAL_POSTS'] : ''; ?>
+			<?php echo (isset($_rootref['TOTAL_POSTS'])) ? $_rootref['TOTAL_POSTS'] : ''; ?>
 
-			<?php if ($this->_rootref['PAGE_NUMBER']) {  if ($this->_rootref['PAGINATION']) {  ?> &bull; <a href="#" onclick="jumpto(); return false;" title="<?php echo ((isset($this->_rootref['L_JUMP_TO_PAGE'])) ? $this->_rootref['L_JUMP_TO_PAGE'] : ((isset($user->lang['JUMP_TO_PAGE'])) ? $user->lang['JUMP_TO_PAGE'] : '{ JUMP_TO_PAGE }')); ?>"><?php echo (isset($this->_rootref['PAGE_NUMBER'])) ? $this->_rootref['PAGE_NUMBER'] : ''; ?></a> &bull; <span><?php echo (isset($this->_rootref['PAGINATION'])) ? $this->_rootref['PAGINATION'] : ''; ?></span><?php } else { ?> &bull; <?php echo (isset($this->_rootref['PAGE_NUMBER'])) ? $this->_rootref['PAGE_NUMBER'] : ''; } } ?>
+			<?php if ((isset($_rootref['PAGE_NUMBER']) ? $_rootref['PAGE_NUMBER'] : null)
+) {   if ((isset($_rootref['PAGINATION']) ? $_rootref['PAGINATION'] : null)
+) {  ?> &bull; <a href="#" onclick="jumpto(); return false;" title="<?php echo ((isset($_rootref['L_JUMP_TO_PAGE'])) ? $_rootref['L_JUMP_TO_PAGE'] : ((isset($_lang['JUMP_TO_PAGE'])) ? $_lang['JUMP_TO_PAGE'] : '{ JUMP_TO_PAGE }')); ?>
+"><?php echo (isset($_rootref['PAGE_NUMBER'])) ? $_rootref['PAGE_NUMBER'] : ''; ?>
+</a> &bull; <span><?php echo (isset($_rootref['PAGINATION'])) ? $_rootref['PAGINATION'] : ''; ?>
+</span><?php } else { ?> &bull; <?php echo (isset($_rootref['PAGE_NUMBER'])) ? $_rootref['PAGE_NUMBER'] : ''; ?>
+<?php }  } ?>
 
 		</div>
 	<?php } ?>
 
 </div>
 
-<?php $this->_tpl_include('jumpbox.html'); if ($this->_rootref['S_TOPIC_MOD']) {  ?>
+<?php $_template->_tpl_include('jumpbox.html'); ?>
 
-	<form method="post" action="<?php echo (isset($this->_rootref['S_MOD_ACTION'])) ? $this->_rootref['S_MOD_ACTION'] : ''; ?>">
+<?php if ((isset($_tpldata['quickmod']) ? sizeof($_tpldata['quickmod']) : 0)) {  ?>
+	<form method="post" action="<?php echo (isset($_rootref['S_MOD_ACTION'])) ? $_rootref['S_MOD_ACTION'] : ''; ?>
+" id="quickmodform" data-ajax="true">
 	<fieldset class="quickmod">
-		<label for="quick-mod-select"><?php echo ((isset($this->_rootref['L_QUICK_MOD'])) ? $this->_rootref['L_QUICK_MOD'] : ((isset($user->lang['QUICK_MOD'])) ? $user->lang['QUICK_MOD'] : '{ QUICK_MOD }')); ?>:</label> <?php echo (isset($this->_rootref['S_TOPIC_MOD'])) ? $this->_rootref['S_TOPIC_MOD'] : ''; ?> <input type="submit" value="<?php echo ((isset($this->_rootref['L_GO'])) ? $this->_rootref['L_GO'] : ((isset($user->lang['GO'])) ? $user->lang['GO'] : '{ GO }')); ?>" class="button2" />
-		<?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''; ?>
+		<label for="quick-mod-select"><?php echo ((isset($_rootref['L_QUICK_MOD'])) ? $_rootref['L_QUICK_MOD'] : ((isset($_lang['QUICK_MOD'])) ? $_lang['QUICK_MOD'] : '{ QUICK_MOD }')); ?>
+:</label>
+		<select name="action" id="quick-mod-select">
+			<?php $_quickmod_count = (isset($_tpldata['quickmod'])) ? sizeof($_tpldata['quickmod']) : 0;if ($_quickmod_count) {for ($_quickmod_i = 0; $_quickmod_i < $_quickmod_count; ++$_quickmod_i){$_quickmod_val = &$_tpldata['quickmod'][$_quickmod_i]; ?>
+
+			<option value="<?php echo (isset($_quickmod_val['VALUE'])) ? $_quickmod_val['VALUE'] : ''; ?>
+"><?php echo (isset($_quickmod_val['TITLE'])) ? $_quickmod_val['TITLE'] : ''; ?>
+</option>
+			<?php }} ?>
+
+		</select>
+		<input type="submit" value="<?php echo ((isset($_rootref['L_GO'])) ? $_rootref['L_GO'] : ((isset($_lang['GO'])) ? $_lang['GO'] : '{ GO }')); ?>
+" class="button2" />
+		<?php echo (isset($_rootref['S_FORM_TOKEN'])) ? $_rootref['S_FORM_TOKEN'] : ''; ?>
 
 	</fieldset>
 	</form>
-<?php } if ($this->_rootref['S_DISPLAY_ONLINE_LIST']) {  ?>
+<?php } ?>
+
+<?php if ((isset($_rootref['S_DISPLAY_ONLINE_LIST']) ? $_rootref['S_DISPLAY_ONLINE_LIST'] : null)
+) {  ?>
+	<h3><?php if ((isset($_rootref['U_VIEWONLINE']) ? $_rootref['U_VIEWONLINE'] : null)
+) {  ?><a href="<?php echo (isset($_rootref['U_VIEWONLINE'])) ? $_rootref['U_VIEWONLINE'] : ''; ?>
+"><?php echo ((isset($_rootref['L_WHO_IS_ONLINE'])) ? $_rootref['L_WHO_IS_ONLINE'] : ((isset($_lang['WHO_IS_ONLINE'])) ? $_lang['WHO_IS_ONLINE'] : '{ WHO_IS_ONLINE }')); ?>
+</a><?php } else {  echo ((isset($_rootref['L_WHO_IS_ONLINE'])) ? $_rootref['L_WHO_IS_ONLINE'] : ((isset($_lang['WHO_IS_ONLINE'])) ? $_lang['WHO_IS_ONLINE'] : '{ WHO_IS_ONLINE }')); ?>
+<?php } ?></h3>
+	<p><?php echo (isset($_rootref['LOGGED_IN_USER_LIST'])) ? $_rootref['LOGGED_IN_USER_LIST'] : ''; ?>
+</p>
+<?php } ?>
 
-	<h3><?php if ($this->_rootref['U_VIEWONLINE']) {  ?><a href="<?php echo (isset($this->_rootref['U_VIEWONLINE'])) ? $this->_rootref['U_VIEWONLINE'] : ''; ?>"><?php echo ((isset($this->_rootref['L_WHO_IS_ONLINE'])) ? $this->_rootref['L_WHO_IS_ONLINE'] : ((isset($user->lang['WHO_IS_ONLINE'])) ? $user->lang['WHO_IS_ONLINE'] : '{ WHO_IS_ONLINE }')); ?></a><?php } else { echo ((isset($this->_rootref['L_WHO_IS_ONLINE'])) ? $this->_rootref['L_WHO_IS_ONLINE'] : ((isset($user->lang['WHO_IS_ONLINE'])) ? $user->lang['WHO_IS_ONLINE'] : '{ WHO_IS_ONLINE }')); } ?></h3>
-	<p><?php echo (isset($this->_rootref['LOGGED_IN_USER_LIST'])) ? $this->_rootref['LOGGED_IN_USER_LIST'] : ''; ?></p>
-<?php } $this->_tpl_include('overall_footer.html'); ?>
\ No newline at end of file
+<?php $_template->_tpl_include('overall_footer.html'); ?>
