News:

Welcome to the Unofficial Help Forum



Recent Posts

Pages: 1 [2] 3 4 ... 10
11
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
12
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.
13
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>';
}
14
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.
15
Modifications / Re: SMF Likes Plus
« Last post by jack001 on December 24, 2017, 10:56:33 AM »
it fails installation in my theme :/
16
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
17
Modifications / Re: SMF Likes Plus
« Last post by Illori on November 22, 2017, 05:43:05 AM »
so uninstall the mod, reinstall and be sure to check off your theme to install it on.
18
Modifications / Re: SMF Likes Plus
« Last post by pocttopus on November 21, 2017, 06:04:41 AM »
Well on one theme (default Curve) the mod is fully functional, but on other theme I don't see the link neither the icon.  :(
19
Modifications / Re: SMF Likes Plus
« Last post by Illori on November 21, 2017, 05:43:08 AM »
what do you mean the parser is not working? ideally when you install the mod it gives you the option to install it on your theme and does it then.
20
Modifications / Re: SMF Likes Plus
« Last post by pocttopus on November 20, 2017, 03:51:50 PM »
Hello again,

Trying to install the mod on custom theme but the parser is not working.
Could you tell me what code needed to insert into Display.settings.php?

Sorry for asking this but I totally forgot how I installed this modification. ::)

Thanks!
Pages: 1 [2] 3 4 ... 10