Default country at new groups

In the insertform for new groups there can the default country modified with this litte hack:

In modules/boonex/groups/classes/BxGroupsFormAdd.php search for:


'country' => array(
'type' => 'select',
'name' => 'country',
'caption' => _t('_bx_groups_form_caption_country'),
'values' => $aCountries,
'required' => false,

and replace with:

'country' => array(
'type' => 'select',
'name' => 'country',
'caption' => _t('_bx_groups_form_caption_country'),
'values' => $aCountries,
'value' => 'DE',
'required' => false,

where 'value' => 'DE', changed to your country!

More Tipps and tricks in German (!) will be found at http://www.free-dolphin.de

Rappi

Bezirzer.de, elbrocker.de, tierschutz-community.de
Quote · 12 Mar 2010

thanks for the hack,

and I ask for help when you change the default country on the registration page

greet

tom

Quote · 28 Jul 2010

thanks for the hack,

and I ask for help when you change the default country on the registration page

greet

tom

Admin -> Builders -> Profile Fields

Click on Country -> Choose Advanced and edit Default value: US to your Country

Quote · 29 Jul 2010

thanks, I did not think that it's so easy,

greet

Quote · 2 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.