Camen Design Forum

DuckDuckGo

append delete cruft

I'm trying to change default search from Google to DuckDuckGo.

I've changed references in theme/theme.php & index.html (for now) and i'm not sure if it's working. I get sent to DuckDuckGo but my term isn't searched. I have to retype it in and it's not my site specific.

Reply RSS

Replies

append delete #1. TCB

DuckDuckGo and Google use different querystrings for site-based searches. Do the same search on Google and DDG, then look at the URL in the address bar to see the difference.

You should now be able to see what needs to be changed in NNF to make the search function work with DDG.

append delete #2. atiqsursumon

Google is the best search engin

append delete #3. cruft

Google is the best search engin

DuckDuckGo doesn't track your activity

append delete #4. pekman

:: Exemple code

% html
<form id="search" method="get" action="https://duckduckgo.com/">
		<input type="hidden" name="sites" value="your.site"/>
		<input type="hidden" name="k8" value="#222"/>
		<input type="hidden" name="k9" value="#D51920"/>
		<input type="hidden" name="kt" value="c"/>
		<input id="query" name="q" maxlength="255" placeholder="Buscar&hellip;"/>
		<input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" />
		<input id="go" type="image" src="/themes/greyscale/img/go.png" width="20" height="20" alt="Search">
</form>
%

Replace your.site for you real domain.

These changes can be made in */nnf/themes/greyscale/index.html* and */nnf/themes/greyscale/thread.html*.

For more details see DDG url parameters.
Link: https://duckduckgo.com/params

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn