• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Flags of countries show

lms

Well-known member
The languaje spanish has hit not standar in internet. The images accentuateds and ñ has not load images.
Make a addon not sense.
Author: Gustavo Fernandez or DL Gushh_. I've only done some modification. All credit goes to him. Original mod in xenfacil.com


15_1.webp
15_2.webp

Whoever wants to adapt it to your country, you have to change the text to be entered on the message_user_info template (example in xenfácil.com):
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.webp

Salud2
 

Attachments

there should be an option in XF by default to have a list of countries in the user-profile-list.
 
Top Bottom