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.

How to set a default country

12 years 2 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
Joomla v3.3.3, JS v3.2.1.3.
Because 100% of our customers are located in France.
How can we set by default FIELD_COUNTRY set to "France" when users fill up their profile ?
Cheers,
L

12 years 2 months ago
Licenses:

Hi,

you can do it by using override ( documentation.jomsocial.com/wiki/Customizing_Template ) for:
/components/com_community/templates/default/register.profile.php
put this code at the bottom off page after "?>"

<script type="text/javascript">
	joms.jQuery(document).ready( function(){
			joms.jQuery('select').val('COM_COMMUNITY_LANG_NAME_FRANCE');
		});
</script>

Regards,
Albert

12 years 2 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
we've tested your changes, unfortunately we still have the same issue, user have to select the country in his profile, default country "France is not set as the default one.
We've put the modified file under root/template/socialize/html/com_community.
Can be seen on our live site, just log with user jules, password same as described for JSupport the go to "Mon profil/Modifier mon profil".
We would like for each new user that his country field's value will be set to "France". Perhaps it's in relation with:
components/com_community/libraries/fields/country.php ?
Cheers,
L

12 years 2 months ago
Licenses:

Hi There,

please provide me FTP and administrator access detail. I will do it for you.

FYI: the administator access detail seem not valid, because i can not login

Regards,
Albert

12 years 2 months ago
Licenses:
JomSocial Expired Socialize Expired

we've provided the ftp credential.
cheers,
L

12 years 2 months ago
Licenses:

Hi,

please check it again. I did at profile.edit.php.
I made the overide and put this code

<script type="text/javascript">
	joms.jQuery(document).ready( function(){
			if(joms.jQuery('#field11').val() == "") joms.jQuery('select').val('COM_COMMUNITY_LANG_NAME_FRANCE');
		});
</script>

Regards,
Albert

12 years 2 months ago
Licenses:
JomSocial Expired Socialize Expired

we are going to test it.
BTW do we still need to keep the override for register.profile.php ?
Cheers,
L

12 years 2 months ago
Licenses:

Hi,

register.profile.php is a for step 2 in registration process. seem your registration process only have 1 step. you can delete that override.

Regards,
Albert

12 years 2 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
now at the front end country got the default value as expected "France".
But at the backend through JomSocial/Monitor/members we've got not default country we've "Choose the country". Shouldn't we get "France" also ?
Cheers,
L

12 years 2 months ago
Licenses:

Hi,

I think we no need it at backend. because the backend value always follow frontend users it self.

Regards,
Albert

The following user(s) said Thank You: SAS Coeurs de Breizh
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