04-05-2008, 10:00 PM
This will put a google search box above your standard search forum. You will need to generate your sitesearch code using AdSense's tools. Once you have your code, do the following:
ACP-> Styles & Templates -> edit the search_forums template.
Find towards the top:
$header
$navbar
Add below:
<!-- Google Search -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
Google Search
</td></tr>
<tr><td class="alt1" align="center">
GOOGLE SEARCH CODE GOES HERE
</td></tr>
</table>
<br />
<!-- /Google Search -->
Add your AdSense Search code as appropriate. The default AdSense setup only allows for black, white and grey backgrounds. To make it blend in with your site, edit the BGCOLOR attribute of the initial table call in Google's code. For example, I chose the black background:
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="0" bgcolor="#000000">
[/code]
My alt1 color is #333333, so I edited the very last bit:
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="0" bgcolor="#333333">
So that it matches the overall look of my site and blends in with the table.
Screenshot:
http://www.sevenstring.org/chris/vbo_ssasgoogle.jpg
ACP-> Styles & Templates -> edit the search_forums template.
Find towards the top:
$header
$navbar
Add below:
<!-- Google Search -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
Google Search
</td></tr>
<tr><td class="alt1" align="center">
GOOGLE SEARCH CODE GOES HERE
</td></tr>
</table>
<br />
<!-- /Google Search -->
Add your AdSense Search code as appropriate. The default AdSense setup only allows for black, white and grey backgrounds. To make it blend in with your site, edit the BGCOLOR attribute of the initial table call in Google's code. For example, I chose the black background:
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="0" bgcolor="#000000">
[/code]
My alt1 color is #333333, so I edited the very last bit:
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="0" bgcolor="#333333">
So that it matches the overall look of my site and blends in with the table.
Screenshot:
http://www.sevenstring.org/chris/vbo_ssasgoogle.jpg