News:

Welcome to the Unofficial Help Forum



Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jack001

Pages: [1]
1
Modifications / Re: SMF Likes Plus
« on: January 18, 2018, 09:26:37 AM »

2
Modifications / Re: SMF Likes Plus
« on: January 15, 2018, 12:30:03 PM »
is that a paid theme?
A free theme

3
Modifications / Re: SMF Likes Plus
« on: January 14, 2018, 09:52:49 AM »
what theme are you using? it seems it would be highly modified which is keeping you from finding the code. you need to find where it should go in your file based on the default theme and add it.

vvide theme

4
Modifications / Re: SMF Likes Plus
« on: January 13, 2018, 10:06:12 AM »
getting error in display template

code:
Code: [Select]
<hr class="post_separator" />';
add after:
Code: [Select]
// 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>';
}

5
Modifications / Re: SMF Likes Plus
« on: December 24, 2017, 10:56:33 AM »
it fails installation in my theme :/

Pages: [1]
anything