![]() |
Use Google Custom Search In Navbar - Step By Step
1 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 : Code:
{vb:stylevar htmldoctype} Code:
<form action="http://www.mobilephonetalk.com/google.php" id="cse-search-box"> 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: https://vborg.vbsupport.ru/showthrea...=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
Code:
<div id="navbar" class="navbar"> |
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. Thats an error. The requested URL /cse?cx=partner-pub-xxxxxxxxxxxxxxxxxxx was not found on this server. Thats 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
|
1 Attachment(s)
Quote:
https://vborg.vbsupport.ru/external/2011/08/79.jpg https://vborg.vbsupport.ru/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:
|
All times are GMT. The time now is 06:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|