The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Replace search with Google Custom Search Details »» | |||||||||||||||||||||||||||||
Replace search with Google Custom Search
Developer Last Online: Dec 2018
This mod assumes you have an adsense account and are using Google Custom Search.
You want to make sure your results page is named something other than the vb default search.php, this leaves the vb option open to those who click "advanced search" Open your template navbar find PHP Code:
replace with the form line of the google supplied code example: PHP Code:
find PHP Code:
replace with the first 3 hidden input types in your google code example: PHP Code:
find PHP Code:
replace with PHP Code:
find PHP Code:
replace with PHP Code:
find PHP Code:
add this after PHP Code:
Screenshots
Show Your Support
|
Comments |
#92
|
||||
|
||||
Never mind--I figured this out and fixed it..Thanks
another issue though--is there any way to get some padding? I know this is a google issue but it there a work around? It is the left side that is just crammed right up to the edge... Thanks |
#93
|
|||
|
|||
Installed , VB 4.0.4
thank you so much ..! |
#94
|
|||
|
|||
I have everything working properly but I am having trouble with the Search Box
Whenever I type in text, it isn't visible in the box. I know its there because I highlight it and I can see it. I think it may be because my default text on my site is white. Is there any way I can change the text color just for the search box? |
#95
|
|||
|
|||
For some reason when I run the search from the main page it takes me to the results page and offers nothing but if I search again on the search page the results come up.
Both URLs are the exact same am I getting a script conflict or what? |
#96
|
||||
|
||||
i dont have google adsense and credit card
what can i do? |
#97
|
|||
|
|||
Does anyone have this working with 406 version, It doesnt work with me and I gt this message
Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/lan/public_html/domain name/google.php on line 29 Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lan/public_html/domain name/google.php on line 29 |
#98
|
||||
|
||||
Works fine with 4.0.6 (and 4.0.7).
Your error looks like you put the wrong path in your template. |
#99
|
|||
|
|||
Looks like a great mod, but I can't find most of those code lines in the navbar template (v 4.0.7)
EDIT: Also my Google code doesn't have these lines: Code:
<input type="hidden" name="cx" value="partner-pub-xxxxxxxxxxxxxxxxxxxxxxx" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="ISO-8859-1" /> Code:
<div id="cse" style="width: 100%;">Loading</div> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en'}); google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl('xxxxxxxxxxxxxxxxxxxxxxxxxx'); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script> <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /> |
#100
|
||||
|
||||
Same here! Please can you update this for 4.0.7
The code lines you give to find are no longer in there. Thanks! |
#101
|
||||
|
||||
Gents,
Look at post #36: https://vborg.vbsupport.ru/showpost....5&postcount=36 It can't be explained any more simply. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|