The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Use Google Custom Search In Navbar - Step By Step Details »» | |||||||||||||||||||||||||||||||
Use Google Custom Search In Navbar - Step By Step
Developer Last Online: Jan 2016
This mod will replace vb search in navbar with google custom search.. you can still use advance search from navbar. google search provide much better result when you try to search word under 4 letters..
1. First download google.php upload in your forum root 2. Go to your AdminCP Go to Styles & Templates -> Style Manager select Style then click Create New Template rename Template to GOOGLE Paste this code in google Template : Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <title>{vb:raw vboptions.bbtitle}</title> {vb:raw headinclude} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"> <h1>{vb:raw pagetitle}</h1> </div> <h2 class="blockhead">Google Custom Search</h2> <div class="blockbody"> <div class="blockrow"> <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> </div> </div> {vb:raw footer} </body> </html> Code:
<form action="http://www.mobilephonetalk.com/google.php" id="cse-search-box"> <input type="hidden" name="cx" value="partner-pub-8038994048300561:7c8fy7cujxg" /> <input type="hidden" name="cof" value="FORID:9" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <span class="textboxcontainer"><span><input type="text" value="" name="q" class="textbox" /></span></span> <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="sa" onclick="document.getElementById('navbar_search').submit;" /> </span></span> </form> <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script> Replace partner-pub-8038994048300561:7c8fy7cujxg with your won adsense code... Download Now
Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
appsfinder, daviet, KILLERMG |
Comments |
#52
|
|||
|
|||
Hi how can i add this to the advanced search
all the best |
#53
|
|||
|
|||
instaled thanks
|
#54
|
||||
|
||||
I tried this
in VB 4.1.7 No luck?! |
#55
|
|||
|
|||
Does it work for 4.1.7?
|
#56
|
|||
|
|||
Just installed on 4.1.8 & working just fine Thanks
|
#57
|
|||
|
|||
I cannot find this (vb version 4.1.5)
3. Then Open Navigation / Breadcrumb Templates Click Collapse button click navbar Template find <div id="globalsearch" class="globalsearch"> and <ul class="navbar_advanced_search"> remove all code between this with |
#58
|
|||
|
|||
any chance of not showing ads in navbar when search is done?
Just like i have conditionals for register and login script page, how can i add this one here? Code:
<vb:if condition="THIS_SCRIPT != 'register'"> <vb:if condition="THIS_SCRIPT != 'login'"> <vb:if condition="THIS_SCRIPT != 'google'"> |
#59
|
|||
|
|||
I'm seeing little to no search results where I got plenty using the vb search...ideas?
|
#60
|
|||
|
|||
It's almost like it's not searching my site
|
#61
|
||||
|
||||
but dont work with persiton langueg
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|