I tried using the last template edit that is for 4.1.1 on my 4.1.3 and couldn't get it to work. I used the code for 4.0.6-4.0.7 which is this:
Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"> <dt>Country</dt> <img src="http://www.YOURFORUM ADDRESS.com/forum/images/buttons/flags/{vb:raw post.fieldX}.GIF" alt="This is {vb:raw post.username}'s Country Flag" border="" /></vb:if></p>
<!-- Wy Flags End -->
And it worked fine. Although, I did not use this for country flags. Instead I used it for my baseball forum and choosing your favorite team, it works wonders. If you want to use it for something else like I did here is how I did it (it is modified).
Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['field15']"><img src="http://www.baseballnation.net/images/teams/{vb:raw post.field15}.png" alt="This is {vb:raw post.username}'s favorite team." border="" /></vb:if></p>
<!-- Wy Flags End -->
As you can see, I changed the original image file extension from .GIF to .png....I also took out
so no text displays, just my logo.
If you want to use it for something other than country flags. Your image name must match the option name.
For instance in options I had the whole list of MLB teams instead of a list of countries. It looks like this:
Code:
Arizona Diamondbacks
Atlanta Braves
Baltimore Orioles
Boston Red Sox
Chicago White Sox
Chicago Cubs
Cincinnati Reds
Cleveland Indians
Colorado Rockies
Detroit Tigers
Florida Marlins
Houston Astros
Kansas City Royals
Los Angeles Angels
Los Angeles Dodgers
Milwaukee Brewers
Minnesota Twins
New York Mets
New York Yankees
Oakland Athletics
Philadelphia Phillies
Pittsburgh Pirates
San Diego Padres
San Francisco Giants
Seattle Mariners
St. Louis Cardinals
Tampa Bay Rays
Texas Rangers
Toronto Blue Jays
Washington Nationals
All my images in the images/teams directory have to match the option names exactly. So for the Arizona Diamondbacks...In my images/teams folder it is saved exactly how it is in the options list for the field. The image is Arizona Diamondbacks.png --- It must be typed exactly how it is in the options field.