Groups and country

Hello I would like to add a few groups into my website.

But they should be location indipendent as the groups should be focused on certain business activities, hence rather than geographic location.

But when creating Groups, I HAVE to choose a country.

How can I NOT choose a country (living it blank for instance)?

Any suggestions?

Quote · 29 Mar 2010

I think its hardcoded somewhere. Its not in the blocksettings nor in the navigation section.

Kids first
Quote · 29 Mar 2010

I think so too...! But there must be somebody else here around facing the same issue on this?

Anyone has a workaround on that?

Quote · 30 Mar 2010

I have mine removed... country, city and zipcode. Here's how I do it...

modules/boonex/groups/classes/BxGroupsFormAdd.php

red = add this to comment out

/*'country' => array(
'type' => 'select',
'name' => 'country',
'caption' => _t('_bx_groups_form_caption_country'),
'values' => $aCountries,
'required' => false,
/*'checker' => array (
'func' => 'preg',
'params' => array('/^[a-zA-Z]{2}$/'),
'error' => _t ('_bx_groups_form_err_country'),
),*/                                     
/*'db' => array (
'pass' => 'Preg',
'params' => array('/([a-zA-Z]{2})/'),
),
'display' => true,
),*/
/*'city' => array(
'type' => 'text',
'name' => 'city',
'caption' => _t('_bx_groups_form_caption_city'),
'required' => false,
/*'checker' => array (
'func' => 'length',
'params' => array(2,50),
'error' => _t ('_bx_groups_form_err_city'),
),*/
/*'db' => array (
'pass' => 'Xss',
),
'display' => true,
),*/
/*'zip' => array(
'type' => 'text',
'name' => 'zip',
'caption' => _t('_bx_groups_form_caption_zip'),
'required' => false,
/*'checker' => array (
'func' => 'avail',
'error' => _t ('_bx_groups_form_err_zip'),
),*/
/*'db' => array (
'pass' => 'Xss',
),
'display' => true,
),*/

cheers,

Audanbal

Quote · 16 Apr 2010

I'm am trying to change the predefine values in the group from country to state. I have downloaded the states module, but it isnt on the groups part, and i cant seem to locate it, used FF bug, no luck, I am sure I have passed over it, but no luck. anyone have any thoughts?

Derrick

Back to pulling my hair out! (ouch, ouch,ouch)
Quote · 28 May 2010

Nice work-a-round however, when using it, you do not have the option to specify a country anymore.

Rather than removing countries completely I believe there should be an option to leave it blank. To do so, I too have made some modifications by adding "No country" to the array, giving more flexibility.

The code I added (after line 81) to BxGroupsFormAdd.php is the following:

$noCountry = array("01" => "No country");

$aCountries = array_merge($noCountry, $aCountries);

 

so the new code looks like this:

 

$oProfileFields = new BxDolProfileFields(0);

$aCountries = $oProfileFields->convertValues4Input('#!Country');

$noCountry = array("01" => "No country"); // added by Denre

$aCountries = array_merge($noCountry, $aCountries); // added by Denre

asort($aCountries);

 

Although this works for me, I believe it's a shortcoming in Dolphin and I would like to see this been added to trac as an enhancement.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 28 May 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.