Webboard

Pełna wersja: Button podziękowań w stylu pozostałych przycisków
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.7
adres forum: www.popular-games.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam, da się zrobić, aby przycisk Thank, z pluginu Thank You/Like System był w takim stylu jak pozostałe przyciski? Mianowicie zielony, a po najechaniu żeby się rozjaśniał?
Czuję, że można skopiować przycisk któryś i zmienić mu akcję która będzie po kliknięciu oraz napis na nim. Siedzę 15 minut nad tym i nie działa :(

Przyciski są w CSS

postbit
Kod PHP:
{$ignore_bit}
<
a name="pid{$post['pid']}id="pid{$post['pid']}"></a>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder" style="{$post_extra_style} {$post_visibility}id="post_{$post['pid']}">
    <
tbody>
        <
tr>
            <
td class="tcat">
                <
div class="float_left smalltext">
                    {
$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </
div>
                {
$post['posturl']}
            </
td>
        </
tr>

        <
tr>
            <
td class="trow1{$post['mysupport_bestanswer_highlight']}{$post['mysupport_staff_highlight']} {$unapproved_shade}">
                <
table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
                    <
tr>
                        <
td class="post_avatar" width="1" style="{$post['avatar_padding']}">
                            {
$post['useravatar']}
                        </
td>
                        <
td class="post_author">
                            <
strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
                            <
span class="smalltext">
                                {
$post['usertitle']}<br />
                                {
$post['userstars']}
                                {
$post['groupimage']}
                            </
span>
                        </
td>
                        <
td class="smalltext post_author_info" width="165">
                            {
$post['user_details']}
                        </
td>
                    </
tr>
                </
table>
            </
td>
        </
tr>

        <
tr>
            <
td class="trow2{$post['mysupport_bestanswer_highlight']}{$post['mysupport_staff_highlight']} post_content {$unapproved_shade}">
                <
span class="smalltext"><strong>{$post['mysupport_status']}{$post['icon']}{$post['subject']} {$post['subject_extra']}<div class="float_right">{$post['mysupport_bestanswer']}{$post['mysupport_deny_support_post']}</div></strong></span>

                <
div class="post_body" id="pid_{$post['pid']}">
                    {
$post['download_system']}{$post['message']}
                </
div>
                {
$post['attachments']}
                {
$post['signature']}

                <
div class="post_meta" id="post_meta_{$post['pid']}">
                {
$post['iplogged']}
                </
div>
            </
td>
        </
tr>

        <
tr>
            <
td class="trow1{$post['mysupport_bestanswer_highlight']}{$post['mysupport_staff_highlight']} post_buttons {$unapproved_shade}">
                <
div class="author_buttons float_left">
                    
{
$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
                </
div>
                <
div class="post_management_buttons float_right">{$post['button_tyl']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['warned']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
                </
div>
            </
td>
        </
tr>
        <
tr style="{$post['tyl_display']}id="tyl_{$post['pid']}">
            {
$post['thankyoulike_data']}
        </
tr>
    </
tbody>
</
table

thankyoulike_button_add
Kod PHP:
<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

Aktualnie wygląda to tak
[Obrazek: lnud.jpg]
Kod:
<span id="tyl_btn_{$post['pid']}" class="button_maly imgOpa"><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']}">Dziękuje</a></span>