markbolyard
10-13-2006, 10:00 PM
This modification will add Google Adsense search to your forum search page.
Edit your search_forums template.
Find:
$navbar
Add after:
<!-- / Begin Google Search Box -->
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="tcat" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<strong>Google Search</strong>
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#E4E7F5">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="hidden" name="domains" value="www.cpanelpros.com"></input>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="64" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<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>
<input type="radio" name="sitesearch" value="www.monksdiner.com" id="ss1"></input>
<label for="ss1" title="Search www.monksdiner.com"><font size="-1" color="#000000">www.cpanelpros.com</font></label></td>
</tr>
</table>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="pub-9556872839910172"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="7470933137"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#22229C;GL:1;DIV:#D1D1E1;VLC:22229C;AH:center ;BGC:E4E7F5;LBGC:E4E7F5;ALC:22229C;LC:22229C;T:000 000;GFNT:22229C;GIMP:22229C;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</center>
</td>
</tr>
</table>
*Remember to change the following to your text:
"pub-xxxxxxxxxxxxxxxx" (Change to your adsense publisher ID)
"##########" (Change to your adsense channel ID)
"www.monksdiner.com" (Change to your forum url. There are two instances)
SAVE.
The search results will open in a new window.
Please click install if you make this modification. Thank you.
Edit your search_forums template.
Find:
$navbar
Add after:
<!-- / Begin Google Search Box -->
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="tcat" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<strong>Google Search</strong>
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#E4E7F5">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="hidden" name="domains" value="www.cpanelpros.com"></input>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="64" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<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>
<input type="radio" name="sitesearch" value="www.monksdiner.com" id="ss1"></input>
<label for="ss1" title="Search www.monksdiner.com"><font size="-1" color="#000000">www.cpanelpros.com</font></label></td>
</tr>
</table>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="pub-9556872839910172"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="7470933137"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#22229C;GL:1;DIV:#D1D1E1;VLC:22229C;AH:center ;BGC:E4E7F5;LBGC:E4E7F5;ALC:22229C;LC:22229C;T:000 000;GFNT:22229C;GIMP:22229C;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</center>
</td>
</tr>
</table>
*Remember to change the following to your text:
"pub-xxxxxxxxxxxxxxxx" (Change to your adsense publisher ID)
"##########" (Change to your adsense channel ID)
"www.monksdiner.com" (Change to your forum url. There are two instances)
SAVE.
The search results will open in a new window.
Please click install if you make this modification. Thank you.