To add an extra search field to your groups - for example 'Country' do the following.
Edit
/modules/boonex/groups/classes/BxGroupsFormSearch.php
Find
$aCategories = $oCategories->getCategoriesList('bx_groups', (int)$iProfileId, true);
Add After
$aCountries = $oProfileFields->convertValues4Input('#!Country');
$oProfileFields = new BxDolProfileFields(0);
Find
'inputs' => array(
'Keyword' => array(
'type' => 'text',
'name' => 'Keyword',
'caption' => _t('_bx_events_caption_keyword'),
'required' => true,
'checker' => array (
'func' => 'length',
'params' => array(3,100),
'error' => _t ('_bx_events_err_keyword'),
),
'db' => array (
'pass' => 'Xss',
),
),
Add After
'Country' => array(
'type' => 'select_box',
'name' => 'Country',
'caption' => _t('_bx_groups_caption_country'),
'values' => $aCountries,
'required' => true,
'checker' => array (
'func' => 'preg',
'params' => array('/^[a-zA-Z]{0,2}$/'),
'error' => _t ('_bx_groups_err_country'),
),
'db' => array (
'pass' => 'Preg',
'params' => array('/([a-zA-Z]{0,2})/'),
),
),
Add the following language keys -
_bx_groups_caption_country -> 'Country'
_bx_groups_err_country -> 'please specify country'
The same principle applies to any predefined lists, but an additional modification will need to be made to BxEventSearchResults.php to process the new search field.
/DM
Please Note:
- Please do not post support questions in the product reviews box, these will be ignored.
- Please do not post support questions by PM - I am not your personal support network.
- Your inability to install software is not my problem, I am happy to help, but if it really is beyond your capability - pay a professional.
- There is a support forum for posting support questions, both here, and on my site.
- If you want to engage my services direct, visit my website and send me an enquiry, including a detailed scope of works. I will then provide you with a fixed price quotation. My standard rate is AU$100/hour.
- If you download one of my products - install the product and try it - if you have an issue - ask a question in the support forum, if you like the product. THEN post your review.
- If you post a review BEFORE trying a product - what exactly are you reviewing??? That you managed to download the mod okay?? In this case - please post a comment on your OWN profile congratulating yourself.
- If I have helped you - why not show some love by leaving a nice positive review on MY profile.
- If I have pissed you off - GOOD - You probably deserved it :)
- When leaving reviews, please consider that the MODS I post are generally free, and that I have given my time freely for YOUR benefit. I feel this is a generous action (see rate above), so if for some reason the mod is not quite what you need, instead of posting a bad review - why not turn that bitterness into something positive, and go hug a tree or something.
www.DeeEmm.com