not sure if I understand what you mean, but impo this can be easily done within your templates. You just need a custom field COUNTRY for MEMBERS (in case you don't have one yet). It should be a SELECT-BOX with all available countries. Then name the country-flag-images something like "flag_brasilia.gif", "flag_germany.gif, "flag_france.gif", etc. and upload all images to the images-folder. Then just place <img src="{IMAGESURL}/flag_{MEMBERCOUNTRY}.gif" alt="{MEMBERCOUNTRY}" /> wherever you want the flag to appear. Perhaps not a perfect solution but done within 10 minutes.
No guarantee that it works, was just what came to my mind first.
not sure if I understand what you mean, but impo this can be easily done within your templates. You just need a custom field COUNTRY for MEMBERS (in case you don't have one yet). It should be a SELECT-BOX with all available countries. Then name the country-flag-images something like "flag_brasilia.gif", "flag_germany.gif, "flag_france.gif", etc. and upload all images to the images-folder. Then just place <img src="{IMAGESURL}/flag_{MEMBERCOUNTRY}.gif" > wherever you want the flag to appear. Perhaps not a perfect solution but done within 10 minutes.
No guarantee that it works, was just what came to my mind first.
Cheers, Chris
An interesting alternative, I'll play with that one.
Capitalization and spaces are the likely problems with chris' method. But if you already have a "country" field, you could make a member pseudomethod like this:
$pseudomethods[] = 'countryflag'; function countryflag($object) { // return flag image $flagimg = strtolower(str_replace(' ', '', $object->country)); return "<img src='{IMAGESURL}/flags/$flagimg.gif'>"; }
and then the images can be named in lowercase with spaces removed in a flags subdirectory, and displayed with {MEMBERCOUNTRYFLAG}.
Comments on Using Country Flag Images
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
Using Country Flag Images with Dynamic Country List
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This is clearly a custom project with no general utility. Estimate, if you supply all the flag images: 1-3 hours.
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
It may not lend itself to any general utilty, but certainly would be great eye candy.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I guess that's a matter of opinion, but I think it'd be annoying-looking clutter.
Member
Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Comments: 43
Hi tradenet,
not sure if I understand what you mean, but impo this can be easily done within your templates. You just need a custom field COUNTRY for MEMBERS (in case you don't have one yet). It should be a SELECT-BOX with all available countries. Then name the country-flag-images something like "flag_brasilia.gif", "flag_germany.gif, "flag_france.gif", etc. and upload all images to the images-folder. Then just place <img src="{IMAGESURL}/flag_{MEMBERCOUNTRY}.gif" alt="{MEMBERCOUNTRY}" /> wherever you want the flag to appear. Perhaps not a perfect solution but done within 10 minutes.
No guarantee that it works, was just what came to my mind first.
Cheers,
Chris
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
Hi tradenet,
not sure if I understand what you mean, but impo this can be easily done within your templates. You just need a custom field COUNTRY for MEMBERS (in case you don't have one yet). It should be a SELECT-BOX with all available countries. Then name the country-flag-images something like "flag_brasilia.gif", "flag_germany.gif, "flag_france.gif", etc. and upload all images to the images-folder. Then just place <img src="{IMAGESURL}/flag_{MEMBERCOUNTRY}.gif" > wherever you want the flag to appear. Perhaps not a perfect solution but done within 10 minutes.
No guarantee that it works, was just what came to my mind first.
Cheers,
Chris
An interesting alternative, I'll play with that one.
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
I guess that's a matter of opinion, but I think it'd be annoying-looking clutter.
Yeah, however when you are dealing with a multilingual website, pictures are a "thousand words".
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Capitalization and spaces are the likely problems with chris' method. But if you already have a "country" field, you could make a member pseudomethod like this:
and then the images can be named in lowercase with spaces removed in a flags subdirectory, and displayed with {MEMBERCOUNTRYFLAG}.
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
Ah intresting pseudomethods. Have to give that a go. Thanks.