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 10-10-2006 08:22 PM

That's good - don't forget to hit install :)

cuphongle 10-12-2006 06:02 PM

Beautiful, thanks

BigJimTheLug 01-05-2007 10:04 PM

I installed this hack and lost functioning in the "Go" button.
However, the advanced feature works.

Is there any way to fix the "Go" button?

Please help thanks.

davidw 01-06-2007 06:20 PM

Quote:

Originally Posted by MARKETPROFITS (Post 1151617)
I installed this hack and lost functioning in the "Go" button.
However, the advanced feature works.

Is there any way to fix the "Go" button?

Please help thanks.

To be honest, I'm not sure - Both Go buttons work fine on my site, so I'm not sure why this is limiting the function on the one Go button on yours.

BigJimTheLug 01-08-2007 07:10 PM

Hmm........alrighty.

Thanks.

Any idea where I can start looking to hopefully address the problem?

The problem is annoying because it is isolated to only the "Go" button.

Should I start in the navbar?/

davidw 01-08-2007 10:18 PM

Most likely it will reside in the navbar - do you have a test account I can look at to see how it functions on your site?

BigJimTheLug 01-10-2007 04:36 AM

Hey, you were right. The problem was in the Navbar. I fixed it!

It works great now and so does this hack, I love the increased earnings.

This is the code I used to repair it:

PHP Code:

<if condition="$show['searchbuttons']">
    <!-- 
header quick search form -->
    <
div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
        <
form action="search.php?do=process" method="post">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
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


How do I create a test account?

davidw 01-10-2007 11:37 AM

You won't have to now, since you fixed it - but if you ever do, just go to your admincp => Users => Add new user

John W Smith 01-23-2007 10:01 PM

I don't want to have the option to search my site as it just a board and the vB search does that. How would I change the "Search Site/Google" title to just "Search Google" and remove the radio button choice of "my site" and "Google"?

davidw 01-23-2007 11:52 PM

Try this

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="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>
    <
tr>
        <
form action="http://www.google.com/custom" type="hidden" method=GET name="search"><td class="thead">Search 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 type="hidden" name="hl" value="en">
            <
input type="text" class="bginput" name="q" size="25" maxlength="255" />$gobutton<br />
            </
td></form>
    </
tr>
    </
table>
</
div>
<!-- / 
header quick search form --> 



All times are GMT. The time now is 12:21 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.01124 seconds
  • Memory Usage 1,793KB
  • 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
  • (2)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