Baidu Suche

:discourse2: Summary Baidu Search is specific for Chinese sites whose users cannot use the usual Google search.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-baidu-search
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

After installing and activating the component remember also to update the js.search.search_google and js.search.or_search_google strings (from /admin/customize/site_texts) by replacing ‘Google’ with ‘Baidu’ or ‘百度’.

Parameters references

Since the documentation in English relating to the parameters used by Baidu is scarce, I leave here the two valid references I found on the net

Credits

Thanks to @david for finding the workaround to make the search work on a specific site even without using the Q6 parameter which doesn’t work properly with the search terms!

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

9 „Gefällt mir“

Wissen Sie, ob diese Komponente aktualisiert wird oder ob sie vor der Frist im Juni entfernt werden muss?

Ich denke, es wäre vernünftig, eine Feature request zu erstellen. Es scheint eine gute Idee für den Administrator/Benutzer zu sein, ihre bevorzugte Suchmaschine einzurichten.

Die Behebung des TC würde einen plugin outlet erfordern. Wenn das Team damit einverstanden ist, kann ich einen PR erstellen, um einen hinzuzufügen.

1 „Gefällt mir“

Es gibt tatsächlich eine kürzlich eingeführte Plugin-Schnittstelle.
Ich habe einen PR erstellt:

2 „Gefällt mir“