Quote:
Originally Posted by stevieb
any idea how we can add thanks given/received in vB4.2.0 by adding to the postbit_legacy template?
I just want to add thanks given and thanks received but when I use the standard "template_hook.postbit_userinfo_right_after_po sts" hook, the values are not level as if the thanks received has 10 spaces after it so the thanks given goes onto a new line a few spaces indent.
Or any idea how I change this so they all align left? If it's impossible to get vb:raw scripts...
Thanks
|
Sorted, basically you need to go into your postbit_legacy and then where you see post count as shown:
Code:
{vb:rawphrase 'posts'}<dd>{vb:raw post.posts}</dd>
you add your own div *if required to nest it* and then add the following code directly afterwards:
Code:
<div class="YOUR_DIV_ID">
Thanks Received <dd>{vb:raw post.post_thanks_thanked_times}</dd></div>
<div class="YOUR_DIV_ID">
Thanks Given <dd>{vb:raw post.post_thanks_user_amount}</dd></div>
Works fine in vB 4.2.0
Completed code (in my install using custom postbit file)
Code:
<vb:if condition="$post['age']">
<div class="my_div_name">
{vb:rawphrase age} <dd>{vb:raw post.age}</dd></div></vb:if>
<div class="my_div_name">
{vb:rawphrase 'posts'}<dd>{vb:raw post.posts}</dd></div>
<div class="my_div_name">
Thanks Received <dd>{vb:raw post.post_thanks_thanked_times}</dd></div>
<div class="my_div_name">
Thanks Given <dd>{vb:raw post.post_thanks_user_amount}</dd></div>
Attachment 145893