Retrieve Password
 Register
View: 4917|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 |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 Selected Previous /2 Next

Archiver|Mobile|Darkroom|Privacy|DSC

GMT+7, 2026-04-06 00:04 , Processed in 0.017455 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

Quick Reply Back to top Return to list