![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
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 :
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
Note : Replace http://www.mobilephonetalk.com with your won website name Replace partner-pub-8038994048300561:7c8fy7cujxg with your won adsense code... Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
|
#91
|
||||
|
||||
Recently found that the results page that is generated does not use the additional.css, so certain elements of my theme were broken.
How can I make sure the additional.css is loaded with this?
__________________
Tesla Motors Club - Enthusiasts & Owners Forum No members have liked this post.
|
#92
|
||||
|
||||
__________________
No members have liked this post.
|
#93
|
||||
|
||||
I delete the events, as it negatively affects the speed of loading pages.
Удаляю этот мод, так как он отрицательно влияет на скорость загрузки страниц. I should add that the site specified by the author mobilephonetalk contains unwanted software and locks the browser Google Chrome. Добавлю, что сайт указанный автором mobilephonetalk содержит нежелательное ПО и блокируется браузером Google Chrome.
__________________
Forum of Accountants and Auditors in Russia Glbyh.Ru Do what you can, with what you have, where you are. No members have liked this post.
Last edited by SWSUSA; 27 Jul 2015 at 20:28. |
#94
|
||||
|
||||
I would have liked to keep the VBForum search box as well as this, but when I have them both, one bumps the other into the lower navigation bar.
4.2.3 Any suggestions? It probably has to do with editing the "globalsearch" class (width; 180px; ), but I sure can't figure out how to find it ![]()
__________________
![]() No members have liked this post.
Last edited by rcull; 12 Mar 2017 at 04:53. |
#95
|
||||
|
||||
Look in your "vbulletin-chrome.css" template for that class selector.
![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#96
|
|||
|
|||
Thanks for your help! I found it and played with it, but it must not be what I need
![]() In case you or someone else can point me in the right direction, I would like the two searches to line up side by side in the navbar. I have attached an image how one search box is displacing the second one to the line below it:
__________________
![]() No members have liked this post.
|
#97
|
||||
|
||||
What I do is place Google code in navbar (choose your position), leaving vBulletin's search completely intact. In this way I have two search engines with Google one preferred (GCS input form is 100% wide).
No members have liked this post.
|
#98
|
|||
|
|||
Alan,
That sounds like what I am trying to do. I am just having difficulty figuring out how. When I place it in the navbar, it displaces the VB search as shown in the image. I tried placing it in the navbar_tabs template, but it displaced the last tab to the lower level. I have seen it done on other sites, but I am not figuring it out. And I have been searching all over. All I find is the same replace default search. Thanks
__________________
![]() No members have liked this post.
|
#99
|
|||
|
|||
I tend to use this. It works much better.
http://www.vbulletin.org/forum/showthread.php?t=266520 No members have liked this post.
|
#100
|
||||
|
||||
Originally Posted by rcull
Sorry, I wasn't completely clear what I did on my site.![]()
I placed code in navbar template, so it isn't in navbar per se, but it is visible in every page. You can see it here: https://slobodni.net This way I still have completely working vB search and Google Custom Search available everywhere. I didn't want to change or modify vB search. And also I wanted to "force" users to use GCS as much as it is possible. No members have liked this post.
|
#101
|
|||
|
|||
Anyone intalled it on a https site?
I don't want the 'you enter in a insecure page' warning just for the search button No members have liked this post.
|
#102
|
||||
|
||||
Google is almost completely on https. You can remove http before all links in your code, this will call https links (or, if you prefer, specify https links directly)
No members have liked this post.
|
#103
|
|||
|
|||
I'll try to remove http, changing to https was not working (the search yields a blank page) Tnaks for your reply
No members have liked this post.
|
#104
|
||||
|
||||
Originally Posted by Delfi_r
Do first what other friends say to you. If you do not have luck, read here![]()
http://www.vbulletin.org/forum/showthread.php?t=324908 I had problem after changing to https, before all was ok. What ever I asked here I could not manage to find why it does not work for me. So with the above thread you will see how I manage at least to make it work. Hope it will help a bit to put you in the right path. ![]() No members have liked this post.
|
#105
|
|||
|
|||
NO! I just installed this code then I have updated to https and it is not working!
![]() Updating to http to https does not solve the problems. I do not want to run it as Stratis' solve fixes it. I want only the original search box in the upper right. It would be nice if this mod would be updated for https as virtually all forums will now need the update.
__________________
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 14:27.