Back to Modification Graveyard

Animated Country Flags
Mod Version: 3.5.x +, by Neutral Singh

This thread is in the Modification Graveyard.
vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 3
Released: 26 Jan 2009 Last Update: Never Downloads: 0
Not Supported Template Edits Additional Files Re-usable Code Translations  

Should work in all previous versions. This is a very simple template modification which shows country flags for each user posts in postbit/postbit_legacy templates.

Visit any topic for a Demo: http://www.sikhism.us

Code:
Step 1. Create a New Profile Field
>> Go to AdminCP >> User Profile Fields >> Add New User Profile Field
>> Profile Field Type >> Single Selection Menu >> Continue
>> Title >> My Representative Country
>> Description >> Select country of your present residence.
>> Options >> Copy & Page, the list of countries at end of this message, in the Options Box. Make sure there is one country per line.
>> Set Default >> None
>> Display Order >> Your choice
>> Field Required >> Yes, at registration and profile updating
>> Field Editable by the User >> Yes
>> Private Filed >> No
Optional Output: No
Display page>> Edit Your Details
Save
Note down the new profile field's id no.
 
Note down the profile id number.
Step 2. Edit Template Postbit or Postbit_Legacy

Find: (You can choose your own location to show the flags. This is what i did.)
<td valign="top" nowrap="nowrap"> <div class="smallfont"> <if condition="$post['joindate']">
Add Above:
<td valign="top" nowrap="nowrap"> <if condition="$post['fieldX']"><img src="/images/flags/$post[fieldX].gif" alt="My Country: $post[fieldX]" border="0" /></if> </td>
Replace field"X" with profile field id no. Step 3. Download the animated flags from https://cid-66059b86e2bfb143.skydrive.live.com/self.aspx/.Public/flags.zip. (Sorry, could not upload at vB.org due to file size limits of 2MB for zip file! This file is 4MB. I could not upload even after spliting the files into 1MB each. If possible vb.org staff could upload the same on vb.org for me from this link. Thanks!). Unzip the flags.zip and upload the folder 'flags' in /images directory of each of your styles. And you are Done! nJoy!! Select the below list of countries, cut and paste in the Options Box
India United Kingdom United States ASEAN Abu Dhabi Afghanistan Ajman Aland Islands Albania Alderney Algeria American Samoa Andorra Angola Anguilla Antarctica Antigua and Barbuda Arab League Argentina Armenia Aruba Australia-Aboriginal Australia Austria Azerbaijan Azores Bahamas Bahrain Balearic Islands Bangladesh Barbados Belarus Baleu Belgium Belize Benin Bermuda Bhutan Bolivia Bosnia and Herzegovina Botswana Bouvet Island Brazil British Antarctic Territory British Indian Ocean Territory British Virgin Islands Brunei Bulgaria Burkina Faso Burma Burundi CAL Flag Cambodia Cameroon Canada Canary Islands Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island CIS Cocos Islands Colombia Commonwealth Comoros Congo-Brazzaville Congo-Kinshasa Cook Islands Coral Sea Islands Costa Rica Cote DIvoire Croatia Cuba Cyprus Czech Republic Denmark Djibouti Dominica Dominican Republic Dubai Dutch Anilles East Timor Ecuador Egypt El Salvador England Equatorial Guinea Eritrea Estonia Ethiopia European Union Falkland Islands Faroe Islands Fiji Finland France French Austral Lands French Guiana Independentist French Guiana French Polynesia Fujairah Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea-Bissau Guinea Guyana Haiti Heard and McDonald Islands Holy See Honduras Hong Kong Hungary Iceland Indonesia Iran Iraq Ireland Islamic Conference Isle of Man Israel Ivory Coast Italy Jamaica Japan Jersey Jordan Jolly Roger Kazakhstan Kenya Kiribati Kuwait Kyrgyzstan Laos Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Lord Howe Island Luxembourg Macao Macedonia Madagascar Madeira Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Micronesia Midway Islands Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia NATO Nauru Nepal Netherlands Antilles Netherlands New Caledonia New Zealand-Maori New Zealand Nicaragua Niger Nigeria Niue Norfolk Island North Korea Northern Cyprus Northern Ireland Northern Marianas Nordic Council Norway OPEC OAS OAU Oman Olympics Orkney Islands Pakistan Palau Palestine Panama Papua New Guinea Paraguay Pacific Community Peru Philippine Pitcairn Islands Poland Portugal Puerto Rico Qatar Ras al-Khaimah Reunion Romania Russian Federation Rwanda Sami Samoa San Marino Sao Tome e Principe Sark Saudi Arabia Scotland Seborga Senegal Serbia Seychelles Sharjah Shetland Islands Sierra Leone Sikkim Singapore Slovakia Slovenia Solomon Islands Somalia Somaliland South Africa South Korea Spain Sri Lanka St Helena St Kitts and Nevis St Lucia St Pierre and Miquelon St Vincent and the Grenadines Sudan uriname Swaziland Sweden Switzerland Syria Tahiti Taiwan Tajikstan Tanzania Thailand Tibet Togo Tokelau Tonga Trinidad and Tobago Tromelin Tunisia Turkey Turkmenistan Tuvalu US Virgin Islands Uganda Ukraine Umm al-Qaiwan United Nations Uruguay Uzbekistan Vanuatu Vatican City State Venezuela Vietnam WEU Wake Island Wales Wallis & Futuna Western Sahara Yemen Yugoslavia Zambia Zimbabwe Zaire

Download

No files for download.

Similar Mods

Country Orb people (Country Flags) vBulletin Avatar Sets
Profile Enhancements Flags - Country and Region vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024