Quote:
Originally Posted by pbforum
not working for 4.2.0
|
I have it working just fine on 4.2.0pl2, had to futz with the code to get it to work right. The basic code to display the flag is:
HTML Code:
<vb:if condition="$post['field8']"><img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field8}.GIF" align="middle" alt="{vb:raw post.field8}" border="" /></vb:if>
Which is what I used in the vbcms template "vbcms_postbit" and placed that right after the last closing span tag of "vb:raw post.posttime". This shows the country flag on CMS comments.
For the main postbit template, I used:
HTML Code:
<vb:if condition="$post['field8']"><dt><style="text-align:left"> Country</dt> <dd><img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field8}.GIF" align="middle" alt="{vb:raw post.field8}" border="" /></dd></vb:if>
and put that in right after the "template_hook.postbit_userinfo_right_after_po sts" entry. By using the style="text-align tag, you avoid having to create a rawphrase for the title. Be sure to leave out the colon, the div already takes care of it (if you leave it in you get double colons).
Thanks Welshy2008, great mod!