News:

Welcome to the Unofficial Help Forum



Recent Posts

Pages: [1] 2 3 ... 10
1
Modifications / Re: SMF Likes Plus
« Last post by jack001 on Yesterday at 09:26:37 AM »
2
Modifications / Re: SMF Likes Plus
« Last post by Illori on January 16, 2018, 05:29:01 AM »
i dont see that theme on sm.org, where did you get it from?
3
Modifications / Re: SMF Likes Plus
« Last post by jack001 on January 15, 2018, 12:30:03 PM »
4
Modifications / Re: SMF Likes Plus
« Last post by Illori on January 15, 2018, 05:24:49 AM »
is that a paid theme?
5
Modifications / Re: SMF Likes Plus
« Last post by jack001 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
6
Modifications / Re: SMF Likes Plus
« Last post by Illori on January 14, 2018, 06:08:07 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.
7
Modifications / Re: SMF Likes Plus
« Last post by jack001 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>';
}
8
Modifications / Re: SMF Likes Plus
« Last post by Illori on December 26, 2017, 06:00:17 AM »
then you need to manually install it on your theme.
9
Modifications / Re: SMF Likes Plus
« Last post by jack001 on December 24, 2017, 10:56:33 AM »
it fails installation in my theme :/
10
Modifications / Re: SMF Likes Plus
« Last post by zip on December 14, 2017, 05:55:40 PM »
Installed today without a hitch on a new 2.0.15 installation using a custom theme.

It did say "Test failed" when it was looking at the Core theme but no problems with the custom theme.

Thanks!  :D
Pages: [1] 2 3 ... 10
anything