Closed (fixed)
Project:
Location
Version:
6.x-3.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 22:09 UTC
Updated:
19 Jul 2016 at 13:10 UTC
Jump to comment: Most recent
Comments
Comment #1
ratebz commentedComment #2
mohammed j. razemHey, I've done this before.
Just download a flags pack, see http://www.ip2location.com/flagsoftheworld.aspx
The filenames are in ISO 3166. Copy the flags images folder into
sites/{default}/filesfolder, and add this code into yournode.tpl.php:Comment #3
mohammed j. razemComment #4
socialnicheguru commentedcool. thanks!
Chris
how would I get to a node referenced cck location field?
Comment #6
stefanhapper commentedAttention: file ending for the images is .gif, not .png
+ this is the code that needs to be inserted when you use CCK location (which also works for multiple countries):
(replace every mention of "field_country" with your field_name used for the CCK location field)
if ($node->field_country) :foreach($node->field_country as $country) :endforeach;endif;Comment #7
BeaPower commentedDoes this work with views?
Comment #8
BeaPower commentedworks with d7?
Comment #9
BeaPower commentedComment #10
legolasbo