Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Countries

9 years 11 months ago
  • Luis D's Avatar
    Topic Author
  • Luis D
  • Offline
  • Fresh Boarder
  • Posts: 85
  • Thank you received: 0
Licenses:
JomSocial Expired

Good morning, when registering a user, when you are choosing a country, they are messy and Spain goes Spain in the other version, that way I can sort this list and how can I change Spain for Spain?

9 years 11 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Luis D.,
As I am seeing you have installed spanish language but make sure the country language file of jomsocial "en-GB.com_community.country.ini" is there with appropriate language prefix.
The language file should be placed at root/language/es-ES/es-ES.com_community.country.ini"
Thanks

9 years 11 months ago
  • Luis D's Avatar
    Topic Author
  • Luis D
  • Offline
  • Fresh Boarder
  • Posts: 85
  • Thank you received: 0
Licenses:
JomSocial Expired

The file is edited as en_US and countries have even ordered alphabetically, but keep coming out in a different order.

9 years 11 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Luis D.,
I am seeing the country list are showing as alphabetical order as it is intended.
Thanks

9 years 11 months ago
  • Luis D's Avatar
    Topic Author
  • Luis D
  • Offline
  • Fresh Boarder
  • Posts: 85
  • Thank you received: 0
Licenses:
JomSocial Expired

spain is written in Spanish as España, and appears between Georgia del Sur and Sri Lanka, I put the original translation again, just in case.

9 years 11 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Countries,
Sorry for the delay.
I didn't get your point.
Can you explain a bit more?
Thanks

9 years 11 months ago
  • Luis D's Avatar
    Topic Author
  • Luis D
  • Offline
  • Fresh Boarder
  • Posts: 85
  • Thank you received: 0
Licenses:
JomSocial Expired

Good morning, I explain.

To organize the countries alphabetically, I tried from ES.com_community.country.ini is-as I had recommended, but that did not affect the order and return it back to its origin, but it is a problem that "España" want to include your country is Spain, a country starting from "E" and containing an "Ñ" that is not usually translate Spanish to be a typical letter, have to rummage through the entire list to find Spain. I need to organize that list, how I can do?

9 years 10 months ago
Licenses:

Hi Luis,

that because countries sorting depending on the order with language it self. /language/en-GB/en-GB.com_community.country.ini
If you want automatically sorting. you can use this custom code:

/components/com_community/libraries/fields/country.php
line 64 ( after $countries = $parser->countries;)

$countryList = array();

for($a=0;$a<count($countries->country);$a++ )
{
    $countryList["'".$countries->country[$a]->name."'"] = JText::_($countries->country[$a]->name);

}

function compareASCII($a, $b) {
    $at = iconv('UTF-8', 'ASCII//TRANSLIT', $a);
    $bt = iconv('UTF-8', 'ASCII//TRANSLIT', $b);
    return strcmp($at, $bt);
}

uasort($countryList, 'compareASCII');
replace lines 70 - 79:

from
<?php
for($a=0;$a<count($countries->country);$a++ )
{
    $name   = $countries->country[$a]->name;

?>
    <option value="<?php echo $name;?>"<?php echo ($field->value == $name) ? ' selected="selected"' : '';?>><?php echo JText::_($name);?></option>
<?php
}
?>

to

<?php
foreach ($countryList as $key => $value)
{
    $name = str_replace("'", "", $key);

?>
    <option value="<?php echo $name;?>"<?php echo ($field->value == $name) ? ' selected="selected"' : '';?>><?php echo JText::_($name);?></option>
<?php
}
?>

I hope this can help.

Regards,
Albert

9 years 10 months ago
  • Luis D's Avatar
    Topic Author
  • Luis D
  • Offline
  • Fresh Boarder
  • Posts: 85
  • Thank you received: 0
Licenses:
JomSocial Expired

Sorry, I do not understand code, you could make the change if you please?

9 years 10 months ago
Licenses:

Hi Luis,

I can't find your site location under path /home/cor at your FTP. what the right path?

Regards,
Albert

9 years 10 months ago
  • Luis D's Avatar
    Topic Author
  • Luis D
  • Offline
  • Fresh Boarder
  • Posts: 85
  • Thank you received: 0
Licenses:
JomSocial Expired

Hosting:
home / cor / Webapps / euterpe

9 years 10 months ago
Licenses:

Hi Luis,

I made the changes for you. please have a look again and let me know the result.

Regards,
Albert

The following user(s) said Thank You: Luis D
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW