The forum is in read only mode.
Hi Luis, please check it, I edit this file: /components/com_community/libraries/fields/country.php at line 73. I changing the code from
// build an array with TRANSLATED country names as keys... foreach($countries->country as $country){ $countriesSorted[JText::_($country->name)] = $country->name; } // ...so it can be properly key-value natural-sorted uasort($countriesSorted, 'CStringHelper::compareAscii'); ?> <select id="field<?php echo $field->id;?>" name="field<?php echo $field->id;?>" class="joms-select" <?php echo $required;?> > <option value=""<?php echo empty($field->value) ? ' selected="selected"' : '';?>><?php echo JText::_('COM_COMMUNITY_SELECT_A_COUNTRY');?></option> <?php foreach($countriesSorted as $countryName=>$countryCode) { ?> <option value="<?php echo $countryCode;?>"<?php echo ($field->value == $countryCode) ? ' selected="selected"' : '';?>><?php echo $countryName;?></option> <?php } ?> </select>
// build an array with TRANSLATED country names as keys... foreach($countries->country as $country){ $name = (string) $country->name; $countriesSorted[$name] = JText::_($name); } // ...so it can be properly key-value natural-sorted uasort($countriesSorted, 'CStringHelper::compareAscii'); ?> <select id="field<?php echo $field->id;?>" name="field<?php echo $field->id;?>" class="joms-select" <?php echo $required;?> > <option value=""<?php echo empty($field->value) ? ' selected="selected"' : '';?>><?php echo JText::_('COM_COMMUNITY_SELECT_A_COUNTRY');?></option> <?php foreach($countriesSorted as $countryCode=>$countryName) { ?> <option value="<?php echo $countryCode;?>"<?php echo ($field->value == $countryCode) ? ' selected="selected"' : '';?>><?php echo $countryName;?></option> <?php } ?> </select>
JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a full -fledged, social networking site
TRY NOW BUY NOW