Search result message

11 years 7 months ago #209646 by imagiprint
Search result message was created by imagiprint
Hi,

I would like to show a message who says :"please refine your search" if my search result exceed 25 results ?(I'm using the search function from a user list)
How could I do that ? I've search with cb auto action but without succeed.

Regards,

Please Log in to join the conversation.

11 years 7 months ago #209722 by krileon
Replied by krileon on topic Re: Search result message
You're going to need to make a custom plugin most likely that acts on the onBeforeDisplayUsersList trigger to remove the results and display an error message. This trigger is fired directly before the userlist HTML is rendered.


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 7 months ago #211093 by imagiprint
Replied by imagiprint on topic Re: Search result message
Ok thanks, I would like to try with CB auto action showing a message if the search result>20 but I don't know in which variable are the result count stored

Please Log in to join the conversation.

11 years 7 months ago #211099 by krileon
Replied by krileon on topic Re: Search result message
You won't be able to do this with CB Auto Actions; you need more control over the triggers variables. You'll need to create a new plugin to specifically do as you're wanting. Please see the below tutorial (install-able example provided) for trigger usage information.

www.allmysocials.com/directory/tutorials/item/228-event-triggers


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.218 seconds

Facebook Twitter LinkedIn