Quote:
Originally Posted by Chase
I'm trying to figure out how to put the
Thanks: #
Thanked x times in x posts
in a BG box thingy.
I have this in my additional CSS
PHP Code:
.pbit {
padding-left: 3px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 2px;
background-color: #F4F4F4;
border-top: 1px solid #D8D8D8;
border-right: 1px solid #D8D8D8;
border-left: 2px solid #AD1515;
border-bottom: 1px solid #D8D8D8;
margin-bottom: 2px;
}
And I need to place this somewhere in my post_thanks_postbit_info to get it in a BG box
PHP Code:
<div class="pbit">Thanks</div>
Any ideas?
|
try this replace your post_thanks_postbit_info template with this one. hope this helps.
Code:
<div class="pbit">
<vb:if condition="$post['userid']">
<dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_time_post}</dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
<vb:else />
<dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
</vb:if>
</vb:if>
</div>