includes/comment.php
changeset 1280 871f17a0d27d
parent 1227 bdac73ed481e
child 1298 510187db2b32
equal deleted inserted replaced
1279:0bc945385d74 1280:871f17a0d27d
   164 						
   164 						
   165 						// Format text
   165 						// Format text
   166 						$row['comment_data'] = RenderMan::render($row['comment_data']);
   166 						$row['comment_data'] = RenderMan::render($row['comment_data']);
   167 						
   167 						
   168 						// Hide it if it's a post from a foe
   168 						// Hide it if it's a post from a foe
       
   169 						// 1.1.8: moved to within the comment templates
       
   170 						/*
   169 						if ( $row['is_buddy'] == 1 && $row['is_friend'] == 0 )
   171 						if ( $row['is_buddy'] == 1 && $row['is_friend'] == 0 )
   170 						{
   172 						{
   171 							$seed = md5(sha1(mt_rand() . microtime()));
   173 							$seed = md5(sha1(mt_rand() . microtime()));
   172 							$wrapper = '
   174 							$wrapper = '
   173 								<div id="posthide_'.$seed.'" style="display: none;">
   175 								<div id="posthide_'.$seed.'" style="display: none;">
   175 								</div>
   177 								</div>
   176 								<p><span style="opacity: 0.4; filter: alpha(opacity=40);">' . $lang->get('comment_msg_foe_comment_hidden') . '</span> <span style="text-align: right;"><a href="#showpost" onclick="document.getElementById(\'posthide_'.$seed.'\').style.display=\'block\'; this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); return false;">' . $lang->get('comment_btn_display_foe_comment') . '</a></span></p>
   178 								<p><span style="opacity: 0.4; filter: alpha(opacity=40);">' . $lang->get('comment_msg_foe_comment_hidden') . '</span> <span style="text-align: right;"><a href="#showpost" onclick="document.getElementById(\'posthide_'.$seed.'\').style.display=\'block\'; this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); return false;">' . $lang->get('comment_btn_display_foe_comment') . '</a></span></p>
   177 							';
   179 							';
   178 							$row['comment_data'] = $wrapper;
   180 							$row['comment_data'] = $wrapper;
   179 						}
   181 						}
       
   182 						*/
   180 						
   183 						
   181 						// Format date
   184 						// Format date
   182 						$row['time'] = enano_date(ED_DATE | ED_TIME, $row['time']);
   185 						$row['time'] = enano_date(ED_DATE | ED_TIME, $row['time']);
   183 						
   186 						
   184 						// Format signature
   187 						// Format signature