MyBB Community Forums

Full Version: how to get css my like plugin button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hy
can i change the picture in to css in this plugin?
you are referring to which plugin
^ that plugin has clear documentation for the required changes
Quote:Templates added:
Global Templates >> thankyoulike_button_add
Template for the button to add Thank You/Like.
If you do not want to use an image, change it to text here.

Global Templates >> thankyoulike_button_del
Template for the button to delete Thank You/Like.
If you do not want to use an image, change it to text here.

after changing buttons to text,
if you need css style suggestions then you have to give your forum url & a test user account
thanks
can you give me a simple code?

I change this code in the :thankyoulike_button_add
new code is:
<a href="thankyoulike.php?action=add&amp;pid={$post['pid']}&amp;my_post_key={$mybb->post_code}" class="postbit_reputation_add"/>thanks ▶</a>
but with this code thanks is not ajax
by this code after thanks, page redirect in to a new page and give back
and thanks is added.

this code before edit is:
<span id="tyl_btn_{$post['pid']}"><a href="thankyoulike.php?action=add&amp;pid={$post['pid']}&amp;my_post_key={$mybb->post_code}" onclick="return thankyoulike.add({$post['pid']}, {$post['tid']});" title="{$lang->add_tyl}" id="tyl_a{$post['pid']}"><img src="{$imgdir}/postbit_{$pre}_add.gif" border="0" alt="{$lang->add_tyl}" id="tyl_i{$post['pid']}" /></a></span>

please help
please help