/iU', $content, $matches); if(empty($output)){ $first_img = NULL; }else { $first_img = $matches[1][0]; } return $first_img; } } if($threadlist) { $have_allowtop = 0; foreach($threadlist as &$_thread) { $_thread['allowtop'] = forum_access_mod($_thread['fid'], $gid, 'allowtop'); if($_thread['allowtop']) $have_allowtop = 1; } } ?>
0 ) { $_post_message_full = isset($_post_message['message'])? $_post_message['message'] : ''; $_post_message_full = preg_replace( array("/\r\n/", "/\r/", "/\n/"), "", $_post_message_full); $_post_message_full = preg_replace("/\[.*\]/i","[…]",$_post_message_full); $_post_message_excerpt = strip_tags( mb_substr( $_post_message_full, 0, $_post_excerpt_length ) ); if( mb_strlen($_post_message_excerpt) > $_post_excerpt_length) { $_post_message_excerpt .= '…'; } } if(true){ $_post_message_image = catch_post_first_img($_post_message_full); } ?>