Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
CFM: Google AdSense for Search Integration Details »
CFM: Google AdSense for Search Integration
Mod Version: 1.0, by Throtex (Member) Throtex is offline
Developer Last Online: May 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.1 Rating: (12 votes - 4.83 average) Installs: 143
Released: 03 Sep 2006 Last Update: 30 Sep 2006 Downloads: 746
Not Supported Uses Plugins Template Edits Additional Files  

Title: "CFM: Google Search Results"
-------------------------------------------------
Author: Sal Bezos (webmaster@carforummisfits.com)
Date of Creation: September 3, 2006
Version: 1.0 (9/30/2006)
Home: http://www.carforummisfits.com/
-------------------------------------------------

Purpose:
--------
This product for vBulletin creates a target page for providing Google Search Results within your vBulletin forums. The Google Search Results (AdSense for Search) will appear in a vBulletin page.

Unlike the previous revision of this product, you will now be able to enter code for a Google Search Box for placement in the Search drop-down menu (or anywhere else you would like to place it). Please make sure that your search box code includes a <form> tag that states something along the lines of action="http://<yourhostname>/forums/cfmgoogle.php".


Tested:
-------
This product has been tested on a vBulletin 3.6.1 installation. There is no reason why it should not work in the same manner on any 3.6.x or 3.5.x installation, but it has not and will not be tested by the author.


Included Files:
---------------
- README.txt
- cfm-live-demo.png (screenshot)
- cfmgoogle.php
- product-cfm_google_search_results.xml


Installation:
-------------
1. Upload the cfmgoogle.php file to your forum root, usually located at http://<yourhostname>/forums.

2. Register for a Google AdSense for Search account.
----a. Register for a Google AdSense account if you don't have one.
----b. Visit "http://www.google.com/adsense/".
----c. Login with your e-mail and password.
----d. Click on the "AdSense Setup" tab.
----e. Select "AdSense for Search".
----f. Configure your search box.
--------f1. Select either "Google WebSearch" or "Google WebSearch + SiteSearch" depending on whether you want users to be able to Google search your site or not. If you select "Google WebSearch + SiteSearch", enter the URL of sites you wish to be able to search.
--------f2. For Logo Type, I recomment selecting "Google Logo" and checking the "Logo above text box" option.
--------f3. For "Opening of search results page" select "Open results within my own site." Enter the URL of your cfmgoogle.php file (e.g. http://<yourhostname>/forums/cfmgoogle.php)
--------f4. Click "Continue >>".
----g. Configure the appearance of the results page, then click "Continue >>"
----h. You should now receive two sets of code from Google labeled "Your search box code" and "Your search results code".

3. In your forum's admin panel, go to Plugins & Products/Manage Products

4. Click on Add/Import Product

5. Click "Browse..." and select the "product-cfm_google_search_results.xml" product file. If this is your first installation of this product, select the "No" radio button in the "Allow Overwrite" option. If you are upgrading or reinstalling, select the "Yes" radio button. Click the "Import" button.

6. Go to vBulletin Options/vBulletin Options. Scroll through the list and select "CFM: Google Search Results".

7. In the "Google Search Box Code" option, paste the code provided by Google titled "Your search box code".

7. In the "Google Search Results Code" option, paste the code provided by Google titled "Your search results code".

8. In Styles & Templates/Style Manager go into Edit Templates for your style. Open the "Navigation / Breadcrumb Templates" template group and open the "navbar" template.

9. Find the following:

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

And replace with:

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

Find the following:

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

And replace with:

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

10. Pull up a forum page and look under your search drop-down menu for the search box.

11. Enjoy!


FAQ:
----
Q. My search results window is too tall. What's wrong with it?
A. This appears to be a bug in the Google Search Results code. If my assumption is incorrect, please let me know.

Q. Why are the colors all wonky on my search results?
A. The colors of the search results are provided by the search box. Make sure the colors in the search box code are correct.

Q. The background color of the Google search box doesn't match my page -- what can I do about it?
A. If Google's TOS allows it, play around with the settings in the code you pasted in the "Your search box code" option.


Revisions:
----------
1.0 - 09/30/2006 - Adding instructions and support for the Google search box in the search drop-down menu
0.1 - 09/03/2006 - Initial release


Support:
--------
Any questions and problems should be reported to the modification's thread on http://www.vbulletin.org. No warranty, express or implied, is granted with this software. Use is at your own risk.


License:
--------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Download Now

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

Screenshots

Click image for larger version

Name:	cfm-live-demo.png
Views:	5903
Size:	102.2 KB
ID:	53012  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • 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
Add-On Releases Google/Adsense Site Search Navbar Integration davidw vBulletin 3.6 Template Modifications 85 06 Mar 2009 16:34
Add-On Releases vB Google Adsense for Search plus Integration davidw vBulletin 3.6 Add-ons 171 27 May 2008 11:53
Integration with vBulletin google adsense search automatic integration Delphiprogrammi vBulletin 3.6 Add-ons 28 08 May 2008 23:02

Comments
  #2  
Old 03 Sep 2006, 19:45
Throtex's Avatar
Throtex Throtex is offline
 
Join Date: Apr 2005
Real name: Sal
Revision 1.0 of this product supports installation of the search box. The VB-savvy among you will quickly realize you can just take the $vboptions[cfmgsr_googlesearch] variable and place it wherever you like. The search drop-down menu integration is just an example.

--

Upgrading from 0.1 to 1.0: Just install the new product -- php file is identical to the old one.

Last edited by Throtex; 30 Sep 2006 at 15:17.
Reply With Quote
  #3  
Old 03 Sep 2006, 19:48
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
hows this different from the one that is already made just like this ?
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #4  
Old 03 Sep 2006, 19:53
Throtex's Avatar
Throtex Throtex is offline
 
Join Date: Apr 2005
Real name: Sal
Originally Posted by Loco.M
hows this different from the one that is already made just like this ?
I'm not sure which one in specific you're talking about, but this integrates the results page into your forum, rather than the search box.

What's the link to the other plugin?
Reply With Quote
  #5  
Old 03 Sep 2006, 19:58
Throtex's Avatar
Throtex Throtex is offline
 
Join Date: Apr 2005
Real name: Sal
This is different from any of:
http://www.vbulletin.org/forum/showthread.php?t=103222
http://www.vbulletin.org/forum/showthread.php?t=116013
or
http://www.vbulletin.org/forum/showthread.php?t=104832

because this integrates the RESULTS page into the forum. You will need to use a hack like one of the aforementioned in order to create an integrated search box that will link to the integrated page in this hack.
Reply With Quote
  #6  
Old 03 Sep 2006, 19:59
WritersBeat WritersBeat is offline
 
Join Date: Apr 2006
Thanks, looks interesting.
Reply With Quote
  #7  
Old 03 Sep 2006, 21:10
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Just tried it on your site. I like it. Will be installing once I get home, Im currently at work and "working". hehe
Reply With Quote
  #8  
Old 03 Sep 2006, 21:15
Throtex's Avatar
Throtex Throtex is offline
 
Join Date: Apr 2005
Real name: Sal
Originally Posted by KevNJ
Just tried it on your site. I like it. Will be installing once I get home, Im currently at work and "working". hehe
Thanks!
Reply With Quote
  #9  
Old 04 Sep 2006, 00:57
voteforbird's Avatar
voteforbird voteforbird is offline
 
Join Date: Jul 2006
Great add-on. Also, I was able to do it, but you may want to include directions about how to install the search form on the three floating DIV search boxes.
Reply With Quote
  #10  
Old 04 Sep 2006, 01:26
KevNJ KevNJ is offline
 
Join Date: Jan 2005
*clicks install*

works great. Just gotta make the drop down box more fluid to match the google search boxes.

Never used google adsense for search before... does it pay when someone does a search for something.. or after they do a search and click on a link from the results ?
Reply With Quote
  #11  
Old 04 Sep 2006, 01:52
Hakaslak's Avatar
Hakaslak Hakaslak is offline
 
Join Date: Jul 2006
Nifty idea.

Is there a way to make it so that one search box pulls up both the Google results and your own site's results?
Reply With Quote
  #12  
Old 04 Sep 2006, 02:15
Hakaslak's Avatar
Hakaslak Hakaslak is offline
 
Join Date: Jul 2006
Hmm... I figured it out how to place the Google Search bar like Throtex did in his preview picture.

IN NAVBAR FIND:


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

ADD BELOW:


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

FINISH AND CLOSE.

Dunno if this is too simple to post, but just figured someone might ask eventually.

BTW - I code in Dreamweaver cause I'm a noob and like the code formatting feature and syntax highlighting, so my 'FIND' coding might be off. If anyone wants to tell me what the original code and spacing for the navbar was, I'd be glad to change my post.

Last edited by Hakaslak; 04 Sep 2006 at 02:19.
Reply With Quote
  #13  
Old 04 Sep 2006, 04:37
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Hakaslak - None of that coding is in my navbar. It must be the mod you installed for the google search feature itself.
Reply With Quote
  #14  
Old 04 Sep 2006, 05:00
voteforbird's Avatar
voteforbird voteforbird is offline
 
Join Date: Jul 2006
Actually, if you do a Search in Templates for "search_menu" you'll see four templates. You'll want to modify FORUMDISPLAY, navbar and SHOWTHREAD to get all three relevant search boxes. Find the area with the popup DIV, copy the rows for the existing search form within it, and add another one directly below that's customized for the Google script.

You can make something like I have done at http://www.volconvo.com
Reply With Quote
  #15  
Old 04 Sep 2006, 05:09
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Real name: Barry
Please clue me in!

Ok. What's the point of having the search results in a vb page? If they click on any of the links they are outa there!
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 05:35.

Layout Options | Width: Wide Color: