} $topic_title = $post_data['topic_title']; $topic_title_enc = urlencode(ip_utf8_decode($topic_title)); $topic_title_enc_utf8 = urlencode($topic_title); // URL Rewrite - BEGIN // Rewrite Social Bookmars URLs if any of URL Rewrite rules has been enabled // Forum ID and KB Mode removed from topic_url_enc to avoid compatibility problems with redirects in tell a friend if (($config['url_rw'] == true) || ($config['url_rw_guests'] == true)) { $topic_url = create_server_url() . make_url_friendly($topic_title) . (empty($link_topic) ? ('-vp' . $post_id . '.html' . $post_id_append_url) : ('-vt' . $topic_id . '.html')); } else { $topic_url = create_server_url() . ip_build_url(CMS_PAGE_VIEWTOPIC, array($topic_id_append, $post_id_append), false) . $post_id_append_url; } $topic_url_ltt = htmlspecialchars($topic_url); $topic_url_enc = urlencode(ip_utf8_decode($topic_url)); $topic_url_enc_utf8 = urlencode($topic_url); // URL Rewrite - END // Convert and clean special chars! $topic_title = htmlspecialchars_clean($topic_title); $template->assign_vars(array( 'FORUM_ID' => $forum_id, 'TOPIC_ID' => $topic_id, 'POST_ID' => $post_id, 'TOPIC_TITLE' => $topic_title, 'TOPIC_TITLE_SHORT' => ((strlen($topic_title) > 80) ? substr($topic_title, 0, 75) . '...' : $topic_title), 'TOPIC_TITLE_ENC' => $topic_title_enc,
$template->assign_var('S_FEATURED_IMAGE', true); } $topic_title_enc = urlencode(ip_utf8_decode($topic_title)); $topic_title_enc_utf8 = urlencode($topic_title); // URL Rewrite - BEGIN // Rewrite Social Bookmars URLs if any of URL Rewrite rules has been enabled // Forum ID and KB Mode removed from topic_url_enc to avoid compatibility problems with redirects in tell a friend if (($config['url_rw'] == true) || ($config['url_rw_guests'] == true)) { $topic_url = create_server_url() . make_url_friendly($topic_title) . '-vt' . $topic_id . '.html' . ($kb_mode ? ('?' . $kb_mode_append) : ''); } else { $topic_url = create_server_url() . ip_build_url(CMS_PAGE_VIEWTOPIC, array($forum_id_append, $topic_id_append), false) . $kb_mode_append_red; } $topic_url_ltt = htmlspecialchars($topic_url); $topic_url_enc = urlencode(ip_utf8_decode($topic_url)); $topic_url_enc_utf8 = urlencode($topic_url); // URL Rewrite - END // Convert and clean special chars! $topic_title = htmlspecialchars_clean($topic_title); $template->assign_vars(array( 'FORUM_ID' => $forum_id, 'FORUM_ID_FULL' => POST_FORUM_URL . $forum_id, 'FORUM_NAME' => $forum_name, 'FORUM_RULES' => $rules_bbcode, 'TOPIC_ID' => $topic_id, 'TOPIC_ID_FULL' => POST_TOPIC_URL . $topic_id,