Categories > TinyButStrong general >

Conditional inside a block

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: fc
Date: 2008-05-22
Time: 11:32

Conditional inside a block

Hi everyone,

TBS is great I've been using it for a while now, but I've got stuck... Whenever I try this the TBS code ends up just being displayed as normal text.

The html/TBS code:
[blk3;block=begin]
    <div class="comment-list-odd">
    <a href="[var.short_link_to_users]/[blk3.by_username]"><img src="[blk3.poster_picture]" alt="[blk3.by_username]" width="70" class="comment-list-img" /></a>
                   
    <div class="comment-text">[blk3.comments]</div>
    <div class="comment-vote"><small>[blk3.by_username] donne cette vidéo</small><br/>[blk3.vote]/5 [onload;block=div;when [blk3.vote]-=+5]</div>
    <div class="comment-vote"><small>[blk3.by_username] n'a pas encore voté pour cette vidéo.</small> [onload;block=div;when [blk3.vote]+-5]</div>
    <div class="comment-meta">R&eacute;ponse de <a href="[var.short_link_to_users]/[blk3.by_username]">[blk3.by_username]</a> - le [blk3.todays_date]</div>
    <div class="clear"></div>
</div>
[blk3;block=end]

Instead of onload I've tried blk3 with no luck either. Thanks in advance for your help :)
By: fc
Date: 2008-05-22
Time: 12:29

Re: Conditional inside a block

Never mind I sorted it out in the php file then just used [blk3.vote;htmlconv=no] to display it.