Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Replace search with google search engine ( no google account required) Details »»
Replace search with google search engine ( no google account required)
Version: 1.1, by Golzarion Golzarion is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.1.10 Rating:
Released: 04-29-2010 Last Update: Never Installs: 67
Template Edits
Translations  
No support by the author.

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 :
HTML Code:
<form action="search.php?{vb:raw session.sessionurl}do=process" method="post"
2. find :
HTML Code:
<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 :

Code:
<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 ****


.

Download Now

File Type: zip PERSIAN- VERSION-search with google search engine.zip (1.1 KB, 197 views)

Screenshots

File Type: gif google1.gif (3.2 KB, 0 views)
File Type: gif google2.gif (30.1 KB, 0 views)
File Type: gif persian-version.gif (2.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-17-2010, 07:27 AM
salvador21 salvador21 is offline
 
Join Date: Mar 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod!

I don't suppose it's possible to make this search two sites instead of just one?
Reply With Quote
  #23  
Old 09-24-2010, 09:37 PM
mohammad6006's Avatar
mohammad6006 mohammad6006 is offline
 
Join Date: May 2008
Location: IRAN (Tabriz)
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

سلام دوست من ميتوني كاري كني با گوگل كاستوم سرچ كار كنه؟

can i use google custom search code without adsens acount?
Reply With Quote
  #24  
Old 10-05-2010, 11:58 AM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 !

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

Quote:
Installed successfully on a 4.0.6. board!
This mod will work on all versions of vBulletin 4 .x !
Quote:
Great mod!
Thank you .
Quote:
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 !!
Quote:
سلام دوست من ميتوني كاري كني با گوگل كاستوم سرچ كار كنه؟
سلام
خوب این هک برای اینه که بدون ساختن اکانت در گوگل بشه ازش استفاده کرد
وگرنه کافیه به جای کدهایی که من نوشتم کد کاستوم سرچ گوگل یا حتی ادسنس رو بذارید !
یه پلاگین مشابه با همین کارآیی که شما می خواهی در همین بخش فکر کنم هست . باید جستجو کنید

Translation of above : .
Quote:
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 .
Reply With Quote
  #25  
Old 10-16-2010, 12:59 PM
EconomicVoice EconomicVoice is offline
 
Join Date: Aug 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 10-27-2010, 10:47 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 10-30-2010, 03:46 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RobbieZ View Post
Need it to stop opening in a new window.
Remove this :
Code:
target="_blank"
from the codes.
Quote:
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 ....
Reply With Quote
  #28  
Old 11-01-2010, 04:25 PM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #29  
Old 04-03-2011, 10:49 PM
Bram H Bram H is offline
 
Join Date: Jul 2007
Location: The Netherlands
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 05-14-2011, 03:28 AM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 05-17-2011, 03:54 AM
amogh amogh is offline
 
Join Date: Mar 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05326 seconds
  • Memory Usage 2,359KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_html
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete