root/ip/trunk/viewtopic.php
| 140 | 155 | ||
|---|---|---|---|
734 | ); | 734 | ); |
735 | //SEO TOOLKIT END | 735 | //SEO TOOLKIT END |
736 | 736 | ||
737 | $is_this_locked = ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) ? true : false; | 737 | $is_this_locked = (($forum_topic_data['forum_status'] == FORUM_LOCKED) || ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) ? true : false; |
738 | $reply_img = $is_this_locked ? $images['reply_locked'] : $images['reply_new']; | 738 | $reply_img = $is_this_locked ? $images['reply_locked'] : $images['reply_new']; |
739 | $reply_alt = $is_this_locked ? $lang['Topic_locked'] : $lang['Reply_to_topic']; | 739 | $reply_alt = $is_this_locked ? $lang['Topic_locked'] : $lang['Reply_to_topic']; |
740 | $post_img = ($forum_topic_data['forum_status'] == FORUM_LOCKED) ? $images['post_locked'] : $images['post_new']; | 740 | $post_img = ($forum_topic_data['forum_status'] == FORUM_LOCKED) ? $images['post_locked'] : $images['post_new']; |
... | ... | ||
1840 | break; | 1840 | break; |
1841 | } | 1841 | } |
1842 | } | 1842 | } |
1843 | if (($user_warnings > $config['max_user_bancard']) || ($is_banned == true)) | 1843 | if (($user_warnings > $config['max_user_bancard']) || $is_banned) |
1844 | { | 1844 | { |
1845 | $card_img = '<img src="' . $images['icon_r_cards'] . '" alt="' . $lang['Banned'] . '" title="' . $lang['Banned'] . '">'; | 1845 | $card_img = '<img src="' . $images['icon_r_cards'] . '" alt="' . $lang['Banned'] . '" title="' . $lang['Banned'] . '">'; |
1846 | } | 1846 | } |
... | ... | ||
2102 | if ($postrow[$i]['enable_autolinks_acronyms']) | 2102 | if ($postrow[$i]['enable_autolinks_acronyms']) |
2103 | { | 2103 | { |
2104 | $message = $bbcode->acronym_pass($message); | 2104 | $message = $bbcode->acronym_pass($message); |
2105 | $message = autolink_text($message, $forum_id); | 2105 | $message = $bbcode->autolink_text($message, $forum_id); |
2106 | } | 2106 | } |
2107 | //Acronyms, AutoLinks - END | 2107 | //Acronyms, AutoLinks - END |
2108 | 2108 | ||
... | ... | ||
2534 | ) | 2534 | ) |
2535 | ); | 2535 | ); |
2536 | 2536 | ||
2537 | generate_smilies_row(); | 2537 | if($can_reply) |
2538 | { | ||
2539 | if (!function_exists('generate_smilies_row')) | ||
2540 | { | ||
2541 | include_once(IP_ROOT_PATH . 'includes/functions_bbcode.' . PHP_EXT); | ||
2542 | } | ||
2543 | generate_smilies_row(); | ||
2544 | } | ||
2538 | 2545 | ||
2539 | full_page_generation($template_to_parse, $meta_content['page_title'], $meta_content['description'], $meta_content['keywords']); | 2546 | full_page_generation($template_to_parse, $meta_content['page_title'], $meta_content['description'], $meta_content['keywords']); |
2540 | 2547 |
Download diff