MyBB Community Forums

Full Version: change to icon?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello,

i use like system plugins

but 

how to change Like to icon ?

[Image: c788778042ec484e89555037ebba1cfe.jpg]
thank you
In the plugin language file

inc\languages\english\thankyoulike.lang.php

Or in the template, add <i class="fa fa-thumbs-up"></i>&nbsp; before the language define
this is the simple like lang
where i must put <i class="fa fa-thumbs-up"></i>&nbsp;

<?php

$l['simplelikes'] = 'SimpleLikes';

$l['simplelikes_alert_setting'] = 'Receive alert when one of your posts is liked?';
$l['simplelikes_alert'] = '{1} liked <a href="{2}">your post</a>. Others may have liked this post since.';

$l['simplelikes_like'] = 'Like';
$l['simplelikes_unlike'] = 'Unlike';

$l['simplelikes_you'] = 'You';
$l['simplelikes_like_singular'] = 'like';
$l['simplelikes_like_plural'] = 'likes';
$l['simplelikes_and'] = 'And';
$l['simplelikes_others'] = 'others';
$l['simplelikes_this_post'] = 'this post';

$l['simplelikes_error_no_likes'] = 'Nobody has liked this post yet.';
$l['simplelikes_error_post_id'] = 'No post ID provided';
$l['simplelikes_error_user_id'] = 'No post ID provided. Are you sure you\'re accessing this function correctly?';
$l['simplelikes_error_own_post'] = 'You are not able to like your own posts.';
$l['simplelikes_error_perms'] = 'Your usergroup is not currently allowed to like posts.';

$l['simplelikes_thanks_title'] = 'Thanks!';
$l['simplelikes_thanks'] = 'Thanks for liking this post. Taking you back to it now.';

$l['simplelikes_total_likes'] = 'Posts liked:';
$l['simplelikes_total_likes_received'] = 'Number of likes received:';

$l['simplelikes_likes_by_user'] = 'Posts {1} has liked';
$l['simplelikes_likes_received_by_user'] = 'Posts by {1} that others have liked';
$l['simplelikes_num_likes'] = 'Number of likes';
$l['simplelikes_user'] = 'User';
$l['simplelikes_post'] = 'Post';
$l['simplelikes_liked_at'] = 'Liked At';

this is postbit_classic code on theme

<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_like']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>

i don't have any idea to this code
{$post['button_like']}
Does this plugin create a template file for the like button?

Thank you like plugin is:

thankyoulike_button_add
thankyoulike_button_del

You will then add the icon before the language definition:

<i class="fa fa-thumbs-up"></i>&nbsp;{$lang->add_tyl}
<i class="fa fa-thumbs-down"></i>&nbsp;{$lang->del_tyl}

Before you can use font awesome, you need to link to the CSS, by adding:

<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">

above
{$stylesheets}

in headerinclude template.

Here is a list of font awesome icons:

http://fontawesome.io/icons/
which templates ?
[Image: 2b7dc6bda58a44a29200cbf3d7d6570f.jpg]

simplelikes_likebutton???
<a id="likeButton_post_{$post['pid']}" class="postbit_like" title="{$buttonText}"
   href="xmlhttp.php?action=like_post&amp;post_id={$post['pid']}&amp;my_post_key={$mybb->post_code}">
    <span class="postbit_like__text">
        {$buttonText}
    </span>
</a>