This was a real mission for me with VB 3.03 using the instructions included but I finally got it working. Here are some quick instructions:
1. Download the hack
2. Upload the flags, we will use
www.yourforum.com/flags/ as an example
3. Note: You do not have to create any new user profiles as there is already a profile for country. The user profile ID for country should be 6 by default.
4. Edit the postbit template,
find
Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
below add
Code:
<if condition="$post[field8]"><div>$vbphrase[location_perm]: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if>
5. This should complete the install. You may have to play around with the
, just keep changing the field# until you find a spot your are looking for when viewing a thread. For me, 8 worked perfect. Also note that the forum I installed this on did not show the location: in the postbit, if you want to show the location and the country, you will have to create a phrase called "country_12345" with the text "Country: " and then use this code in the postbit style instead:
Code:
<if condition="$post[field8]"><div>$vbphrase[country_12345]: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if>
Or if you want to do it without creating a new phrase, just put:
Code:
<if condition="$post[field8]"><div>Country: <img src="http://www.yourforum.com/flags/$post[field6].gif" border="0" alt="[field6]" /><br /></if>
Hope this saves some people 2 hours as it would have saved me if I would have known this