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 |
#82
|
|||
|
|||
nice! thank you.
|
#83
|
|||
|
|||
thank you it works on vbulletin 4.2.0.
i haven't got google adsense code but i made it from google webmaster tools. thanks. |
#84
|
|||
|
|||
how to manage height in google.php ?
I see large space below. |
#85
|
||||
|
||||
This is an excellent question. I have the same problem. The page below is super long with no content. Also, I wish the Google search ads were just down the side. Not or the top and down the side.
|
#86
|
|||
|
|||
You must use advanced search features and get the code. But with google search v1 code you cannot create a template, for v2 you cannot config for the search links to open in the same windows.
|
#87
|
||||
|
||||
Please
Does anyone know why my box goes lower than the others? My input.box height is 17 px when other I see is 23 px I don?t find where I can change this (google ads or VB) Please help. Attachment 143910 |
#88
|
|||
|
|||
Installed and working fine!
|
#89
|
|||
|
|||
Installed and working great.
One question is the fixed width, can this be changed to liquid? |
#90
|
|||
|
|||
Installed but ever search is showing 404 Google image error on-site...
Edit: didn't see the solution a few posts above, will try that. Edit: Still getting the error, followed by blank space. Quote:
|
#91
|
|||
|
|||
i believe it is better to go to google custom search service and make your own customized search tool and then grab the html code and place it anywhere you like on your vb...
as easy as that Cheers |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|