Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Replace search with Google Custom Search Details »
Replace search with Google Custom Search
Mod Version: 1.00, by Dave-ahfb (Designer) Dave-ahfb is offline
Developer Last Online: Dec 2018 I like it Show Printable Version Email this Page

vB Version: 4.0.0 Beta 4 Rating: (11 votes - 4.64 average) Installs: 152
Released: 01 Dec 2009 Last Update: Never Downloads: 41
Not Supported Template Edits Re-usable Code  

This mod assumes you have an adsense account and are using Google Custom Search.

You want to make sure your results page is named something other than the vb default search.php, this leaves the vb option open to those who click "advanced search"

Open your template navbar


find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


replace with the form line of the google supplied code
example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


replace with the first 3 hidden input types in your google code
example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


add this after

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Image1.jpg
Views:	6623
Size:	107.9 KB
ID:	107023  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases MARCO1 Google Custom Search MARCO1 vBulletin 3.8 Add-ons 37 11 Jan 2012 18:31

  #166  
Old 30 May 2011, 23:14
galerio's Avatar
galerio galerio is offline
 
Join Date: Feb 2011
Very useful mod.
You can use conditional to make present the google search to unregistered/not logged users and the native vb search to logged users.
Reply With Quote
  #167  
Old 24 Jun 2011, 19:50
StonePilot StonePilot is offline
 
Join Date: Jan 2007
Real name: Steve
Originally Posted by SemperFideles View Post
There's nothing to update for the most recent vBulletin version. It works fine.
Anyone have a guide for a custom template mod? I am not able to get the header information and style to look right. The custom search page works, it's just broken the style.
Reply With Quote
  #168  
Old 13 Dec 2011, 18:01
Aerialporter Aerialporter is offline
 
Join Date: Apr 2011
How do I rename the search.php without messing up any other code that references search.php?
Reply With Quote
  #169  
Old 02 Jan 2012, 06:06
alaska_av8r alaska_av8r is offline
 
Join Date: Dec 2009
I have this working on vB 4.1.8 and wonder if anyone has found out how to prevent it from showing adds above the search results. I would like to show them on the right side only because with the way it is currently set, it is extremely hard to differentiate between what is an add and what isn't.

Google has been crawling my site for over a year now so it has had time to index it pretty well, however when I search for common terms used on my site www.boatinghowto.com , it only shows one maybe two results, any ideas?

thanks
Reply With Quote
  #170  
Old 02 Apr 2012, 21:05
sspeed sspeed is offline
 
Join Date: Nov 2011
Thanks, works beautifully, especially with the additions on page 3.
Reply With Quote
  #171  
Old 28 Apr 2012, 14:26
sportsoutlaw sportsoutlaw is offline
 
Join Date: Dec 2004
just installed on 4.1.11 and works well.
__________________
Mudbog.net
Reply With Quote
  #172  
Old 09 Jul 2012, 21:23
lisa3876 lisa3876 is offline
 
Join Date: Apr 2007
This still works with vB 4.2. The specific details on page 3 were really helpful. The only small change I had to make is Google Custom Search now has new code.

So on Semper's instruction on page 3 of this thread (Step 4), I had to replace the partner-pub id code with my search engine's "Search Engine Unique ID" which can be found in the Control Panel of your Google Custom Search account. Should look something like xxxxxxxxxxxxxxxxx:xxxxxxxx

Then I had to click "Make Money" in the left column of the Google Custom Search Control panel and sync my AdSense account to my Google Custom Search account.

The Search Engine Unique ID has now replaced the partnerpub ID. But the partner-pub still works if you're using it.
__________________
We're Talking Websites!
http://www.websitebabble.com
Reply With Quote
  #173  
Old 21 Jul 2012, 14:54
insidegames insidegames is offline
 
Join Date: Jun 2010
It doesn't works for me -> here is my navbar code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

every search activity ends with

400. That’s an error.

Your client has issued a malformed or illegal request. That’s all we know.
Reply With Quote
  #174  
Old 28 Oct 2012, 01:26
CountRock CountRock is offline
 
Join Date: Jun 2011
Originally Posted by insidegames View Post
It doesn't works for me -> here is my navbar code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

every search activity ends with

400. Thatís an error.

Your client has issued a malformed or illegal request. Thatís all we know.
Exact same problem! HELP!
Reply With Quote
  #175  
Old 26 Nov 2012, 15:46
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Does this show using an iframe within the site template? Or open in a new window?
Reply With Quote
  #176  
Old 21 Jan 2013, 19:43
techbytes techbytes is offline
 
Join Date: Nov 2010
Originally Posted by Winter Sonata View Post
wampforum,

make sure to capitlaize the name of the temple like that ' GOOGLE'
Thank you! Thank you! Thank you!!!

After hour and a half of trying to figure out why I'm getting a blank page, Sonata saves me from pulling out my hair.

Also, thanks to OP for the mod. Very much appreciated.

techbytes
Reply With Quote
  #177  
Old 07 Mar 2013, 10:37
svensonsan svensonsan is offline
 
Join Date: Nov 2011
There is an update for this with the latest (v2) version of google custom search. I really like the google cse in vbulletin. It's much faster and with some styling in the css even the Google cse v2 will work in vbulletin 4.2

This short instruction will help if you use a two-page CSE as shown in the documentation at Multiple search boxes and results sections.

Already mentioned here:

1. Create the google.php file as mentioned on page 3 in this thread.
2. Create the GOOGLE template as mentioned on page 3 in this thread.

Now the new stuff.

1. headinclude template
copy the script-snippet at the bottom of your headinclude template.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will "enable" the searchform and searchresults in general in your forum.


2. navbar template
Display the search form in the navigation

Search for <form action="search.php ....
comment the normal search form

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Enter the new google search form under the global search div.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now you have the search form in your forum and yes, styling will follow.

but first edit the

3. GOOGLE Template

Should look like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Not the long and old version mentioned in this thread. Only the <gcse:search></gcse:search> is used to display the search results and the search bar.
If you only want to show the search results you can use <gcse:searchresults-only></gcse:searchresults-only>

4. additional.css template
The search form will look broken at first.
You should modify at least the following styles:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #178  
Old 07 Mar 2013, 13:08
Spika's Avatar
Spika Spika is offline
 
Join Date: Jun 2006
Real name: Rafa
Originally Posted by svensonsan View Post
There is an update for this with the latest (v2) version of google custom search. I really like the google cse in vbulletin. It's much faster and with some styling in the css even the Google cse v2 will work in vbulletin 4.2
Works Perfect!!

Thank you very much!
Reply With Quote
  #179  
Old 30 Mar 2013, 15:55
simon661 simon661 is offline
 
Join Date: Dec 2011
installed and works good for VB4.2

Installed and works for my forum, check the link to see.


http://www.railtransit-cbtc.com/CBTC...ity/forum.php?
Reply With Quote
  #180  
Old 07 May 2013, 06:00
beertruck beertruck is offline
 
Join Date: Jan 2012
SemperFideles's instructions on the 3rd page worked for my 4.2 forum. Thanks SemperFideles!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 15:55.

Layout Options | Width: Wide Color: