Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vB Google Adsense for Search plus Integration Details »
vB Google Adsense for Search plus Integration
Mod Version: 1.4, by davidw (Coder) davidw is offline
Developer Last Online: Apr 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (5 votes - 4.80 average) Installs: 57
Released: 14 Aug 2007 Last Update: 10 Nov 2007 Downloads: 688
Not Supported Uses Plugins Template Edits Additional Files  

Since the hooks came out in the navigation bar, I had been working on a new release as seen in my previous modification. I have recently pushed myself to finish this hack but I have plans for addons to it .

This is under the assumption you have your key information:
1) Your pub
(your pub ID/property information - usually starts with pub- and then some numbers)
2) Your cof usually found in your adsense code here:

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

This example is what I am using and what a lot of others are using:

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

Step 1:
Upload searchresults.php to your site's root.
Example: http://www.yoursite.com/searchresults.php

Step 2:
Install the product
Go to Admincp => Plugins & Products => Manage Products => [Add/Import Product] => Browse for product-davidw_vb_google_search.xml => Import

Step 3:
Configure your Admincp options
Go to Admincp => vBullitin Options => vBulletin Options => Find vB Google Search (Adsense) then click [Edit Settings]
Edit your Pub ID, Cof, and your desired width of the iframe for your results. I use 800 in the screenshot, but you can change this based on your needs.

Step 4:
If you are using Version 1.2 1.3, or higher you must edit (or at least check) the searchresults.php to ensure it is correct for your site.

vBAdvanced Optional
Step 5:
Go to Admincp => vBA CMPS => Default Settings => Under Options Portal Output Global Variables
Add (or make sure they are present) these varaiables:
template_hook
google_navadsearch
google_label_site
google_label_web
homeurl

Step 6:
Click on Edit Modules. Click on Search Forums (module).
Under Module Tools, find Select Action (very top) and choose Copy.

In your new (copy) of the Search Forums Module, change the name of your module to whatever you want (I chose "Search").
Under the Template Module Options heading, edit the adv_portal_ area.
Change it from search to search_google

Next,
Under Module Shell Template Options, in the Form Code box,
Change

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

To

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

Make sure this URL is the correct full path to your searchresults.php file.


LEGACY VERSION - Applies to vb_google_legacy_1_2.zip vb_google_legacy_1_3.zip(or higher) only
- Very similar to Version 1.2 1.3 and higher except instead of using a hook this will work for previous 3.6 versions (should work with any 3.6 version).
-- -- Admincp => Styles & Templates => Style Manager => Edit Templates (on your style) => Navigation / Breadcrumb Templates => navbar => find

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

Add, under $google_navadsearch
-- Admincp => Styles & Templates => Style Manager => Edit Templates (on your style) => Search Templates => search_forums => under $navbar, add $google_siteadsearch

Also, you must ensure that $google_navadsearch does not go in between <form> tags. If your navbar is a modified old-style template, you will have an extended <form> section. Make changes similar to this...
change this:

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

to

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

and change

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

to

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


Changelog
Version 1.4
- Added support for vBAdvanced module (rather than going to my hack on vBAdvanced.com)

Version 1.3
- Added missing template cache plugins from XML file (had the template cache in the file, just lost it along the way in the XML).

Version 1.2
- Allows you to put your searchresults.php file in any directory, but you must edit the path in the searchresults.php file to the location of searchresults.php.
- Removed unnecessary xml information.
- Fixed a small bug in the product
- Added search.php functionality
-- Admincp => Styles & Templates => Style Manager => Edit Templates (on your style) => Search Templates => search_forums => under $navbar, add $google_siteadsearch
- Set default values so that it is easier to configure. You must still edit these values.

Version 1.1
- Change default "site" to your site's name or put a link to a small logo there.
- Change default "web" to "Google" or put their logo in there.

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

This is their logo if you don't have it.
- Only added the ability to allow you to easily add your own logos or change the text from the admincp.

Version 1.0
- Original

Download Now

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

Screenshots

Click image for larger version

Name:	googleoptions.jpg
Views:	841
Size:	40.3 KB
ID:	68459   Click image for larger version

Name:	googleresults.jpg
Views:	2351
Size:	34.7 KB
ID:	68460   Click image for larger version

Name:	googleoptions1_1.jpg
Views:	694
Size:	54.4 KB
ID:	68523  

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
Integration with vBulletin vB Google Adsense for Search plus Integration davidw vBulletin 3.7 Add-ons 267 08 Apr 2013 19:49
Integration with vBulletin CFM: Google AdSense for Search Integration Throtex vBulletin 3.6 Add-ons 80 05 Aug 2011 21:42
Add-On Releases Google/Adsense Site Search Navbar Integration davidw vBulletin 3.6 Template Modifications 85 06 Mar 2009 16:34
Integration with vBulletin google adsense search automatic integration Delphiprogrammi vBulletin 3.6 Add-ons 28 08 May 2008 23:02

Comments
  #2  
Old 14 Aug 2007, 12:05
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
I have a manual limited version of this here: http://www.vbulletin.org/forum/showthread.php?t=128274
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #3  
Old 14 Aug 2007, 12:19
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
/me clicks install
__________________
Reply With Quote
  #4  
Old 14 Aug 2007, 14:14
alqloob alsahya alqloob alsahya is offline
 
Join Date: Dec 2006
god jop nice
Reply With Quote
  #5  
Old 14 Aug 2007, 14:52
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
Edit: Updated the product - one of the templates had a typo.
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #6  
Old 14 Aug 2007, 19:56
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Excellent mod!
__________________
Live everyday as if it was your last, because one day it just may be.
Reply With Quote
  #7  
Old 14 Aug 2007, 19:59
Chester87 Chester87 is offline
 
Join Date: Apr 2006
Verry nice mod.
Reply With Quote
  #8  
Old 14 Aug 2007, 20:44
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Real name: Josh Arcadia
If it's a 'DAVIDW' I'll install it!
Can you add the Google Logo or the option for Own logo?
__________________
. █│║▌│█│║▌║│█║▌│║║█║

Last edited by iogames; 14 Aug 2007 at 20:50.
Reply With Quote
  #9  
Old 14 Aug 2007, 20:47
United32 United32 is offline
 
Join Date: Oct 2006
Thank you very much! And for integration, wow....

MOTM, definately!
Reply With Quote
  #10  
Old 14 Aug 2007, 23:13
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
Originally Posted by iogames View Post
If it's a 'DAVIDW' I'll install it!
Can you add the Google Logo or the option for Own logo?
Where did you have in mind?

Originally Posted by United32 View Post
Thank you very much! And for integration, wow....

MOTM, definately!
Actually, I'm not even done yet. I'm going to be adding more
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #11  
Old 15 Aug 2007, 11:39
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
I have added an optional new 1.1 version that allows anyone to change the choices by the radio buttons to logos (images) if they so desire - and I have supplied the link to the default logo above.
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #12  
Old 17 Aug 2007, 22:50
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Is there a templete edit that needs to be done? I installed it and its not appearing in the dropdown search menu.
__________________
Live everyday as if it was your last, because one day it just may be.
Reply With Quote
  #13  
Old 18 Aug 2007, 18:31
JMH11788 JMH11788 is offline
 
Join Date: Jan 2005
Originally Posted by Zaiaku View Post
Is there a templete edit that needs to be done? I installed it and its not appearing in the dropdown search menu.
well the navbar hook is gone now so that is why you dont see it.
Reply With Quote
  #14  
Old 20 Aug 2007, 02:31
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
You should have
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in your navbar, if you don't - this will not work.

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

and look a couple rows above:


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

Your navbar may differ a little - this is where the hook resides:

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

If you do not have that hook in there, you must edit your navbar and place that hook in there to use this modification. If you still can't get this version to work, here is a manual but limited version - http://www.vbulletin.org/forum/showthread.php?t=128274
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #15  
Old 20 Aug 2007, 18:59
AquilaEagle AquilaEagle is offline
 
Join Date: Jun 2002
I've installed and it is appearing in my Nav Bar, but when i actually do a search I just get a blank screen?? it's not going to google, it's going to some page on my site??

Help please?
__________________


Last edited by AquilaEagle; 27 Aug 2007 at 21:12.
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 12:33.

Layout Options | Width: Wide Color: