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 at registration

11 years 7 months ago
  • Rakesh's Avatar
    Topic Author
  • Rakesh
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Active

Since this solution does not apply anymore:

This can be done by re-ordering countries in the countries.xml file located in /components/com_community/libraries/fields/ directory
Just move United States to the top of the list. It's a simple cut & paste operation.

source
Currently the list is alphabetically ordered

I would like to know what can be done.

11 years 7 months ago
Licenses:

Hi,

you can overrides the template:
copy profile.php
from [Joomla Root]/components/com_community/templates/jomsocial/layouts/register/
to [Joomla Root]/templates/[frontend template]/html/com_community/layouts/register/

edit it, and put this code at the bottom of page

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

Regards

11 years 7 months ago
  • Rakesh's Avatar
    Topic Author
  • Rakesh
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Active

Works like a charm! Thanks

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