Not Solved thank plugin + bootstrap
#1
Not Solved
this is my thankyoulike_postbit_classic


<div class="post_controls tyllist_classic {$unapproved_shade}">
 {$tyl_expcol}
<span id="tyl_title_{$post['pid']}" style="{$tyl_title_display}" class="tyl_collapsible_summary">{$lang->tyl_title}</span><span id="tyl_title_collapsed_{$post['pid']}" style="{$tyl_title_display_collapsed}" class="tyl_collapsible_summary">{$lang->tyl_title_collapsed}</span><br />
<span id="tyl_data_{$post['pid']}" style="{$tyl_data_display}">• {$post['thankyoulike']}</span>
</div>




I think that this is the essential element

<span id="tyl_data_{$post['pid']}" style="{$tyl_data_display}">• {$post['thankyoulike']}</span>

I would like it to be a button tyl_data_{$post['pid']} that, once clicked, shows {$post['thankyoulike']}

It's possible? I've tried several times, but I can't get it to work.
Reply
#2
Not Solved
I guess it depends on what you mean by "shows" - as in, like the plugin currently does, or some sort of popup.

Assuming the former, something simple like this might work - it's a little crude, but you can tinker with it to your liking:
<div class="post_controls tyllist {$unapproved_shade}">
 <button onclick="thankyoulike.tgl({$post['pid']});return false;">{$lang->tyl_title_collapsed}</button><br />
 <span id="tyl_data_{$post['pid']}" style="{$tyl_data_display}">{$post['thankyoulike']}</span>
</div>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)