View: 4947|Reply: 0

Activate fulltext search as default in Discuz! X 3.5

[Copy link]
Posted on 28-3-2024 11:20:12 | Show all floors |Reading mode
First of all, you need to run Discuz!X 3.5 version. Follow this instruction to make a little edit to the template file: /template/default/common/ pubsearchform.htm . If you're using another theme, template just change the name of template folder ( change default --> yourtheme ).

Look at the line 44:

  1. <td class="scbar_txt_td"><input type="text" name="srchtxt" id="scbar_txt" value="{lang enter_content}" autocomplete="off" x-webkit-speech speech /></td>
Copy code
Change to :
  1. <td class="scbar_txt_td"><input type="text" name="srchtxt" id="scbar_txt" value="{lang enter_content}" autocomplete="off" x-webkit-speech speech /><input type="checkbox" name="srchtype" value="fulltext" style="display:none;" /></td>
Copy code



Save and clear the cache at AdminCP: Tools --> Update Cache --> Tick on all 3 options --> Submit


Reply

Use item Report

You need to log in before you can reply. Login | Register

Points Rules for This Section

Close

Editors SelectedPrevious /2 Next

关注公众号
Archiver|Mobile|Darkroom|Privacy|DSC

相关侵权、举报、投诉及建议等,请发 E-mail:[email protected]

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

InThis sectionPosts
关注公众号
Back to top