BoonEx Dolphin:更改添加新组表单


BoonEx Dolphin: Alter the Add a New Group form

在BoonEx Dolphin中添加新组时,有一个包含几个输入字段的HTML表单。在字段中,有Country, City, Zip/Postal Code -我如何从表格中删除它们?

分组/添加分组/分组信息

这就是你问题的答案。参考此链接。

编辑文件"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})/'),
),                   
),

delete line:

'required' => true,

与城市和地点相同,或者您可以尝试删除上面的整个代码

对于相同的组:

模块/boonex/团体/类/BxGroupsFormAdd.php

这里是更多细节的链接:

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