2010-05-19, 09:42 PM
hello,
I've decided that I wanted to replace the mybb search with the google custom search, but am wondering if someone could show me how to accomplish what I'm trying to do.
basically, I like where the default mybb search is located on my forum:
http://www.pazrt.com/forum/
when you click 'search' it pops up the fast search which I also like and want to keep, but I want to include the google custom search inside that fast search and remove the 'advanced' search button.
this is the code google gave me for their search:
and here's the tutorial for the fast search:
http://community.mybb.com/thread-48277.html
I've decided that I wanted to replace the mybb search with the google custom search, but am wondering if someone could show me how to accomplish what I'm trying to do.
basically, I like where the default mybb search is located on my forum:
http://www.pazrt.com/forum/
when you click 'search' it pops up the fast search which I also like and want to keep, but I want to include the google custom search inside that fast search and remove the 'advanced' search button.
this is the code google gave me for their search:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('001838828447415403791:qy0vuj0slqq');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
and here's the tutorial for the fast search:
http://community.mybb.com/thread-48277.html