MyBB Community Forums

Full Version: Search Enhancement (do not require keywords)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Previous Thread: https://community.mybb.com/thread-219812...pid1314499
GitHub Push: https://github.com/mybb/mybb/issues/3459



It seems that we have reverted back to requiring keywords in order to make a search action, which really limits the search function for those of us that want to search by forums, thread prefix and dateline only to see all results.

I have personally found the culprit to be removed in inc/functions_search.php:
    if(!$keywords)
    {
        error($lang->error_nosearchterms);
    }

By commenting out these lines I am able to search by specific terms without keywords! I am not sure the reasoning behind requiring keywords but it is quite constraining to the search features ability.
Seems to have been removed by https://github.com/mybb/mybb/issues/4033
I am super unfamiliar with github and not certain what you mean by it was removed? forum is running the latest version and the code I specified above exists in the search functions php file.
The issue you mention was caused by the issue referenced by @Devilshakerz .