Back to vBulletin 3.7 Template Modifications

Add Google AdSense Sitesearch to the standard forum search page.
Mod Version: 1.00, by ()

This modification is in the archives.
vB Version: 3.7.0 RC 2 Rating: (2 votes - 5.00 average) Installs: 32
Released: 06 Apr 2008 Last Update: Never Downloads: 112
Not Supported Template Edits Re-usable Code Translations  

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:

Code:
$header
$navbar
Add below:

Code:
<!-- 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:

Code:
<!-- 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:

Code:
<!-- 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:

Download

This modification is archived, downloads are still allowed.

File Type: %1$s sitesearch_google.txt (1.4 KB, 116 downloads)

Screenshots

Click image for larger version
Name:	vbo_ssasgoogle.jpg
Views:	428
Size:	148.7 KB
ID:	78333  

Similar Mods

Integration with vBulletin Google/Adsense Site Search Integrated into Advanced Search Page vBulletin 3.6 Template Modifications
Google FREE (Non Adsense) Search in Search Drop Down vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024