vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Non-Adsense Google site & web search for your navbar! (https://vborg.vbsupport.ru/showthread.php?t=211548)

zefyx 04-17-2009 10:00 PM

Non-Adsense Google site & web search for your navbar!
 
1 Attachment(s)
https://vborg.vbsupport.ru/external/2015/08/1.jpg

This was requested, I shall share it with the rest of you all as well.

Find:
Code:

                <tr>
                        <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
                </tr>

Add below:
Code:

        <tr>
            <td class="thead">Search Site / Google</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
                <form action="http://www.google.com/search" method="get" name="search">
                    <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 type="hidden" name="cof" value="http://www.yoursite.com/forum/images/autosportnc-yellow/logo.gif;S:http://www.yoursite.com;FORID:1"/>
                    <input name="domains" type="hidden" value="yoursite.com"/>
                    <input type="hidden" name="hl" value="en"/>
                    <input type="text" class="bginput" name="q" size="25" maxlength="255"/>
                    <input type="submit" class="button" value="Go" /><br />
                    <input name="sitesearch" type="radio" value="http://www.yoursite.com/forum" checked="checked"/> YourSite.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>
                  </form>
            </td>
                </tr>
               
                </table>
        </div>

Change all instances of yoursite.com to your forum's URL & Enjoy!

Hornstar 04-18-2009 02:30 PM

Thanks, since I dont have an adsense account this would be quite nice to use now. thanks.

Jasem 04-18-2009 07:06 PM

Excellent work, this code will be installed in my forum

Thank you

zefyx 04-19-2009 08:16 PM

Don't forget to click installed.

Seems that I was half-awake making this & it produced quite a few validation errors, I have updated the code for 100% XHTML validation.

tarzan22 05-03-2009 11:17 AM

adsense account and searching from there?

Greetings

zefyx 05-06-2009 05:24 PM

Quote:

Originally Posted by tarzan22 (Post 1803527)
adsense account and searching from there?

Greetings

I'm not sure I follow. This search bar is for those who don't wish to force ad's on their users.

kronnos 05-11-2009 10:36 AM

How would I make the changes to have the search results displayed on my website not google?

Phobos49 05-11-2009 03:25 PM

What does this string do???

HTML Code:

<input type="hidden" name="cof" value="http://www.yoursite.com/forum/images/autosportnc-yellow/logo.gif

multiplex 09-01-2009 09:30 PM

i get a defect when the post thank you hack is already installed

the "find all thanked posts" link in the search navbar is removed and put below the navbar, everything below it is then stretched

SorentoUltimate 09-02-2009 08:44 AM

Quote:

Originally Posted by kronnos (Post 1808487)
How would I make the changes to have the search results displayed on my website not google?

i'm also interesting on that,

do you found any way to do that


All times are GMT. The time now is 07:54 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.01038 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete