The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google Search In Navbar Details »» | |||||||||||||||||||||||||||||
/*================================================= =====================*\
|| ################################################## ################## || || # Google Search In Navbar || # Version 1.00 || # Author: Warden || # This mod may only be used from vbulletin.org || # DO NOT display this mod on any other modification site without my permission || # You can alter this code and re-display it here on vbulletin.org || ################################################## ################## || \*================================================ ======================*/ Description: This mod adds the Google Search to your navbar. Install: Less than 1 minute. Instructions: 1. Go to www.google.com/adsense and click on Adsense For Search and create a Search for your site. All you will need is your PUB ID and your site URL. 2. Find: Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> Code:
<!-- Google Search ------------------> <td class="alt2"> <DIV ALIGN=RIGHT> <form action="YOUR SITE HERE" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-PUB ID HERE:afpnnc-ej87" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="text" name="q" size="50" /> <input type="submit" name="sa" value="Search" /> </div> </form> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script> </DIV> </td> <!-- Google Search ------------------> Code:
<div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 800; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> Enter your PUB ID where it says "PUB ID HERE" in the code (red code). Click Save and all Done. Refresh. If you want support, click INSTALL! Download Now
Screenshots
Show Your Support
|
Comments |
#22
|
||||
|
||||
Yes. Place this code in any page you want the results to show in:
Code:
<div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 800; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs |
#23
|
||||
|
||||
Is possible to have that google search without having adsense account?
|
#24
|
||||
|
||||
No. You need to have your own PUB ID.
|
#25
|
|||
|
|||
Great
thank u |
#26
|
|||
|
|||
Hello,
Thanks for sharing ! I have a little problem, when I put ? ? it doesn't works |
#27
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=213169 |
#28
|
||||
|
||||
It does not recognize those symbols. you will have to use the english version.
|
#29
|
|||
|
|||
very nice
|
#30
|
||||
|
||||
Thank you. If you want support, click install.
|
#31
|
|||
|
|||
Hi,
Where did you (warden-b-) posted the search results in your forum? I want it on the forum home page, but without the forums visible, just the nav bar and the users info. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|