vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Add-On Releases - Google/Adsense Site Search Navbar Integration (https://vborg.vbsupport.ru/showthread.php?t=128274)

davidw 02-16-2007 01:35 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1183878)
So then this would just allow a google style search on the site it's self. No need to have an ad sense account?

If using it with the changes I made in my last post - then that would be correct.

RedGTiVR6 02-16-2007 01:57 PM

sweet!

thanks 100x!

Going to go give it a try and click install!

RedGTiVR6 02-16-2007 06:47 PM

works very well!

masterross 02-22-2007 08:17 PM

Good job man!

can you help me to switch place of "Search Forums" and "Search Site / Google" ?

I want "Search Site / Google" to be above

thanks

davidw 02-22-2007 08:38 PM

If I follow you correctly, this is probably what you want...

PHP Code:

<!-- header quick search form -->
    <
div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
form action="http://www.google.com/custom" type="hidden" method=GET name="search"><td class="thead">Search Site Google</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
input type="hidden" name="client" value="pub-1234567890123456">
                <
input type="hidden" name="forid" value="1">
                <
input type="hidden" name="ie" value="ISO-8859-1">
                <
input type="hidden" name="oe" value="ISO-8859-1">
                <
input name="cof" type="hidden" value="GALT:                      ">
                <
input name="domains" type="hidden" value="www.yoursite.com">
                <
input type="hidden" name="hl" value="en">
                <
input type="text" class="bginput" name="q" size="25" maxlength="255" />$gobutton<br />
                <
input name="sitesearch" type="radio" value="www.yoursite.com" checkedYoursite.com<br />
                <
input name="sitesearch" type="radio" value=""><a href="http://www.google.com/search"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></A>
                </
td></form>
        </
tr>    
        <
tr>
            <
form action="search.php?do=process" method="post"><td class="thead">$vbphrase[search_forums]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
input type="hidden" name="do" value="process" />
                <
input type="hidden" name="quicksearch" value="1" />
                <
input type="hidden" name="childforums" value="1" />
                <
input type="hidden" name="exactname" value="1" />
                <
input type="hidden" name="s" value="$session[sessionhash]/>
                <
div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]tabindex="1004" /></div>
            </
td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
                <
label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
                &
nbsp;
                <
label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
            </
td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td></form>
        </
tr>        
        </
table>
    </
div>
    <!-- / 
header quick search form --> 


masterross 02-22-2007 09:18 PM

yes
that's it!

rate added ;)

BR

subzero06 02-23-2007 04:30 PM

This works for the 3.6.4 ?

davidw 02-23-2007 05:21 PM

Why yes, it does :)

rapsearch 02-24-2007 10:29 AM

Call me stupid but i can't find the template to edit.. which one is it?

davidw 02-24-2007 11:44 AM

Go to your admincp => Styles & Templates => Style Manager => look for your style to do this to and under All Style Options click Edit Templates => scroll down and find Navigation / Breadcrumb Templates => navbar


All times are GMT. The time now is 03:32 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
  • Page Generation 0.01216 seconds
  • Memory Usage 1,785KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete