Using seeks directly from a website
From Seeks
Adding seeks on your website
Generic way
There is an easy way to add seeks to your website: just put the following code to your page:
<form method="GET" action="http://seeks.node.tld/index.php/search" id="search_form"> <input title="Search" id="search_input" autocomplete="off" name="q" maxlength="2048" value="" type="text" /> <input name="expansion" value="1" type="hidden" /> <input name="action" value="expand" type="hidden" /> <input id="search_button" value="Search with seeks" type="submit" /> </form>
This is a minimalistic implementation, and you may adapt it to fit your css/design. Also, if possible, you should use your own node instead of seeks.fr
Constrain search on a site
If you want to constrain search for a site, you can use the following code:
<script type="text/javascript">
<!--
function prepend_query() {
document.getElementById('search_input').value = 'site:www.example.com ' + document.getElementById('search_input').value;
return true;
}
-->
</script>
<form method="GET" action="http://seeks.node.tld/index.php/search" id="search_form" onSubmit="return prepend_query()">
<input title="Search" id="search_input" autocomplete="off" name="q" maxlength="2048" value="" type="text" />
<input name="expansion" value="1" type="hidden" />
<input name="action" value="expand" type="hidden" />
<input id="search_button" value="Search with seeks" type="submit" />
</form>
This is just a trick, making seeks querying search engines with the standard site:www.site.tld, to get results only from one site.
