vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Google search of your site in navbar (https://vborg.vbsupport.ru/showthread.php?t=90630)

Spinball 04-09-2005 10:00 PM

Google search of your site in navbar
 
Just a quickie to add a Google site search in your navbar search drop-down menu.
*Should* work in all versions of vB3
Edit the navbar template.
Find:
HTML Code:

                </table>
        </div>
        <!-- / header quick search form -->

Above this, add:
HTML Code:

                <tr>
                        <td class="thead">Google Site Search</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <FORM method=GET action="http://www.google.co.uk/search" target="_blank"><input type=hidden name=ie value=UTF-8><input type=hidden name=oe value=UTF-8>
                                <input type="text" class="bginput" name="q" size="20" />$gobutton<input type=hidden name=sitesearch value="YOUR DOMAIN"><input type=hidden name=domains value="YOUR DOMAIN"><br />
                        </form>
                        </td>
                </tr>

...replacing YOUR DOMAIN with the domain of your site e.g. www.avforums.com in our case.
I wanted to have the Google search open in a new window so I added the
HTML Code:

target="_blank"
and you should remove it if you want the Google search results to open in the same window.
More details of the Google search and an explanation of the 'UTF-8' items at
http://www.google.co.uk/searchcode.html
And please press Install.

Spinball 07-03-2005 06:41 AM

Screen grab attached.

Beermonster 07-03-2005 07:59 AM

I wonder where you got that idea from?

Spinball 07-03-2005 08:14 AM

Quote:

Originally Posted by Beermonster
I wonder where you got that idea from?

My apologies if you feel I 'stole' that idea. Didn't mean to offend anyone.
I was prompted to write the hack by this thread on my forums posted On April 4th:
http://www.avforums.com/forums/showthread.php?t=202093
after which I wrote the hack, shared it with the vB community on April 10th here and posted details on the AV Forums on April 12th here:
http://www.avforums.com/forums/showthread.php?t=203557
Bearing in mind the date of your 3.5 hack is July, I'm wondering who copied who?
Or more likely, it's just a case of great minds thinking alike.

atxhorn 08-12-2005 05:07 PM

if one of these hacks..would work...

atxhorn 08-12-2005 05:08 PM

hehe...j/k....

TRANCEBUDHA 08-18-2005 08:00 PM

great mod but instead of adding just a google search, i added a adsense google search, not a bad idea. :rolleyes:

joseduddy 12-28-2005 03:05 AM

Installed your mod for Google in search menu and is wirking wonderful, running Vb 3.5.2

take a look
http://www.dollchatter.com

Thanks for a nice ad on!!!! Jose Duddy
http://www.joseduddy.com


All times are GMT. The time now is 12:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00951 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete