Forgot Password
 Register
View: 214|Reply: 0

Activate fulltext search as default in Discuz! X 3.5

[Copy Link]
Posted on 2024-03-28 11:20:12 | Show all floors |Read 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 Props Report

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

Forum Credit Rules

Close

Editors SelectedPrevious /2 Next

Archiver|Mobile|Darkroom|Privacy|DSC

GMT+7, 2024-04-24 13:24 , Processed in 0.014170 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

Quick Reply Back to Top Return to List