Welcome to the Unofficial Help Forum
are you using the default theme? if not did you install it on your custom theme?
<hr class="post_separator" />';
// Now we do likes. global $user_profile; if (!empty($context['post_likes'][$message['id']])) { echo ' <div class="', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', '"> <span class="topslice"><span></span></span> <div class="like"><strong><img src="' . $settings['default_images_url'] . '/likes/like.png" alt="', $txt['likes'], '" />', ' ', $message['likes'] == 1 ? $txt['likes_1'] : sprintf($txt['likes_n'], comma_format($message['likes'])), '</strong> '; $array_length = count($context['post_likes'][$message['id']]); // First, names $names = array(); foreach ($context['post_likes'][$message['id']] as $liker) { $names[] = '<a href="' . $scripturl . '?action=profile;u=' . $liker . '">' . $user_profile[$liker]['real_name'] . '</a>'; if (count($names) >= 5) break; } // Now we do something with it. if ($array_length <= 5) { $last_name = array_pop($names); echo !empty($names) ? (implode(', ', $names) . ' ' . $txt['likes_and'] . ' ') : '', $last_name, ' ', ($array_length == 1 ? $txt['likes_one'] : $txt['likes_few']); } else { echo implode(', ', $names), ' ', $txt['likes_and'], ' ', comma_format($array_length - 5), ' ', sprintf($txt['likes_more'], $scripturl . '?action=like;display;topic=' . $context['current_topic'] . ';msg=' . $message['id'], sprintf($txt[$array_length == 1 ? 'likes_popup_1' : 'likes_popup_n'], $array_length)); } echo ' </div><span class="botslice"><span></span></span></div>'; }