Seite 1 von 1

google suche - pub-code?

Verfasst: 03.09.2006 11:29
von winstown
Hallo,
ich habe auf meinem portal eine suche, wobei man zwischen forum- und google suche wählen kann.
ich wollte mal fragen, ob mir einer erklären kann, was ich ändern muss, damit die google suche über meinem pub-code läuft!?

ich glaube das ist der zugehörige code (jedenfalls in der portal_body.tpl)

Code: Alles auswählen

<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br />
<!-- END switch_top_posters --> 
<script type="text/javascript">
<!--
function checkSearch()
{
if (document.search_block.search_engine.value == 'google')
{
window.open('http://www.google.com/search?q=' + document.search_block.search_keywords.value, '_google', '');
return false;
}
else
{
return true;
}
}
//-->
</script>
<form name="search_block" method="post" action="{U_SEARCH}" onsubmit="return checkSearch()">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr> 
<th>{L_QUICK_SEARCH}</th>
</tr>
<tr> 
<td align="center" class="row1"> 
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center"><input class="post" type="text" name="search_keywords" size="15" /></td>
</tr>
<tr>
<td align="center"><select class="post" name="search_engine">
<option value="site">{L_FORUM}</option>
<option value="google">Google</option>
</select></td>
</tr>
<tr>
<td align="center"><input class="mainoption" type="submit" value="{L_SEARCH}" /><br /></td>
</tr>
</table>
<input type="hidden" name="search_fields" value="all" />
<input type="hidden" name="show_results" value="topics" />
<br />
[ <a href="{U_SEARCH}" class="gensmall">{L_ADV_SEARCH}</a> ]
</td>
</tr>
</table>
wäre über tipps oder lösungen sehr dankbar!
mfg winstown