Here it is, the search function combined for mambo, smf and coppermine (in the mambo-wrapper component).
You can put this code in your mambo template (index.php).
You'll get a search box, together with a selection box, where you can select which part of the site you want to search on.
code (for in index.php in your mambo template):
NOTE: you have to add a wrapper in your com_wrapper admin, point it to
http://yoursite.com/gallery/thumbnails.php and call it cpg_search
//put this in between the <head></head> tags
<script language="JavaScript">
<!--
function processForm()
{
f = document.searchform;
switch (f.searcharea.selectedIndex)
{
// mambo
case 0: f.method='post';
f.action='index.php?option=search';
break;
//smf
case 1: f.method='post';
f.action='index.php?option=com_smf&Itemid=51&action=search2';
f.search.value=f.searchword.value;
f.option.value="";
break;
//coppermine
case 2: f.method='get';
f.action='index.php?option=com_wrapper&wrap=cpg_search&album=search&type=full';
f.search.value=f.searchword.value;
f.option.value = "com_wrapper";
f.wrap.value = "cpg_search";
break;
}
f.submit();
}
-->
</script>
//put this in the place you want the searchbox to display
<form name='searchform' action='javascript:processForm()' method='post'>
<div class="searchblock" id="searchblock">
<input size="15" class="inputbox" type="text" name="searchword" style="width:128px;" value="search..." onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" />
<input type="hidden" name="option" value="search" />
<input type="hidden" name="wrap" value="cpg_search" />
<!--cpg-->
<input type="hidden" name="album" value="search" />
<input type="hidden" name="search" />
<!--end cpg-->
<!--smf-->
<input type="hidden" name="advanced" value="0" />
<!--end smf-->
<select name="searcharea">
<option value = 0>Articles</option>
<option value = 1>Forum</option>
<option value = 2>Image Gallery</option>
</select>
<br>
<input type="submit" value="GO" class="button" style="width:35px;" />
</div>
</form>Hope I've told everything, you can always ask!
Thanks to Orstio for helping

Ilir