Open B4rb3rouss opened 10 years ago
As example, a form for duckduckgo :
<form method="get" id="search" action="http://duckduckgo.com/">
<input type="hidden" name="sites"value="yourWebSite.net"/>
<input type="text" name="q" maxlength="255" placeholder="Rechercher"/>
<input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" />
</form>
In greyscale theme,
File theme.php :
//set the forum URL for duckduckgo search-by-site
'//input[@name="sites"]/@value' => $_SERVER['HTTP_HOST'],
In every .html files :
<form id="search" method="get" action="http://duckduckgo.com/"><!--
--><input type="hidden" name="sites" value="forum.camendesign.com"/><!--
--><input type="hidden" name="kh" value="1"/><!--
--><input type="text" name="q" maxlength="255" placeholder="Rechercher"/><!--
--><input id="go" type="image" src="/themes/greyscale/img/go.png" width="20" height="20" alt="Search"><!--
--></form>
I thought it already supported this?? If not, certainly I do want to add it!
It might be a good idea to use another search engine that google (such as ixquick or duckduckgo).