The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
CFM: Google AdSense for Search Integration Details »» | |||||||||||||||||||||||||
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: Code:
<form action="search.php?do=process" method="post"> <table cellpadding="4" cellspacing="1" border="0"> Code:
<table cellpadding="4" cellspacing="1" border="0"> <form action="search.php?do=process" method="post"> Code:
</table> </form> </div> <!-- / header quick search form --> Code:
</form> <tr> <td class="thead">Search Google</td> </tr> <tr> <td class="vbmenu_option" title="nohilite">$vboptions[cfmgsr_googlesearch]</td> </tr> </table> </div> <!-- / header quick search form --> 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 Show Your Support
|
Comments |
#22
|
|||
|
|||
Please specify some words or valid user names to search on. There were no matches for those that you specified.
Everytime I received this message.Any idea ? |
#23
|
||||
|
||||
Quote:
|
#24
|
||||
|
||||
Quote:
|
#25
|
|||
|
|||
Your sites working without any problems.What is your navbar settings ? I think wrong code in my navbar.Everytime open search in forum.
|
#26
|
|||
|
|||
Finaly works now....
But I cannot find adjust for results.Every pages 10 result...Is this by design ? |
#27
|
||||
|
||||
Quote:
My understanding is that the search result integration feature is a fairly new offering from Google, and there are still a few glitches (like the height of the results not following the settings specified in the code you have to paste into the Admin CP options. Google themselves actually provided all the integration code (for a target page) ... I just made it easier to integrate it with vBulletin. Unfortunately, there's not much I can do on my end (and without violating Google's TOS) to make certain things look better. But I do agree ... hopefully Google will keep adding features to this -- it's a very neat tool. |
#28
|
||||
|
||||
Quote:
|
#29
|
||||
|
||||
Quote:
Searching on your site causes a vBulletin error that reads, in relevant part: Quote:
The typical culprit appears to be placing the Google search form code inside of the vBulletin search form code. Hakaslak - in your page source, I see that you have a <form> tag to open the vBulletin search, then the <form> tag to open the Google search, then a </form> tag to end the Google search, followed by a </form> tag to close the vBulletin search. These should NOT overlap, and I suspect that anyone experiencing this error is doing the same thing. Move the </form> tag for vBulletin up to before the Google search form, or move the Google search form down outside the </form> tag for the vBulletin form. When you're clicking the "Google Search" button, it is actually sending data to the vBulletin search, rather than my php file. Hope this helps, but I do not intend to support the search box itself. |
#30
|
||||
|
||||
Can this product perhaps be modified to have a search bar on the results page…?
|
#31
|
||||
|
||||
Quote:
I envision this: - Admin CP option to turn on/off the search bar in results page - Admin CP text entry box to enter the necessary code (it's customized per AdSense member) for the search bar. That might work. I'm usually pretty busy (hence my unwillingness to formally offer support) (I'm currently at work supposedly "working" right now ) but I can probably get to this. Great idea, btw! If you can't wait for me to get to it, feel free to modify the template this product installs and simply add the search box code to the top of the template. I don't see why that wouldn't work. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|