$forum_id = $topic['forum_id']; $topic_id = $topic['topic_id']; $forum_id_append = (!empty($forum_id) ? (POST_FORUM_URL . '=' . $forum_id) : ''); $topic_id_append = (!empty($topic_id) ? (POST_TOPIC_URL . '=' . $topic_id) : ''); $forum_url = append_sid(CMS_PAGE_VIEWFORUM . '?' . $forum_id_append); $topic_url = append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append); $views = $topic['topic_views']; $replies = $topic['topic_replies']; $user_replied = (!empty($user_topics) && isset($user_topics[$topic_id])); //$news_label = ($line[$i]['news_id'] > 0) ? $lang['News_Cmx'] . '' : ''; $news_label = ''; $word_censor = censor_text($topic['topic_title']); $topic_title = ((empty($topic['title_compl_infos'])) ? '' : $topic['title_compl_infos'] . ' ') . ((strlen($topic['topic_title']) < $topic_length) ? $word_censor : substr(stripslashes($word_censor), 0, $topic_length) . '...'); $topic_link = $class_topics->build_topic_icon_link($forum_id, $topic['topic_id'], $topic['topic_type'], $topic['topic_reg'], $topic['topic_replies'], $topic['news_id'], $topic['poll_start'], $topic['topic_status'], $topic['topic_moved_id'], $topic['post_time'], $user_replied, $replies); $topic_id = $topic_link['topic_id']; $topic_id_append = $topic_link['topic_id_append']; $topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies); $first_time = create_date_ip($lang['DATE_FORMAT_VF'], $topic['topic_time'], $config['board_timezone'], true); $first_author = ($topic['first_poster_id'] != ANONYMOUS) ? colorize_username($topic['topic_first_poster_id'], $topic['topic_first_poster_name'], $topic['topic_first_poster_color'], 1) : (($topic['topic_first_poster_name'] != '') ? $topic['topic_first_poster_name'] : $lang['Guest']); $last_time = create_date_ip($config['default_dateformat'], $topic['topic_last_post_time'], $config['board_timezone']); $last_author = ($topic['topic_last_poster_id'] != ANONYMOUS) ? colorize_username($topic['topic_last_poster_id'], $topic['topic_last_poster_name'], $topic['topic_last_poster_color'], 1) : (($topic['topic_last_poster_name'] != '') ? $topic['topic_last_poster_name'] : $lang['Guest']); $last_url = '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&' . $topic_id_append . '&' . POST_POST_URL . '=' . $topic['topic_last_post_id']) . '#p' . $topic['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; $topic_tags_links = $class_topics_tags->build_tags_list_single_topic($topic['topic_tags']); // Convert and clean special chars!