MyBB Community Forums

Full Version: Fix this button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<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']}"><class="button postbit-button"><alt="{$lang->postbit_quote}" title={$lang->postbit_quote}/>Thanks</a></a></span>



What is wrong with that code? I need it to be a CSS button but it won't work...
Your HTML is simply improper. class and alt are attributes, not tags.
(2014-03-01, 05:39 AM)Destroy666 Wrote: [ -> ]Your HTML is simply improper. class and alt are attributes, not tags.
Help me fix it?
^ you can try below
<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']}" class="button postbit-button">Thanks</a></span>