BoonEx Dolphin:更改添加新组表单

时间:2011-04-09 11:46:10

标签: php boonex-dolphin

BoonEx Dolphin中添加新组时,会有一个包含多个输入字段的HTML表单。在这些字段中,有CountryCityZip/Postal Code - 如何从表单中删除这些内容?

1 个答案:

答案 0 :(得分:-1)

分组/添加组/集团信息

以下是您的问题的答案。请参阅此链接。

编辑文件“modules / boonex / events / classes / BxEventsFormAdd.php”

在这里你看到了这个国家:

'Country' => array(
'type' => 'select',
'name' => 'Country',
'caption' => _t('_bx_events_caption_country'),
'values' => $aCountries,
'required' => true,
'checker' => array (
'func' => 'preg',
'params' => array('/^[a-zA-Z]{2}$/'),
'error' => _t ('_bx_events_err_country'),
),                                       
'db' => array (
'pass' => 'Preg',
'params' => array('/([a-zA-Z]{2})/'),
),                   
),

删除该行:

'required' => true,

同样适用于城市和地方,或者您可以尝试从上面删除整个代码

对于文件中相同的组:

模块/ boonex /组/类/ BxGroupsFormAdd.php

以下链接了解更多详情:

http://www.boonex.com/forums/topic/Remove-Country-from-mandatory-field-in-Groups-and-Events.htm

相关问题