vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=263440 |
2 Attachment(s)
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... |
Nice work.
Doesnt work on a closed forum where you have to log in to view the site as google cant access this! |
Quote:
|
Works really nice, the template makes it even better. :)
|
Quote:
|
I got global search results, but not for the website specific only.
Did I miss something? I have removed the partner-pub-xxxxxxx:xxxxxx-xxxxxx line completely since I don't have a ad sense account Thanks. |
OK I did some research....
This method is made to work with adsense only and is spread all over the net. You simply cannot remove the line. For non adsense users just go for that: http://www.vbulletin.org/forum/showt...=241563&page=3 |
4.1.3 not work -.-
|
I am using it in my site with 4.1.3 ... try again
|
Quote:
|
i tried the script, but it doesnt give me search results.
look at: http://www.rkempo.nl/forums/forum.php help me with this issue please |
describe what you did?
|
Quote:
We are thinking about of getting an adsense account, and if not the other solution is right. Thanks for your mod. :);) |
Hi very nice, installed.
Getting following error; 400. That’s an error. Your client has issued a malformed or illegal request. That’s all we know. Using 4.1.2 version, Can you help me on this? Thanx in advance. |
this is my navbar code. where do i have to place the second code? i dont see globalsearch
|
Maybe you need to revert that template. o.o
|
i reverted the navbar page. now i did everything fine, but get a google error
Your client has issued a malformed or illegal request. |
Quote:
|
Footer is visible in my case.
|
Quote:
400. That’s an error. Your client has issued a malformed or illegal request. That’s all we know. Shame :(. |
1 Attachment(s)
Works fine on 4.1.4
BUT is there a way, how and where to change/remove the "google custom search gif" in the search field. Users THINK that its ONLY a regular google search.... I would like my own text like "Search the forum" "<input type="text" class="textbox" name="q" value="" style="border: 1px solid rgb(126, 157, 185); padding: 2px; background: url("[url]http ://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif" ) no-repeat scroll left center rgb(255, 255, 255);">" |
Error:
404. That’s an error. The requested URL /cse?cx=partner-pub-xxxxxxxxxxxxxxxxxxx was not found on this server. That’s all we know. what can i do now....? |
another error:
400. That’s an error. Your client has issued a malformed or illegal request. That’s all we know. |
did you activate AdSense for search from www.google.com/adsense ?
|
Quote:
TIA. |
in AdSense main dashboard you will find AdSense for content
AdSense for search AdSense for feed etc go to AdSense for search complete all step then do this modification |
1 Attachment(s)
Done all that now, thanks for your help but this unfortunatley does not work with 4.1.4.
All I get is this (pic). the closest I get is if I replace the pub ID with the actual snippit from google but then I have 2 search boxes. I am pretty good when it comes to installing template mods so I dont know why this isn't working for me?. |
1 Attachment(s)
Got it working, I was putting the wrong pub id in.
I was using the one in the top right hand corner when signed into adsense instead of the one in the code given :o Installed. |
While looking at your site as a demo (http://www.mobilephonetalk.com), I did a search but results on pages past the first tended to have buggy results.
I'm using Google Chrome, and there were gaps and white spaces between results but then I highlighted the text and it appeared. kinda wonky? |
the search result should be blend in with forum style, not as a google page.
cheers |
Quote:
|
Quote:
|
doesn't worked
|
Quote:
|
Anybody else have another demo? of this working, the coders website has buggy results for me on Chrome
|
2 Attachment(s)
Quote:
https://www.vbulletin.org/forum/external/2011/08/79.jpg https://www.vbulletin.org/forum/external/2011/08/79.jpg |
Another demo http://www.techkings.org/forum/
|
Quote:
Quote:
Thanks |
Quote:
followed your instructions and uploaded google.php to web root. when a test search is performed, the screen just goes blank. is running vB 4.1.3. what else needs to be done so it can work? |
Quote:
|
Works great in 4.1.5 PL1
Check my site! |
Tried your page, only blank page after search, had that same error the other day... damn...what was that again....
|
Yes, after upgrading from 4.1.4 to 5 it stopped working coz of templates upgrades or something, also got blank page.
Had to create a new template (as say in instruction above) MAke sure you have this template: https://www.vbulletin.org/forum/external/2011/08/78.jpg Large GOOGLE, if not, make a new one. then paste the code from above into that template. Thart sorted out my error... |
Quote:
what do you think is the issue with the page being blank ? followed all the directions to a "T", and [no haps] on it working |
Quote:
|
Quote:
Thanks again and come by Drewry News Network, create a free account, and stay connected, so we can stay networking =) Much appreciated! |
You can also ignore the previous post about "if you edited anything in the Google.php file" =)
|
Great Mod!
One question, I want to completely disable the search engine on my forum but when I do the google box disappears. Is there way to code it so its there if we disable the search? Thanks!!! -Jason |
Does it work for 4.1.2?
|
Quote:
|
Hi how can i add this to the advanced search
all the best |
instaled thanks
|
I tried this
in VB 4.1.7 No luck?! |
Does it work for 4.1.7?
|
Just installed on 4.1.8 & working just fine :) Thanks
|
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 |
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?
This last one not working... |
I'm seeing little to no search results where I got plenty using the vb search...ideas?
|
It's almost like it's not searching my site
|
but dont work with persiton langueg
|
Quote:
|
is this way legal?
|
Installed on VB 4.1.6 in UTF-8.
it is working very well. thanks a lot for this mod ;) |
It's not working for me: Version 4.1.10
The page loads nicely, but no search results. Our site is well indexed in Google, so that should be no problem. Site: www.skodaforum.nl > select the VB4 default style to test it. Please advise |
Quote:
Version 4.1.10 Thanks |
Don`t working in Vbulletin 4.1.9
|
thank you
|
good one. thanks a lot.
Question: How can i change color and look of a result page ? Thanks |
Doesn't seem to work with 4.1.11, got blank page when click search, but works well with 4.1.10.
|
I have stopped using them because adsense didn't sent my pin code...
|
I set this up, my header was all mangled but it did send results, the only issue I have otehr than cosmetic is that its also showing google adds on the right side. In my industry (casinos) I am not permitted to try and use adsense to make or promote casinos. I simply want the site search.
Is this possible? Thanks, |
Quote:
why??? |
Good mod, working well in 4.1.12 although I can't see any reason why it wouldn't work in any of the versions mentioned as not working above.
I did change line 8 of google.php to a normal script name rather than 'test',so:
and this allows use of sensibly named template conditionals such as:
The only other change needed, other than some layout tweaks, was to add the second header include to the template:
Also working fine with Everywhere Sidebar using the instructions for adding the sidebar to custom pages. Thanks for posting this - a real time saver in getting this working and well explained. |
Just upgraded a site from vB3 to vB4, and need a good search system, Used to use Marco's google search in vB3 but thats not working with vB4. Anyway, tried doing this but the required template must have been done away with as I can't find it. Where can I make the required edit?
Quote:
|
No, it's there, just search your templates for globalsearch and it should show up.
|
Quote:
|
Google changed the script location, this should fix it if you are getting the generic 'nothing I can do URL".
In Templates: Navbar after this
Add the following (first replace the URL and Partner ID from adsense:
If you dont see globalsearch it is because you have modified your Navbar template and need to revert it. |
I had this installed and it works great, but it breaks the "New Posts" and the search. It shows the results but no posts.
https://www.vbulletin.com/forum/show...topped-Working |
I installed this and it works, but the formatting isn't great.
|
Still working on 4.2
For search advertising don't need to follow Google tos |
nice! thank you.
|
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. |
how to manage height in google.php ?
I see large space below. |
Quote:
|
Quote:
|
1 Attachment(s)
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 |
Installed and working fine!
|
Installed and working great.
One question is the fixed width, can this be changed to liquid? |
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:
|
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 |
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? |
Quote:
|
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. |
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:(
|
Look in your "vbulletin-chrome.css" template for that class selector. :)
|
1 Attachment(s)
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: |
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).
|
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 |
I tend to use this. It works much better.
http://www.vbulletin.org/forum/showthread.php?t=266520 |
Quote:
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. |
All times are GMT. The time now is 11:49. |
Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.