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.

Default Country

8 years 7 months ago
Licenses:
JomSocial Active Socialize Active

Is there a way to make the UK as the default country in a member's profile?

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Richard,

You need modify this file components/com_community/libraries/fields/country.php, add this code before line 166 :

$field->value  = $field->value ?$field->value :'COM_COMMUNITY_LANG_NAME_UNITEDKINGDOM';

thank you!

8 years 7 months ago
Licenses:
JomSocial Active Socialize Active

Hi

I added the line of code before line 166 but it crashed the site! Can you please tell me what the code is on line 166 so that I can put it in the correct place?

Thank you

Richard

8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

put the code before this line :

foreach($countriesSorted as $countryName=>$countryCode)

Attachments:
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