开发者

BoonEx Dolphin: Alter the Add a New Group form

开发者 https://www.devze.com 2023-02-23 12:12 出处:网络
When adding a new group in BoonEx Dolphin, there is an HTML form that contains开发者_如何学编程 several input fields. Among the fields, there are Country, City, Zip/Postal Code - how can I remove thos

When adding a new group in BoonEx Dolphin, there is an HTML form that contains开发者_如何学编程 several input fields. Among the fields, there are Country, City, Zip/Postal Code - how can I remove those from the form?


Group/Add Group/ Group'sInfo

Here is the answer for your question. Refer this link.

edit the file "modules/boonex/events/classes/BxEventsFormAdd.php"

here you see this for country:

'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 the line:

'required' => true,

same for city and place, or you could try to delete the whole code from above

for groups the same on the file:

modules/boonex/groups/classes/BxGroupsFormAdd.php

Here is the link for more details:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消