在BoonEx Dolphin中添加新组时,有一个HTML表单,其中包含几个输入字段。在这些字段中,有Country、City、Zip/Postal Code -如何从表单中删除这些字段?
发布于 2015-04-01 12:28:56
分组/添加分组/分组信息
这是你问题的答案。请参阅此链接。
编辑文件"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,城市和地点相同,或者您可以尝试从上面删除整个代码
对于文件上相同的组:
modules/boonex/groups/classes/BxGroupsFormAdd.php
以下是更多详细信息的链接:
http://www.boonex.com/forums/topic/Remove-Country-from-mandatory-field-in-Groups-and-Events.htm
https://stackoverflow.com/questions/5604823
复制相似问题