Back to vBulletin 3.6 Template Modifications

Google Custom Search Engine Integration [AdSense capable]
Mod Version: 1.00, by reteep

This modification is in the archives.
vB Version: 3.6.7 Rating: (1 vote - 4.00 average) Installs: 16
Released: 17 May 2007 Last Update: 17 May 2007 Downloads: 222
Not Supported Uses Plugins Template Edits  

NOTE: This works only on vBulletin 3.6.7+ as it's using one of the new navbar hooks introduced in 3.6.7.

Google Custom Search Engine Integration v1.0.0
http://www.andreas-kraus.net/blog -|- http://www.seo-vault.de

If you don't have a Google Custom Search Engine yet, get one here: https://www.google.com/coop/cse/overview (Free Google Account required)
With the GCS you have the ability to let Google just search the sites you specify, no other sites.

Place a search box and search results on your website.
Specify or prioritize the sites you want to include in searches.
Customize the look and feel to match your website.
Invite your community to contribute to the search engine.
AdSense Integration with the Custom Search Engine possible!

Instructions:

1) Download the plugin and install the plugin by importing the XML file
2) Edit the new template: navbar_GoogleCustom_Search
3) Go to the https://www.google.com/coop/cse/overview, navigate to your custom search engine control panel, click on "Code", choose the last Layout with the note "Watermark requires Javascript", now you see something like this:

Code:
<!-- Google CSE Search Box Begins  -->
  <form id="searchbox_123412344xxxx672729:-gj4xxodxro" action="http://google.com/cse">
    <input type="hidden" name="cx" value="00309xxxxxxxxx12672729:-gjxxxodxxo" />
    <input type="hidden" name="cof" value="FORID:1" />
    <input name="q" type="text" size="40" />
    <input type="submit" name="sa" value="Search" />
  </form>
  <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_00309026xxxxxx2729%3A-gj4q4od4ro"></script>
<!-- Google CSE Search Box Ends -->
Copy this code into notepad or some other text editor as you need to make a couple of changes to this code, basically you have to wrap a table around it with the standard vbulletin style classes. The changes are pretty straight forward, that's how it should look like:

Code:
<!-- Google CSE Search Box Begins -->
<form id="searchbox_123412344xxxx672729:-gj4xxodxro" action="http://google.com/cse">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Google Custom Search</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
    <input type="hidden" name="cx" value="00309xxxxxxxxx12672729:-gjxxxodxxo" />
  <input type="hidden" name="cof" value="FORID:1" />
  <div><input class="bginput" name="q" type="text" size="25" /><input type="submit" name="sa" class="button" value="Go" /></div>
  </td>
        </tr>
           </table>
  	</form>
  <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_00309026xxxxxx2729%3A-gj4q4od4ro"></script>
<!-- Google CSE Search Box Ends -->
I marked some attributes red so you don't forget them . Copy it back into the vBulletin template, save it and that's it! If you want to have your google custom search engine associated to your AdSense Account hit "Make Money" in the GCS Panel and fill in your AdSense ID.

Enjoy!

Download

This modification is archived, downloads are still allowed.

File Type: %1$s rcgs.zip (2.0 KB, 230 downloads)

Screenshots

Click image for larger version
Name:	gcs.jpg
Views:	984
Size:	25.8 KB
ID:	64426  

Similar Mods

Add-On Releases GTSearch: Google™ Custom Search Engine vBulletin 3.6 Add-ons
Integration with vBulletin vB Google Adsense for Search plus Integration vBulletin 3.7 Add-ons
Integration with vBulletin CFM: Google AdSense for Search Integration vBulletin 3.6 Add-ons
Add-On Releases vB Google Adsense for Search plus Integration vBulletin 3.6 Add-ons
Integration with vBulletin google adsense search automatic integration vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024