![]() |
Google Search Integration v1.0
Google Search Integration
v1.0 time to install: less than 5 minutes level of difficulty: Beginner/Simple This simple hack adds a Google search engine to your site, or members can also search the entire World Wide Web. 1) Upload googlesearch.php to your forum root directory and also upload the google_logo.gif to your images directory, and take note of what the path to the images directory is. 2) Go to ADMIN CP -> STYLES & TEMPLATES -> ADD NEW TEMPLATE and create a template called googlesearch with the contents of template.googlesearch.txt, making sure to edit the necessary changes to the template to suit your forum. Change yoursite.com to the name of your site, and make sure that the path to the google_logo.gif is correct. 3) Go to Adimin CP ->Styles & Templates -> Edit Templates and open the NAVBAR template and search for the following: Code:
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr> Code:
<tr><td class="vbmenu_option"><a href="googlesearch.php">Google</a></td></tr> OPTIONAL: If you want to add more than one site to search you can add another radio button by editing the googlesearch template the following way: search for: Code:
<input type="radio" name="sitesearch" value="http://yoursite.com" checked> yoursite.com <br> Code:
<input type="radio" name="sitesearch" value="http://anothersite.com"> anothersite.com <br> PLEASE CLICK INSTALL |
Here is a screenshot. I know this is a simple hack, but I couldn't find another version of it here, so I decided to see what I could do.
|
Is there any way to add the google search box to the forum's main page (forumhome)
Great hack btw. :) |
How about making it into Google Suggest? That'd be nice. :)
|
Its a great start, im looking forward to it being expanded tho.
|
Quote:
|
All times are GMT. The time now is 10:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|