Prevent showing all members in Search list

11 years 8 months ago #209140 by imagiprint
Replied by imagiprint on topic Re: Prevent showing all members in Search list
Ok thanks, I'll try with CB Auto Action... but could you tell me which trigger I should use to perform an action when a user search for another user.
I've try with the 'onBeforeUsersListQuery' but it doesn't work.

I would like to force a user to fill a search criteria. If he doesn't, it will be redirected and receive a message.

Regards

Please Log in to join the conversation.

11 years 8 months ago #209198 by krileon
You'll probably want to use onBeforeDisplayUsersList, which is fired as follows (shows its available variables).

$_PLUGINS->trigger( 'onBeforeDisplayUsersList', array( &$row, &$users, &$columns, &$allFields, &$lists, $listid, &$search, &$option_itemid, 1 ) );


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

11 years 6 months ago #213459 by davidjoomla11
Replied by davidjoomla11 on topic Re: Prevent showing all members in Search list
Disappointed that our real concerns have not been addressed.

I've been proud of CB so far until this encounter. A search function is for search. If by not entering anything and clicking search can reveal the entire list, it is certainly a glaring flaw. This is not about a coding issue. It is about logic and user's need.

The right response is probably to add this into the wishlist for the next release. Unfortunately, it seems like you prefer to conclude "It is intended to be like this". What a pity.

Please Log in to join the conversation.

11 years 6 months ago #213520 by krileon
For now it's working as intended, but it absolutely is on our todo list to completely rewrite userlist usage; that however doesn't help you now. My proposal is a solution to help you now and while it may require some coding you would at the least have what you're wanting.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.243 seconds

Facebook Twitter LinkedIn