View Full Version : Profile Enhancements - vBulletin Flags In Postbit
JacBowen
10-01-2007, 10:00 PM
I was bored so thought I would make a mod with the FamFamFam (http://www.famfamfam.com/) images (flags)... So here you go.
What it does: You select what country your from in Registration / Profile and it will show up in postbit (the flag).
https://vborg.vbsupport.ru/external/2007/10/17.png
Thanks,
Jac
Barakat
10-02-2007, 01:37 AM
i believe i saw it since soooo long ... and i have it on my forum but thanks
iogames
10-02-2007, 01:47 AM
Not so long, I was fixing mine today, and I can't post the link cause I will be slammed and punished as the worst user ever... :eek:
iogames
10-02-2007, 08:25 PM
Ok lest try it
JacBowen
10-02-2007, 08:30 PM
Yea that's where my original idea came from, the flag icons for that were no way as nice as the FamFamFam ones so I made a mod with the FamFamFam images.
Jac
Hornstar
10-03-2007, 07:42 AM
true the famfamfam icons are so sexy. Thanks for sharing.
JacBowen
10-03-2007, 09:17 AM
No problem :).
airliner
10-03-2007, 09:52 AM
In
<if condition="$post[fieldXX]"><img src="images/flags/$post[fieldXX].gif"
Should be *.png?
They do not show up anyways.
Just as text. I thought it might be something with the path but I added http://www.mysite.com/forum/images/**** instead.
Do not work.
Do I something wrong?
JacBowen
10-03-2007, 11:13 AM
Your right, should be PNG.
As for your images problem, could you explain a little better, sorry just not understanding.
Updated.
Regards,
Jac
airliner
10-03-2007, 11:39 AM
Check there:
http://airliners-atc.com/forum/member.php?u=1
There is no flag there, just ISO countrycode.
And in UserCP when choosing my flag only ISO country code shows up, not a flag.
I have changed the img src path to full address path like:
<if condition="$post[fieldXX]"><img src="http://airliners-atc.com/forum/images/flags/$post[fieldXX].png"
Is fieldXX wrong?
JacBowen
10-03-2007, 11:46 AM
Ok, go into your AdminCP.
On the left navigation go...
User Profile Fields > User Profile Field Manager
Look for
Flag Single-Selection Menu Required, Editable, Searchable, Members List field6 [Edit][Delete]
See where it says Field6, well yours will probably be different but you insert that instead of the XX.
Jac
airliner
10-03-2007, 11:50 AM
Got it!
Thanx!
Great mod!
JacBowen
10-03-2007, 11:52 AM
:) No problem, don't forget to click install ;).
Jac
wolfe
10-03-2007, 12:35 PM
great mod m8. sugession can u make it a radio select choice like the icons
JacBowen
10-03-2007, 12:36 PM
Radio choice would take up a lot of the page I imagine, but could be possible...
wolfe
10-03-2007, 01:30 PM
well can u make an addon then m8 and it would be better to pick if you could see the flag and not just AF or EN and it needs to be possible to pick the ammount to show in row like 8 then it starts new line.
or even like the mood hack where it has the images in a ajax menu :P
JacBowen
10-03-2007, 01:39 PM
I will look into it :)
wolfe
10-03-2007, 01:44 PM
thx m8 :P
cuphongle
10-03-2007, 02:10 PM
nice hack
thanks
kiwivc
10-07-2007, 03:26 AM
Help please?
Installed...followed the instructions but the images don't show up..just the Country Code.
I've double checked that the Flag Field is correct ($post[field21].png")
I've uploaded the Flags file to images/ ... checked they're all .png
The flags folder is in the same directory as another image folder (ranks) which contain .png files and those show up where they should
Any help would be appreciated thanks :)
JacBowen
10-07-2007, 03:38 PM
Do you have the image URL, there could be a issue with the list, I think there is only 200 FAM images but like 250 ISO listings.
Jac
wickedstangs
10-07-2007, 03:51 PM
How hard is it to change to US State flags? Also I have all the flags ready and sized.
kiwivc
10-07-2007, 09:33 PM
Do you have the image URL, there could be a issue with the list, I think there is only 200 FAM images but like 250 ISO listings.
Jac
My particular flag image is there NZ.png but only NZ<the text> shows in the profile field<21>
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
<!-- / flags start -->
<if condition="$post[field21]"><img src="images/flags/$post[field21].png"></if>
<!-- / flags end -->
What have I missed?:confused:
JacBowen
10-07-2007, 09:39 PM
Hmm I don't really know, could you possibly set me up an account to take a look?.
Jac
wickedstangs
10-08-2007, 06:18 PM
My particular flag image is there NZ.png but only NZ<the text> shows in the profile field<21>
http://img392.imageshack.us/img392/1853/nzoy6.jpg
http://img20.imageshack.us/img20/4189/flagit5.jpg
http://img239.imageshack.us/img239/6903/pngvz8.jpg
<!-- / flags start -->
<if condition="$post[field21]"><img src="images/flags/$post[field21].png"></if>
<!-- / flags end -->
What have I missed?:confused:
I think you posted the wrong Field number
kiwivc
10-09-2007, 01:46 AM
Hmm I don't really know, could you possibly set me up an account to take a look?.
Jac
Done and sent a pm with details
cheers :)
GSPFAN
10-10-2007, 12:36 AM
I have it up and running and some flags work and others do not. It seems that about 75% of the flags are 628 bytes in size and the rest are 66.4 KB (68,091 bytes)
the 628 ones all work but the much larger ones show up as a red X. Is there a setting in Admin panel that i can use to make them all show up or does someone have to resize the larger ones?
Kaycee123
10-10-2007, 03:37 AM
No flags show up on our site either. It just shows up on user profile as the country code - eg. CA for me.
No flag visible anywhere. What's wrong??
Mystery Man
10-10-2007, 03:31 PM
This is one of the worse add-ons I've downloaded on this forum, not to upset the developer but honestly this is so buggy that it should never had been released in the first place.
Flag names doesn't match with the ISO list and no matter what I tried and I tried a lot I couldn't get the flags to appear only national codes.
Majest
10-12-2007, 11:22 PM
Works great, been looking for something like this for a long time. *Installed*
GSPFAN
10-12-2007, 11:41 PM
Works great, been looking for something like this for a long time. *Installed*
What version of VB are you running?
Also have you checked to see that all the flags work?
GandalfDDUK
10-14-2007, 08:53 PM
running 3.6.8 and flags don't show for me either, have the right field number, flags are chmod to 755 and it still displays country code.
Arrogant-One
10-17-2007, 01:04 AM
running 3.6.8 and flags don't show for me either, have the right field number, flags are chmod to 755 and it still displays country code.
Australia's flag isn't very sharp in terms of picture/image quality.
AO
GSPFAN
10-17-2007, 11:20 AM
Australia's flag isn't very sharp in terms of picture/image quality.
AO
Is this mod working on your site and do all the flags show up?
gRanat
10-18-2007, 11:26 AM
I also have the problem with showing images of flags. I see only the countrycode...
GandalfDDUK
10-20-2007, 11:03 PM
Sorted it in this part;
<!-- / flags start -->
<div>
<if condition="$post[fieldXX]"><img src="images/flags/$post[fieldXX].png"></if>
</div>
<!-- / flags end -->
REPLACE with;
<!-- / flags start -->
<div>
<if condition="$post['fieldXX']"><img src="http://www.yourdomain.com/forumdirectory/images/flags/$post[fieldXX].png"></if>
</div>
<!-- / flags end -->
and the flags should show.
OnyxChase
10-21-2007, 12:26 AM
There is some flags missing or some countries extra in the list provided. I randomly selected DC from the list and realized the flag was missing. Here is a list I made:
AD
AE
AF
Afghanistan
AG
AI
AL
Albania
AM
American Samoa
AN
AO
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BM
BN
BO
BR
BS
BT
BV
BW
BY
BZ
CA
catalonia
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CS
CU
CV
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
england
ER
ES
ET
europeanunion
FAM
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GH
GI
GL
GM
GN
GP
GQ
GR
GS
GT
GU
GW
HK
HM
HN
HR
HT
HU
ID
IE
IL
IN
IO
IQ
IR
IS
IT
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PN
PR
PS
PT
PW
PY
QA
RE
RP
RS
RU
RW
SA
SB
SC
scotland
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
ST
SV
SY
SZ
TC
TD
TF
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
UM
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
wales
WF
WS
YE
YT
ZA
ZM
ZW
GandalfDDUK
10-21-2007, 05:59 AM
Quick tip,
If you change all the 2 letter codes to country names in the options under profile field, instead of pasting the list and then change the file names to match, it will ask you to select your country by name instead of 2 letters, very helpful for those who may not know what the 2 letters are for their country.
logofreax
10-28-2007, 09:15 PM
Hi, I also installed this Hack, but have same Problem like some other. In Profile I only have the Name but no Icon.
<!-- / flags start -->
<div>
<if condition="$post['field10']"><img src="http://www.faq4mobiles.de/forum/images/flags/$post[field10].png"></if>
</div>
<!-- / flags end -->
Can you give me a hint how to fix this problem?
cu
logofreax
BoneDust
11-19-2007, 03:56 AM
I believe I have everything setup right; I changed the field to field5 for my board but still no images are displayed. I tried all the suggestion in this thread and I am running 3.6.8
freddymaze
11-19-2007, 10:51 AM
Installed. Uninstalled.
nyunyu
11-21-2007, 01:17 PM
It works!! Thanks for this useful hack. Any plan to release an animated flag?
mauriceo
12-08-2007, 09:51 AM
I'm using version 3.6.8 and can choice in the user profile the flag (only diggits available) but bihind or below the MSN or AIM icons i dont see any flag, where do i have to look to see the flag?
Here the code what i did changed.
...<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<!-- / flags start -->
<div>
<if condition="$post[fieldXX]"><img src="images/flags/$post[fieldXX].png"></if>
</div>
<!-- / flags end -->
</div>
</td>
<if condition="$show['moderated']">...
Jase2
12-15-2007, 01:24 PM
I followed the instructions but I can't get it to work. When I go in my profile it just shows the two letters that it said copy and paste.
And nothing shows in the post bit.
Regards Jason :)
gforce75
12-28-2007, 11:23 AM
Hey guys i figured it out and it's so simple. You see that field option? You need to change it to whatever your field number is. Mine was 8. I left it at xx and just started to look at the code. Anyways, change it to your number and make sur ethe images point to your directory. You'll be fine!
franzjuve
02-01-2008, 03:14 AM
Installed. Uninstalled.
same for me
TCE Killa
02-01-2008, 01:28 PM
Thanks man.
River_rush
02-01-2008, 06:51 PM
installed, and after changing the flag list to reflect what actually is there, changing the image/flag to the full url and making sure I put the right field number in, it works perfectly, thanks
TCE Killa
02-02-2008, 11:57 PM
If you want your flag to show up next to your location - as so in the screenshot, simply replace your location, so find...
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
Replace with this:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]<!-- / flags start -->
<if condition="$post[field32]"><img src="images/flags/$post[field32].png"></if>
<!-- / flags end --></div></if>
All I did was take out the div tags and added one at the end.
Screenshot: https://vborg.vbsupport.ru/external/2008/02/49.jpg
Magnusson2u
02-07-2008, 04:18 PM
This looks GREAT! Can people use multiple flags?
sunnylikbeckham
03-09-2008, 07:24 AM
did not worked for me
Warion
03-09-2008, 10:49 PM
did not work for me either.
NeuroLancer
03-12-2008, 03:31 PM
Here is attached fixed images and Country names.
No longer 2 letter abbreviations, this is full names, much nicer. The .png's have been changed in names to suit this.
Works great for me.
This took a long time to do all the changes by the way! :D enjoy.
United States
Canada
United Kingdom
Australia
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Aruba
Austria
Azerbaijan
Bahama
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia and Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
British Virgin Islands
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Catalonia
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos Keeling Islands
Colombia
Comoros
Congo
Congo Democratic Republic
Cook Iislands
Costa Rica
Cote Divoire
Croatia
Cuba
Cyprus
Czech Republic
Czechoslovakia
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
England
Equatorial Guinea
Eritrea
Estonia
Ethiopia
European Union
Falkland Islands Malvinas
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guinea
Guinea Bissau
Haiti
Heard McDonald Islands
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Iraq
Ireland
Islamic Republic of Iran
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kiribati
Korea
Korea Democratic Peoples
Kuwait
Kyrgyzstan
Lao
Latvia
Lebanon
Lesotho
Liberia
Libyan Arab Jamahiriya
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia
Moldova
Monaco
Mongolia
Monserrat
Montenegro
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Territory Occupied
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russia
Rwanda
Saint Lucia
Samoa
San Marino
Sao Tome Principe
Saudi Arabia
Scotland
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia
Spain
Sri Lanka
St Helena
St Kitts and Nevis
St Pierre Miquelon
St Vincent Grenadines
Sudan
Suriname
Svalbard Jan Mayen Islands
Swaziland
Sweden
Switzerland
Syrian Arab Republic
Taiwan
Tajikistan
Tanzania
Thailand
Timor Leste
Togo
Tokelau
Tonga
Trinidad Tobago
Tunisia
Turkey
Turkmenistan
Turks Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States Outlying Islands
United States Virgin Islands
Uruguay
Uzbekistan
Vanuatu
Vatican City State
Venezuela
Viet Nam
Wales
Wallis Futuna Islands
Western Sahara
Yemen
Zambia
Zimbabwe
Magnusson2u
03-12-2008, 03:43 PM
Thanks for the time and energy. Cheers!
Lombardo
03-12-2008, 04:27 PM
It works if you edit the postbit template not the postbit legacy. Well i edited both and it worked as it didn't work when i just edited postbit_legacy.
Ok, go into your AdminCP.
On the left navigation go...
User Profile Fields > User Profile Field Manager
Look for
Flag Single-Selection Menu Required, Editable, Searchable, Members List field6 [Edit][Delete]
See where it says Field6, well yours will probably be different but you insert that instead of the XX.
Jac
I've got the same problem, it only shows up as 2 letters, like NE, AA etc.
And I don't erally understand what you mean by this solution.
Yes I've found
Flag Single-Selection Menu Required, Editable, Searchable, Members List field7
So it's field7 @ my place.
But what should I do there than?
Sorry if I'm that stupid :$
Thanks in advance,
Hypo
Lombardo
03-12-2008, 05:11 PM
You type that number "7" into the template that you were giving in your download.Where it says "fieldxx" you replace the "xx" with "7" so it will be "field7"
OO is it that easy, will try than :)
Thanks Lombardo ;)
Lombardo
03-12-2008, 05:30 PM
No worries,it was only a few months ago i was in the same boat as you. :D
Lombardo
03-16-2008, 10:43 PM
is there any chance of getting the new flag of kosovo, i have a member from Kosovo and he'd like his flag.It would be much appreciated.
Jase2
03-16-2008, 10:48 PM
Any update on this for 3.7?
Regards Jason :)
Drago912
05-17-2008, 09:42 PM
It works if you edit the postbit template not the postbit legacy. Well i edited both and it worked as it didn't work when i just edited postbit_legacy.
yep....thats exactly what fixed it for me also.........:)
EhsanAhmad
05-19-2008, 09:35 PM
i installed and fixed in both templates but didnt work , it just wont show up
bandare
05-20-2008, 04:12 PM
would be good if in the drop down menu in profile edit, you could see the flag images, not double letters. Is this possible instead?
Britmovie
05-25-2008, 06:09 PM
S'mae Jac,
Will this work with 3.7 as tried it and seems not to?
Dafydd
Soup^Dragon
05-26-2008, 10:56 AM
works fine for me just follow the steps in all the posts above
Collectors
12-27-2008, 08:43 AM
Works great (3.7.4), thanks! :)
zombietom
02-28-2009, 01:23 PM
install and working on 3.7.1 --thanks!
zombietom
02-28-2009, 06:45 PM
one thing i found --is that there is a PP but no image for it--i have no ideal what PP stands for so i just removed it from the field i created.
just a heads up.
itsheinz
03-07-2009, 04:45 AM
its not working on my 3.8.1
btw,iv changed my flag images,it became gif,was there a problem?but in the code i changed png to gif as well,but unfortunately it didnt showed up.
mdawg
03-26-2009, 06:44 PM
Are there any flag modifications that work on 3.8.1
forum4
05-28-2009, 05:15 PM
Here is attached fixed images and Country names.
No longer 2 letter abbreviations, this is full names, much nicer. The .png's have been changed in names to suit this.
Works great for me.
This took a long time to do all the changes by the way! :D enjoy.
United States
Canada
United Kingdom
Australia
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Aruba
Austria
Azerbaijan
Bahama
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia and Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
British Virgin Islands
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Catalonia
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos Keeling Islands
Colombia
Comoros
Congo
Congo Democratic Republic
Cook Iislands
Costa Rica
Cote Divoire
Croatia
Cuba
Cyprus
Czech Republic
Czechoslovakia
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
England
Equatorial Guinea
Eritrea
Estonia
Ethiopia
European Union
Falkland Islands Malvinas
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guinea
Guinea Bissau
Haiti
Heard McDonald Islands
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Iraq
Ireland
Islamic Republic of Iran
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kiribati
Korea
Korea Democratic Peoples
Kuwait
Kyrgyzstan
Lao
Latvia
Lebanon
Lesotho
Liberia
Libyan Arab Jamahiriya
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia
Moldova
Monaco
Mongolia
Monserrat
Montenegro
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Territory Occupied
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russia
Rwanda
Saint Lucia
Samoa
San Marino
Sao Tome Principe
Saudi Arabia
Scotland
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia
Spain
Sri Lanka
St Helena
St Kitts and Nevis
St Pierre Miquelon
St Vincent Grenadines
Sudan
Suriname
Svalbard Jan Mayen Islands
Swaziland
Sweden
Switzerland
Syrian Arab Republic
Taiwan
Tajikistan
Tanzania
Thailand
Timor Leste
Togo
Tokelau
Tonga
Trinidad Tobago
Tunisia
Turkey
Turkmenistan
Turks Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States Outlying Islands
United States Virgin Islands
Uruguay
Uzbekistan
Vanuatu
Vatican City State
Venezuela
Viet Nam
Wales
Wallis Futuna Islands
Western Sahara
Yemen
Zambia
Zimbabwe
Thanks so much for all of your work on this! I was able to manually code in the flags. This way is so nice as I can just have an input field. Members have to enter their country correctly, but it's so much nicer than a long drop down list etc.
Plus, the tiny flags are super cute! 5 stars!
ubcforums
05-31-2009, 02:18 AM
works with 3.82 :D
Flags are cute :D
Verionia
08-14-2009, 02:36 AM
Worked in 3.84!! :) THANKS!
Dear Sir...
From Where I can get vBulletin Flags for Version: 3.8.4
Please your help.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.