I'm having a problem with the code for the Google Adsense Search Sidebox.
In the README-INSTALL.txt, it says:
EDIT includes/templates/YOUR_TEMPLATE/sideboxes/tpl_google_adsense_search.php
with your code from google.
$content .= 'PUT HERE YOUR JAVASCRIPT FOR GOOGLE ADSENSE SEARCH';
replace the following lines:
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<td> </td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
<td>
with
<input type="text" name="q" size="20" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<td> </td>
<td nowrap="nowrap">
<table>
<tr>
<td align="left">
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
</tr><tr>
<td align="left">
But the first set of lines DOES NOT EXIST!!! And there are two different sets of code for the Google Adsence Search (From Google):
1. Search Box Code:
Code:
<form action="https://www.perrymultimediaandcompany.com/index.php?main_page=" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-****************:***********" />
<input type="hidden" name="cof" value="FORID:11" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="20" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
2. Search Results Code:
Code:
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
What am I doing wrong? I've not been able to find a forum specifically for this Mod.