SorentoUltimate
08-26-2009, 10:39 PM
Hello,
i have problem to show the google search results into my result page at my forum
Code for Search
<form action="{$vboptions['google_custom_search_resultsphppath']}" id="cse-search-box" target="_top">
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name=hl value="en" size="30"/>
<input type="hidden" name=hl0 value="en" size="30"/>
<input type="hidden" name=domains value="http://$vboptions[google_custom_search_sitelink]" size="30"/>
<input type="hidden" name=domains0 value="http://$vboptions[google_custom_search_sitelink]" size="30"/>
<input type="hidden" name="ie" value="UTF-8"/>
<input type="hidden" name="oe" value="UTF-8"/>
<div>
<input type="text" class="bginput" name="q" size="25" maxlength="255"/>
<input type="submit" class="button" name="en" value="$vbphrase[go]"/>
</div>
<if condition="$vbulletin->options['google_custom_search_defaultsearchtype'] == 'SEARCHTYPE_SITE'">
<input type="radio" name="sitesearch" value="http://$vboptions[google_custom_search_sitelink]" checked="checked"/>$vbphrase[google_custom_search_searchtypesite]
<input type="radio" name="sitesearch" value=""/>$vbphrase[google_custom_search_searchtypeweb]
</if>
<if condition="$vbulletin->options['google_custom_search_defaultsearchtype'] == 'SEARCHTYPE_WEB'">
<input type="radio" name="sitesearch" value="http://$vboptions[google_custom_search_sitelink]"/>$vbphrase[google_custom_search_searchtypesite]
<input type="radio" name="sitesearch" value="" checked="checked"/>$vbphrase[google_custom_search_searchtypeweb]
</if>
</td>
</tr>
</form>
Code for Showing Results :
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[google_custom_search_results]</td>
</tr>
<tr align="center">
<td class="alt1" align="center" valign="top">
<div style="padding:5px 5px 5px 5px">
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = "{$vboptions['google_custom_search_resultsframewidth']}";
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
</div>
</td>
</tr>
</table>
Can anyone help me on showing results into my page ?
Thanks
Giorgos
i have problem to show the google search results into my result page at my forum
Code for Search
<form action="{$vboptions['google_custom_search_resultsphppath']}" id="cse-search-box" target="_top">
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name=hl value="en" size="30"/>
<input type="hidden" name=hl0 value="en" size="30"/>
<input type="hidden" name=domains value="http://$vboptions[google_custom_search_sitelink]" size="30"/>
<input type="hidden" name=domains0 value="http://$vboptions[google_custom_search_sitelink]" size="30"/>
<input type="hidden" name="ie" value="UTF-8"/>
<input type="hidden" name="oe" value="UTF-8"/>
<div>
<input type="text" class="bginput" name="q" size="25" maxlength="255"/>
<input type="submit" class="button" name="en" value="$vbphrase[go]"/>
</div>
<if condition="$vbulletin->options['google_custom_search_defaultsearchtype'] == 'SEARCHTYPE_SITE'">
<input type="radio" name="sitesearch" value="http://$vboptions[google_custom_search_sitelink]" checked="checked"/>$vbphrase[google_custom_search_searchtypesite]
<input type="radio" name="sitesearch" value=""/>$vbphrase[google_custom_search_searchtypeweb]
</if>
<if condition="$vbulletin->options['google_custom_search_defaultsearchtype'] == 'SEARCHTYPE_WEB'">
<input type="radio" name="sitesearch" value="http://$vboptions[google_custom_search_sitelink]"/>$vbphrase[google_custom_search_searchtypesite]
<input type="radio" name="sitesearch" value="" checked="checked"/>$vbphrase[google_custom_search_searchtypeweb]
</if>
</td>
</tr>
</form>
Code for Showing Results :
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[google_custom_search_results]</td>
</tr>
<tr align="center">
<td class="alt1" align="center" valign="top">
<div style="padding:5px 5px 5px 5px">
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = "{$vboptions['google_custom_search_resultsframewidth']}";
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
</div>
</td>
</tr>
</table>
Can anyone help me on showing results into my page ?
Thanks
Giorgos