Log in

View Full Version : Integration with vBulletin - Replace search with google search engine ( no google account required)


Golzarion
04-29-2010, 10:00 PM
This mod replace the navbar search with google search engine (No adsense account is required !) just use the google search engine to search inside your forum !!

Install :

1. go to : admin cp =>style manager=>>all style options =>>Navigation/Bread crumb templates => Navbar
in "navbar " template :
search for :
<form action="search.php?{vb:raw session.sessionurl}do=process" method="post"
2. find :
<form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
<vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
</form>3. Replace it with :

<form method="get" action="http://www.google.com/search" target="_blank" class="navbar_search">
<input type="hidden" name="sitesearch" value="forums.animparadise.com" id="pn"/>
<span class="textboxcontainer"><span><input type="text" value="" name="q" class="textbox" tabindex="99"/></span></span>
<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
<input type="hidden" name="domains" value="forums.animparadise.com"/>
</form>4. Remember to change the url : " forums.animparadise.com " with your own forum address !!!!

5. Then save the template. and enjoy your new search with google engine !


demo : http://forum.golzarion.com

It works perfect on cms and blog too ..
Also Persian Translation is attached. on so the screen shots for both english and persian version.

update :works perfect on vb version : 4.1.10

**** Please click Installed if you use this mod . thx ****


.

Golzarion
04-30-2010, 12:23 PM
To clear the screenshots :

This is for English version : 116496

And This is for Persian version :

116497

Persian language users can use both ( persian or English ) versions of this mod .

I hope you like the mod..

BaziCenter
04-30-2010, 01:11 PM
thanks man

Brandon Sheley
04-30-2010, 02:49 PM
can you link us to a demo search page that doesn't require users to login

thanks

Golzarion
04-30-2010, 04:07 PM
can you link us to a demo search page that doesn't require users to login

thanks
just test demo on my forum : http://forum.golzarion.com/forum.php

( for example search the word " golzarion " )or see the screenshots.


The main idea is :

You can always search inside the site by google search engine :

in the google box just type this :

site:YOURDOMAIN.COM keyword1+keyword2....Then google search engine searches just inside your site ... without any accounts needed !

Am I right ?

Golzarion
04-30-2010, 04:23 PM
I specially created this mod for Iraninan users ! because of " Trade restriction against Iranian ordinary people " ! my Iranian friends can not use Google Adsence custom search !
I personally do not have any google Adsence accounts ...
The idea of using google search by using " site:yourdomain.com" can make it easier for this country...

RobbieZ
05-02-2010, 06:45 AM
Can this be customized for 3.8.x ??

Golzarion
05-02-2010, 04:38 PM
Can this be customized for 3.8.x ??
Yes,I will put the 3.8 version on the first post soon .

tarzan22
05-03-2010, 05:50 AM
Very good, and to put our ID google?

thanks

Golzarion
05-03-2010, 05:29 PM
Very good, and to put our ID google?

thanks
I am happy you like it ...

There is no need to have a google adsence ID !!!NO Google adsence ID required !! It works similar to google adsence custom search ... but no Adsence ID is required !

bayXzor
05-03-2010, 09:44 PM
thanks man

cloferba
05-03-2010, 10:56 PM
i want to replace vbulletin search with google search engine...but using my adsense configuration

any way to implement this to earn money with google searches using our adsense account?

Golzarion
05-03-2010, 11:50 PM
i want to replace vbulletin search with google search engine...but using my adsense configuration

any way to implement this to earn money with google searches using our adsense account?
Well, for google Adsence users already a hack was created :https://vborg.vbsupport.ru/showthread.php?t=229247
I have no experience on Adsence ...

cloferba
05-05-2010, 12:50 AM
thank you very much! :D

Alphaforums.com
05-29-2010, 11:33 PM
Awesome. Period.

Frondy
05-31-2010, 11:59 AM
It works, but it works for unregistered members too.
How to solve this?

Golzarion
05-31-2010, 04:54 PM
It works, but it works for unregistered members too.
How to solve this?
Well, This is not a problem at all ! I believe it is a good ability that it works for all visitors! ( even guests )

When you use this type of search ... the google search engine searches inside your forum .. and NO Pressure on your server !
In the real fact it is a big conserve on your server resources !

Let all the visitors search your forum but by using Google search engine Not your server !

I think that's a good point of this hack,.:cool:

Golzarion
05-31-2010, 04:56 PM
thanks man

thank you very much! :D

Awesome. Period.

Thanks. You are welcome .

RobbieZ
07-27-2010, 08:40 PM
do you need the www before the site name and forums.php afterwards?

It would be great if the results were shown withing the forum too.. :D

Bram H
08-14-2010, 08:06 PM
How can I have overlooked this mod! Sometimes life is so easy with a simple modification. Thanks a million!! Finally the annoying vb search can be ditched :)

Installed successfully on a 4.0.6. board!

Marked as installed and highly rated!

salvador21
09-17-2010, 07:27 AM
Great mod!

I don't suppose it's possible to make this search two sites instead of just one?

mohammad6006
09-24-2010, 09:37 PM
سلام دوست من ميتوني كاري كني با گوگل كاستوم سرچ كار كنه؟

can i use google custom search code without adsens acount?

Golzarion
10-05-2010, 11:58 AM
do you need the www before the site name and forums.php afterwards?It depends on your forums URL setting ! for example my forum url address is "http://forum.golzarion.com " with out www. I had set it in this address some years ago ... so when I set the address in this mod " http://forum.golzarion.com " it searches entire my forum !

Marked as installed and highly rated!Thank you very much.

Installed successfully on a 4.0.6. board!This mod will work on all versions of vBulletin 4 .x !
Great mod!Thank you .
I don't suppose it's possible to make this search two sites instead of just one?It depends on your domain or subdomains ! for example if your site address is : http://golzarion.com " and your forum address is " http://golzarion.com/forum/"
when you set this modification on the main domain address it will search both ( your site and your forum )
It depends on your boards url addresses !!
سلام دوست من ميتوني كاري كني با گوگل كاستوم سرچ كار كنه؟سلام
خوب این هک برای اینه که بدون ساختن اکانت در گوگل بشه ازش استفاده کرد
وگرنه کافیه به جای کدهایی که من نوشتم کد کاستوم سرچ گوگل یا حتی ادسنس رو بذارید !
یه پلاگین مشابه با همین کارآیی که شما می خواهی در همین بخش فکر کنم هست . باید جستجو کنید

Translation of above : .

can i use google custom search code without adsens acount?Surely this modification dosen't need any google account at all !!
If you want to use google custom search or google adsense there is an other hack in vBulletin.org that you can use that one .

EconomicVoice
10-16-2010, 12:59 PM
One thing you can do is set up a Google search account and choose the results option 'open in a new window' and digit length 20. Then upload your logo with target URL to your site too (choose display at top).
Then get the code and insert/replace exactly as stated at the top of this page.
When the basic search is used you get a new tab/window with your logo at the top linking back to your site and all matching results within your site as well as adverts.
At the top there is a button that allows the user to then widen the search to the web if they want.
If they wish to use advanced search it uses the normal vB one.

RobbieZ
10-27-2010, 10:47 AM
Need it to stop opening in a new window.

Doesnt work on my forum

The code has since changed therefore your template is now useless.

Golzarion
10-30-2010, 03:46 PM
Need it to stop opening in a new window.


Remove this :
target="_blank"
from the codes.
The code has since changed therefore your template is now useless.Of course the search codes will work. but you are right the template has been changed on 4.0.9 .... I will take a look at it this week ....

RobbieZ
11-01-2010, 04:25 PM
Thanks, Is it possible to have the code for an open search like here on vb.org?

I only ask as the advanced search and normal search is widely use plus the live search works well and another search engine input would be great :)

Any chance of this being in a forum block?

Bram H
04-03-2011, 10:49 PM
Cant get this to work anymore. When i follow the steps in the opening post the box shows up under the navbar instead of inside it :)

Running 4.1.2

hiker
05-14-2011, 03:28 AM
Works great, exactly as planned. Using vb 4.0.2

How can I insert code that would exclude certain forums from the search? For example, I'd like my forum id 59 to be excluded from this search. What and where can I put the code?

Thanks.

EDIT: Nevermind, it's in Forum Management to disable a forum from being Searchable.

amogh
05-17-2011, 03:54 AM
Hello,

Could you please guide me to how do I install this mod in VB 4.1.3

Somehow I am struggling to do it. Your help will be highly appreciated

Thanks

xony
05-28-2011, 10:42 PM
very very thanks friend

ARSamo
05-29-2011, 03:22 PM
works fine........
but how we can add this as side bar block...?
and search results show in same block (which were increased in height when clicked)..?

Golzarion
05-30-2011, 01:43 PM
Hello,

Could you please guide me to how do I install this mod in VB 4.1.3

Somehow I am struggling to do it. Your help will be highly appreciated

Thanks
It works on all versions of vb4 . I have installed it on my own 4.1.3 board : http://forum.golzarion.com/forum.php
The installation is the same ! just replace the codes as described on the first post ...
It just need the navbar template edit . for details please read the installation instructions on the thread : https://vborg.vbsupport.ru/showthread.php?t=241563

Golzarion
05-30-2011, 01:46 PM
works fine........
but how we can add this as side bar block...?
and search results show in same block (which were increased in height when clicked)..?
So I just do not have enough time to add these features right now ...
I created this mod with the same design as vbulletin default search .

Golzarion
05-30-2011, 01:50 PM
very very thanks friend
You are welcome . I am happy you like it . :)

DNN
06-26-2011, 01:15 AM
It looks confusing

adwade
07-15-2011, 05:50 AM
Yes,I will put the 3.8 version on the first post soon .

Was this ever done, and posted somewhere else perhaps??

thespi
02-12-2012, 10:36 AM
Need to get a template for this so you dont actually leave the forum

Delfi_r
02-22-2013, 11:05 AM
Need to get a template for this so you dont actually leave the forum

Is there an explanation how to do it? I would install on my forum if I can find the right way

bing11
03-03-2013, 05:05 PM
very nice
thank you

zaimbat
03-16-2013, 01:06 PM
Works great, thank you!

Ary Braga
07-13-2013, 06:58 AM
please. anyone can explain?

in this code:
<input type="hidden" name="sitesearch" value="forums.animparadise.com" id="pn"/>

what is id="pn" ???

thetechgenius
07-10-2014, 07:34 PM
I like this a lot! Installed.

However, since I have a custom style installed, I had to change the code a bit, so it doesn't break my template. My search box code is in my "Header" template.

jrw422dx
05-21-2016, 08:31 PM
Works Great. Now is there a way to replace that advanced search with a similar edit?

jrw422dx
06-04-2016, 06:02 PM
<font size="3">Is there a way to have the google search results to open in a VB page instead of it opening in a new tab and not be taken to Googles website? </font>