Resource icon

xF1 Add-on Flags of countries show 1.0

No permission to download
The language Spanish has hit not standard on the internet. The images accentuate and ñ has not load images.
Make an addon not sense.


15_1-png.9542

15_2-png.9543


Whoever wants to adapt it to your country, you have to change the text to be entered on the message_user_info template(example):
PHP:
 <dd><a href="http://maps.google.com/maps?q={xen:urlencode {xen:string censor, $user.location}}" target="_blank" rel="nofollow" itemprop="address" class="concealed">
<xen:if is="({xen:string censor, $user.location} == 'Espana')">
<img src="@imagePath/xenforo/gushh_flags/Espana.png" alt="España" title="España" />
<xen:elseif is="({xen:string censor, $user.location} == 'Peru')" />
<img src="@imagePath/xenforo/gushh_flags/Peru.png" alt="Perú" title="Perú" />
<xen:elseif is="({xen:string censor, $user.location} == 'Mexico')" />
<img src="@imagePath/xenforo/gushh_flags/Mexico.png" alt="México" title="México" />
<xen:else />
<img src="@imagePath/xenforo/gushh_flags/{xen:string censor, $user.location}.png" alt="{xen:string censor, $user.location}" title="{xen:string censor, $user.location}" />
</xen:if>
</a></dd>
Who wants to add any country of the accents to this list, you must replace <xen:else /> by
PHP:
 <xen:elseif is="({xen:string censor, $user.location} == 'new_country')" />
<img src="@imagePath/xenforo/gushh_flags/new_country.png" alt="new_country_accentuated" title="new_country_accentuated" />
<xen:else />
Search in the account_personal_details template:
PHP:
<dd><input type="text" name="location" value="{$visitor.location}" id="ctrl_location" class="textCtrl OptOut" /></dd>
Replace by
text in attachments. File FlagsCountrys_Mod_lms.txt

Search in the message_user_info template
PHP:
<dd><a href="http://maps.google.com/maps?q={xen:urlencode {xen:string censor, $user.location}}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
Replace by
PHP:
	  <dd><a href="http://maps.google.com/maps?q={xen:urlencode {xen:string censor, $user.location}}" target="_blank" rel="nofollow" itemprop="address" class="concealed">
<xen:if is="({xen:string censor, $user.location} == 'Espana')">
<img src="@imagePath/xenforo/gushh_flags/Espana.png" alt="España" title="España" />
<xen:elseif is="({xen:string censor, $user.location} == 'Peru')" />
<img src="@imagePath/xenforo/gushh_flags/Peru.png" alt="Perú" title="Perú" />
<xen:elseif is="({xen:string censor, $user.location} == 'Mexico')" />
<img src="@imagePath/xenforo/gushh_flags/Mexico.png" alt="México" title="México" />
<xen:else />
<img src="@imagePath/xenforo/gushh_flags/{xen:string censor, $user.location}.png" alt="{xen:string censor, $user.location}" title="{xen:string censor, $user.location}" />
</xen:if>
</a></dd>
Leave the flags files in spanish without accents and España as Espana (Spanish) in attachments.

Note: The names of the countries are in Spanish. The flags look the same. These are pictures!

15-png.9540


Salud2
Author
AnimeHaxor
Size
291 KB
Extension
zip
Downloads
5
Views
1,696
First release
Last update

More resources from AnimeHaxor

Similar resources

Shows member's country flag based on their IP Address
[TH] Language Flags
Add flag images next to your language titles in the language chooser.
How to show a post in a page AnimeHaxor
I will teach you how to show a specific post in a XenForo page.
Now you know what those unknown pages really are...
731Threads
2,287Messages
63,760Members
ownchemistLatest member
Back