• Welcome to ForumKorner!
    Join today and become a part of the community.

[IPB How To] Add Icon To Thanks & Remove Thanks Button

Sanctuary

User is banned.
Reputation
0
Originally posted by me on http://www.ForumCore.net/



My Thanks Button:
mgrXx.png


My Remove Thanks Button:
emyS8.png


You can change the icons to whatever you want, I just like having the awesome smilies there. :3



What you'll need:
  • The 'Thanks' ajax button installed.
  • 2 images you want to use
  • Optional. Photoshop or Gimp (to resize any images you may want to use that are too big).



Thanks Button -
How To:

1) Go to the ACP > 'Look & Feel' > 'Manage Skin Sets & Templates' > *Your Skin* > 'Topic View' > 'ajaxThanksButton'.

2) Find this code:

Code:
<a href="javascript: ajaxThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_thank_author']}' class='ipsButton_secondary'> {$this->lang->words['en30_thank']}>


And replace it with this:

Code:
<a href="javascript: ajaxThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_thank_author']}' class='ipsButton_secondary'><img src="YOUR IMAGE LINK HERE" >
{$this->lang->words['en30_thank']}</a>


3) Save and it should come out with something like this:
mgrXx.png





Unthanks/Remove Thanks
How To:

1) Go to the ACP > 'Look & Feel' > 'Manage Skin Sets & Templates' > *Your Skin* > 'Topic View' > 'ajaxThanksButton'.

2) Find this code:

Code:
<a href="javascript: ajaxRemoveThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_unthank_author']}' class='ipsButton_secondary'>{$this->lang->words['en30_unthank']}</a>


Replace it with this one:

Code:
<a href="javascript: ajaxRemoveThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_unthank_author']}' class='ipsButton_secondary'><img src="YOUR IMAGE LINK HERE" >
{$this->lang->words['en30_unthank']}</a>


3) Save and it should come out with something like this:
emyS8.png





Simple tutorial, kinda cool thing to add to your IPB forum site.
 
Top