Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Enhancement] Search Enhancement (do not require keywords)
#1
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.
> SELECT finger FROM hand WHERE id='3'
Reply
#2
Seems to have been removed by https://github.com/mybb/mybb/issues/4033
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#3
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.
> SELECT finger FROM hand WHERE id='3'
Reply
#4
The issue you mention was caused by the issue referenced by @Devilshakerz .
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)