PDA

View Full Version : Google Search Integration v1.0


yoyoyoyo
06-17-2005, 10:00 PM
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:<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
BEFORE add:<tr><td class="vbmenu_option"><a href="googlesearch.php">Google</a></td></tr>

4) That's it! Go to http://yoursite.com/forum/googlesearch.php or visit the Quick Links in your NAVBAR to view your new Google Search page.

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:<input type="radio" name="sitesearch" value="http://yoursite.com" checked> yoursite.com <br>

and ADD BEFORE:<input type="radio" name="sitesearch" value="http://anothersite.com"> anothersite.com <br>

Make sure to edit the above to reflect the site you wish to add: substitute anothersite.com with the name and address of the site you want to add. You can obviously add as many sites/radio buttons as you want.

PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=83357)

yoyoyoyo
06-18-2005, 09:32 PM
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.

coffeefix
06-25-2005, 01:39 PM
Is there any way to add the google search box to the forum's main page (forumhome)


Great hack btw. :)

akanevsky
07-10-2005, 10:38 PM
How about making it into Google Suggest? That'd be nice. :)

Hornstar
08-23-2005, 10:50 AM
Its a great start, im looking forward to it being expanded tho.

yoyoyoyo
08-23-2005, 11:30 AM
Its a great start, im looking forward to it being expanded tho.Look at my sig for "MEGA SEARCH"