1
I've made a hack to isearch module by instant zero.
I've added a class and a block.
This hack requires prototype and scriptaculous.
The block ajax search will show a search form with autocompletion feeded with most searched words in populatiry order.
The hack working can be viewed here:
http://www.s-martinez.com
I've implemented it also to the xoops-theme-web-2-0 at
http://xoops-theme.s-martinez.com
But with this theme it's buggy. I'll try to find where's the problem.
Thanks to instant-zero for this pretty useful module (I couldn't register at xoops.instant-zero.com -> blank page so I post here).
Hack can be downloaded here:
http://www.s-martinez.com/uploads/isearch.zip
Add these lines to your css file:
div.autocomplete {
position:absolute;
width:250px;
background-color:white;
border:1px solid #888;
margin:0px;
padding:0px;
z-index:1000;
}
div.autocomplete ul {
list-style-type:none;
margin:0px;
padding:0px;
}
div.autocomplete ul li.selected { background-color: #ffb;}
div.autocomplete ul li {
list-style-type:none;
display:block;
margin:0;
padding:1px;
height:15px;
cursor:pointer;
}
Enjoy :)