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.

Profiles - User's Country

10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

If one clicks on a user's profile page for the city or state, it shows other users with the same city or state. However, in the case of a country, I get the message "No user found."

We have amended the countries.xml file so that countries are listed such as per the following entry:

<country>
<name>United States</name>
<code>US</code>
</country>

Also, the jos_community_fields_values shows corresponding values as "United States" etc for the country.

I assume that is correct per other posts that I have read in these forums.

Or, Is that format wrong? Please advise.

Thanks. -- Rik

PS: Please read the "Misc Information" box for admin login instructions.

FYI, I'll insert the complete countries.xml file below (Sorry, the system won't let me attach the file).

<?xml version="1.0" encoding="utf-8"?>
<jomsocial>
<countries>
<country>
<name>Afghanistan</name>
<code>AF</code>
.....
<country>
<name>Western Sahara</name>
<code>EH</code>
</country>
<country>
<name>Yemen</name>
<code>YE</code>
</country>
<country>
<name>Zambia</name>
<code>ZM</code>
</country>
<country>
<name>Zimbabwe</name>
<code>ZW</code>
</country>
</countries>
</jomsocial>

10 years 10 months ago
Licenses:

Hi Rik,

the /components/com_community/libraries/fields/countries.xml content must using language constant:

<?xml version="1.0" encoding="utf-8"?>
<jomsocial>
	<countries>
		<country>
			<name>COM_COMMUNITY_LANG_NAME_AFGHANISTAN</name>
			<code>COM_COMMUNITY_LANG_CODE_AF</code>
		</country>
		<country>
			<name>COM_COMMUNITY_LANG_NAME_ALANDISLANDS</name>
			<code>COM_COMMUNITY_LANG_CODE_AX</code>
		</country>
		<country>
			<name>COM_COMMUNITY_LANG_NAME_ALBANIA</name>
			<code>COM_COMMUNITY_LANG_CODE_AL</code>
		</country>
                ......
                ......
          </countries>
</jomsocial>

you can find that language constant for country name and code at (e.g for English):
/language/en-GB/en-GB.com_community.country.ini

I hope my explanation can help you

Regards,
Albert

The following user(s) said Thank You: Rik
10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

Per your reply, I have adjusted the values in our database and it works now. Thanks!

Just one other matter.... I tried to change the order of the countries in "en-GB.com_community.country.ini" as I prefer that the "Vatican" appear under the letter "V" instead of the letter "H" as follows:

COM_COMMUNITY_LANG_NAME_VANUATU="Vanuatu"
COM_COMMUNITY_LANG_CODE_VU="VU"
COM_COMMUNITY_LANG_NAME_HOLYSEEVATICANCITYSTATE="Vatican"
COM_COMMUNITY_LANG_CODE_VA="VA"
COM_COMMUNITY_LANG_NAME_VENEZUELABOLIVARIANREPUBLICOF="Venezuela"
COM_COMMUNITY_LANG_CODE_VE="VE"

I then cleared Joomla's cache. However, the order presented to users has stayed unchanged.

Am I not allowed to make such a change in the orders in that file? Please advise.

Thanks. -- Rik

10 years 10 months ago
Licenses:

Hi Rik,

To change the order you must changing it at /components/com_community/libraries/fields/countries.xml
not at language file.

Regards,
Albert

The following user(s) said Thank You: Rik
10 years 10 months ago
  • Rik's Avatar
    Topic Author
  • Rik
  • Offline
  • Junior Boarder
  • Posts: 114
  • Thank you received: 3
Licenses:
JomSocial Active Publisher Expired Socialize Expired

Albert:

I understand now:

1) To change country spellings, I need to edit /language/en-GB/en-GB.com_community.country.ini
2) To change the order of countries, I need to edit /components/com_community/libraries/fields/countries.xml

Everything is working now. So just one last question:

Besides backing up and restoring these files with each JomSocial upgrade, is there a way to put them into some kind of "override directory" to maintain those changes?

Thanks. -- Rik

10 years 10 months ago
Licenses:

Hi Rik,

for country spellings you can using joomla override language. from joomla language manager.
for countries.xml you can't override it. I suggest you to make copy for countries.xml

Regards,
Albert

The following user(s) said Thank You: Rik
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