PDA

View Full Version : Integration with vBulletin - CFM: Google AdSense for Search Integration


Throtex
03 Sep 2006, 19:45
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:
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
And replace with:
<table cellpadding="4" cellspacing="1" border="0">
<form action="search.php?do=process" method="post">

Find the following:
</table>
</form>
</div>
<!-- / header quick search form -->
And replace with:
</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 -->

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

Throtex
03 Sep 2006, 19:45
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.

Brandon Sheley
03 Sep 2006, 19:48
hows this different from the one that is already made just like this ?

Throtex
03 Sep 2006, 19:53
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?

Throtex
03 Sep 2006, 19:58
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.

WritersBeat
03 Sep 2006, 19:59
Thanks, looks interesting.

KevNJ
03 Sep 2006, 21:10
Just tried it on your site. I like it. Will be installing once I get home, Im currently at work and "working". hehe

Throtex
03 Sep 2006, 21:15
Just tried it on your site. I like it. Will be installing once I get home, Im currently at work and "working". hehe
Thanks!

voteforbird
04 Sep 2006, 00:57
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.

KevNJ
04 Sep 2006, 01:26
*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 ?

Hakaslak
04 Sep 2006, 01:52
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?

Hakaslak
04 Sep 2006, 02:15
Hmm... I figured it out how to place the Google Search bar like Throtex did in his preview picture.

IN NAVBAR FIND:


<tr>
<td class="vbmenu_option" title="nohilite"><label for="rb_nb_sp0">
<input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />
$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1">
<input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />
$vbphrase[show_posts]</label>
</td>


ADD BELOW:


<tr>
<td class="vbmenu_option">

<!-- GOOGLE CODE GOES HERE -->

</td>
</tr>


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.

KevNJ
04 Sep 2006, 04:37
Hakaslak - None of that coding is in my navbar. It must be the mod you installed for the google search feature itself.

voteforbird
04 Sep 2006, 05:00
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

bchertov
04 Sep 2006, 05:09
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!

Hakaslak
04 Sep 2006, 07:15
That IS a good point... kinda counter intuitive...

Phooey
04 Sep 2006, 13:36
Works great, thanks! :up:


/installed

Throtex
04 Sep 2006, 14:26
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!
Not really any point I suppose ... though the ads that show up in the search results count for your AdSense payments. Plus you get one more bite at the apple to keep people on your site ... otherwise you'd send them directly to Google as soon as they run the search.

I just think it looks nice. :) I think this is a fairly recent offering by Google, so maybe more will be possible eventually. And of course, people are free to extend this in other ways.

Throtex
04 Sep 2006, 14:29
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.
I deliberately didn't add that because there are a number of other threads here on how to do that -- plus you guys figured it out anyway. ;) I just wanted to get straight to the meat of my product. :)

Hakaslak
04 Sep 2006, 16:40
Ahhh..

Well, I guess if they use the Google box, it's etter them them heading straight to Google.

My only concern is how to make sure they dont confuse the Google ebox for the real search box. >_<

Bulent Tekcan
04 Sep 2006, 17:05
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 ?

Throtex
04 Sep 2006, 17:18
Ahhh..

Well, I guess if they use the Google box, it's etter them them heading straight to Google.

My only concern is how to make sure they dont confuse the Google ebox for the real search box. >_<
Well, it can sorta work as a search box for your site if you run the Google search on your domain ... but as far as confusing the users, I think the way it looks on my site shouldn't confuse people -- though I suppose there might be better ways to eliminate confusion.

Throtex
04 Sep 2006, 17:18
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 ?
I haven't seen that before, sorry. :(

Bulent Tekcan
04 Sep 2006, 17:38
Your sites working without any problems.What is your navbar settings ? I think wrong code in my navbar.Everytime open search in forum.

Bulent Tekcan
04 Sep 2006, 18:19
Finaly works now....

But I cannot find adjust for results.Every pages 10 result...Is this by design ?

Throtex
04 Sep 2006, 18:58
Finaly works now....

But I cannot find adjust for results.Every pages 10 result...Is this by design ?
That wouldn't be affected by my code -- it should support any changes that Google allows. That said, I don't think I've seen a setting to change the number of results on a page. I agree, it would be useful to have greater or fewer results per page to conform better to individual sites.

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. :)

Throtex
04 Sep 2006, 19:08
Finaly works now....

But I cannot find adjust for results.Every pages 10 result...Is this by design ?
btw, don't forget to click install!

Throtex
04 Sep 2006, 19:23
Ahhh..

Well, I guess if they use the Google box, it's etter them them heading straight to Google.

My only concern is how to make sure they dont confuse the Google ebox for the real search box. >_<
Hakaslak (and others):

Searching on your site causes a vBulletin error that reads, in relevant part:
Please specify some words or valid user names to search on. There were no matches for those that you specified.

I think you may have used a search form integration hack from this site that is faulty. If you see this message, it should inform you that for some reason the data is being passed to vBulletin rather than to Google.

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. :)

voteforbird
04 Sep 2006, 21:05
Can this product perhaps be modified to have a search bar on the results page…?

Throtex
04 Sep 2006, 21:19
Can this product perhaps be modified to have a search bar on the results page…?
Hmm, don't see why not. Right above the search results?

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. :)

Hakaslak
04 Sep 2006, 21:30
Hakaslak (and others):

Searching on your site causes a vBulletin error that reads, in relevant part:


I think you may have used a search form integration hack from this site that is faulty. If you see this message, it should inform you that for some reason the data is being passed to vBulletin rather than to Google.

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. :)

First thing I thought was - How did he find my site. Oh yeah. My sig. Did I put a link in there? I guess I did. Then I was like... wha...? Then I thought it was working when I installed. Now I'm sad.


Thank you very much for noticing!

Hakaslak
04 Sep 2006, 21:32
OH. I get it. I thought that the form that opens up the vb search was the ajax box that comes out. Didn't really think about it much. LMAO

SaN-DeeP
04 Sep 2006, 22:24
Is it possible to make a seperate search page and use the addon code there ?

Thanks.

Throtex
04 Sep 2006, 22:25
I didn't check your sig ... I just know these things! :ninja: j/k

Glad I could help! :D

Throtex
04 Sep 2006, 22:27
Is it possible to make a seperate search page and use the addon code there ?

Thanks.
A separate page to put the search box in, or to put the results page in?

This is a separate page for the search results -- though if you don't want it integrated you can just follow Google's instructions.

As for the search box ... you can put that anywhere you want! Best is to make a template and call it using misc.php if you want it on its own page. (i.e., this function: http://www.vbulletin.org/forum/showthread.php?t=124749 )

jcodemasters
04 Sep 2006, 22:28
I will try this mod today. thanks

SaN-DeeP
04 Sep 2006, 22:32
A separate page to put the search box in, or to put the results page in?

This is a separate page for the search results -- though if you don't want it integrated you can just follow Google's instructions.

As for the search box ... you can put that anywhere you want! Best is to make a template and call it using misc.php if you want it on its own page. (i.e., this function: http://www.vbulletin.org/forum/showthread.php?t=124749 )
thanks I was looking to add it on a seperate page :)

bchertov
05 Sep 2006, 06:05
Not really any point I suppose ... though the ads that show up in the search results count for your AdSense payments. Plus you get one more bite at the apple to keep people on your site ... otherwise you'd send them directly to Google as soon as they run the search.

I just think it looks nice. :) I think this is a fairly recent offering by Google, so maybe more will be possible eventually. And of course, people are free to extend this in other ways.
Well actually now that I look at your demo, the real value is interating a the Google Search box into the VB Search dialog. The fact that the results come back inside of VB is just a nice touch! :up:

In fact this will help me design my new skin! I'll install when I move to 3.6

Thanks!
Barry

djwins
06 Sep 2006, 10:21
has anyone tried with 3.5 yet?

MarkoXaser
06 Sep 2006, 16:06
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 ?


hi, i'm an italian boy excuse me for the english..

i have the same problem.....what can i do now?

Throtex
06 Sep 2006, 19:23
hi, i'm an italian boy excuse me for the english..

i have the same problem.....what can i do now?
Did you try what it says in this thread?:
http://www.vbulletin.org/forum/showthread.php?p=1067954

Hope that helps!

MarkoXaser
06 Sep 2006, 20:27
please write what can i do, i don't speak english very well..... :cross-eyed:

Cheertobi
06 Sep 2006, 20:32
Make sure, that you do not paste the google code within an form!

In other words, post it after a </form> tag!

Tobi

MarkoXaser
07 Sep 2006, 15:50
Make sure, that you do not paste the google code within an form!

In other words, post it after a </form> tag!

Tobi


please help me again...

this is the code:
where i paste the code?

<!-- set below for skin width-->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align="left" valign="top">
<!-- begin enlighten header / logo is controlled via #logo in main CSS file -->
<div id="hdr"><div id="hdr_rs"></div><div id="logo"></div></div>
<div id="brd_outer">
<div id="brd_in">

<!-- nav buttons bar -->
<div align="center">
<div id="nav_back">
<table cellpadding="0" cellspacing="0" border="0" width="50%" align="center">
<tr>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>
<if condition="$show['member']">
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>
<td align="center" class="h_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<if condition="$show['registerbutton']">
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<td class="h_nav"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<else />
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<td id="navbar_search" class="h_nav"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<if condition="$show['member']">
<td id="usercptools" class="h_nav"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<else />
<if condition="$show['searchbuttons']">
<td class="h_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="h_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="h_nav"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="h_nav"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>

</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>
</div>
<div id="nav_btm"></div>
<!-- content table -->
<table bgcolor="#ebebe2" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output

dilbert
07 Sep 2006, 16:54
Very nice, thank you.
Two questions.
Is it possible to have the search terms highlighted? That is an important feature.

Next, I updated my site by building it from new, and importing my 3.5 to my 3.6. Google has all of my links to the old link ID. How can I get this cleared out of Google? Wait?

dilbert
07 Sep 2006, 16:58
I thought I might put this as a stand alone search in the left column I have on my site. My fear is that users will use it exclusively. The problem with that is vB updates the search info immediately, I need to wait for Google to crawl the site.
Any thoughts?

MarkoXaser
07 Sep 2006, 20:33
please help me again...

this is the code:
where i paste the code?

<!-- set below for skin width-->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align="left" valign="top">
<!-- begin enlighten header / logo is controlled via #logo in main CSS file -->
<div id="hdr"><div id="hdr_rs"></div><div id="logo"></div></div>
<div id="brd_outer">
<div id="brd_in">

<!-- nav buttons bar -->
<div align="center">
<div id="nav_back">
<table cellpadding="0" cellspacing="0" border="0" width="50%" align="center">
<tr>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>
<if condition="$show['member']">
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>
<td align="center" class="h_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<if condition="$show['registerbutton']">
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<td class="h_nav"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<td class="h_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

<else />
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<td id="navbar_search" class="h_nav"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<if condition="$show['member']">
<td id="usercptools" class="h_nav"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
<else />
<if condition="$show['searchbuttons']">
<td class="h_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="h_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="h_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="h_nav"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="h_nav"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>

</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>
</div>
<div id="nav_btm"></div>
<!-- content table -->
<table bgcolor="#ebebe2" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output


i don't uderstand where i paste the cose.....:surprised:

Throtex
30 Sep 2006, 14:48
i don't uderstand where i paste the cose.....:surprised:
Please check the new revision (1.0) for information. It should help you. :)

sandsand
11 Oct 2006, 07:18
Works great in 3.6.2, thanks. :)

Milez
04 Dec 2006, 10:22
Installed. Does anyone have any idea why vBulletin adds all of the whitespace below the search results? I have noticed a similiar problem when adding things like youtube videos to threads etc.

Thanks!

bertwrld
04 Dec 2006, 17:29
I have installed this and works nicely, but the google search only shows in the drop down to registered members. Is there a way to make it for all registered and guests, or did i do something wrong?

Thanks

BigJimTheLug
05 Jan 2007, 23:29
I installed this and lost functioning of my forum's "Go" button. How can I restore the functioning of the "Go" button?

Thanks.

t3nt3tion
09 Jan 2007, 19:47
Nice hack.

pericolosogr
29 Mar 2007, 04:30
Not Found
The requested document was not found on this server.

Web Server at xxxxxxxxxx.com


Any ideas??
`its not working and i did follow your guide step by step

i just hit search (web & website) and i get this message

pericolosogr
30 Mar 2007, 09:53
nobody that can imagine why this message shows up and nothin works?

pericolosogr
02 Apr 2007, 15:12
bump (nothin else i can do...sorry...)

dxguru
18 Apr 2007, 20:16
Cool hack, like the results integration.

But ... the results page does not keep the user logged in. Has anybody else had this problem? (and better still, can tell me how to fix it)

3dsoft
13 May 2007, 08:26
The navbar code does not match in vbulletin 3.6.6
Does anybody know an updated version for the navbar?

clearchannel
16 May 2007, 22:29
The navbar code does not match in vbulletin 3.6.6
Does anybody know an updated version for the navbar?

I fixed this in 3.67 by ignoring the first edit required in the navbar, it's already set correctly in 3.6.7 the second edit should be done as follows:
Find the following:

</table>
</div>
<!-- / header quick search form -->

and replace with:

<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 -->

VViper
10 Jun 2007, 08:32
Hi members, when i do the style mods, my page disappears and when i click on the search it opens up my whole page which i found quite amusing for a whole 2 mins.

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>

<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<td class="vbmenu_control"><a href="{$vbulletin->options['bburl']}/downloads.php?$session[sessionurl]">$vbphrase[ecdownloads_downloads]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php?do=process" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
$template_hook[navbar_search_menu]
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos1]

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos2]

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
$template_hook[navbar_quick_links_menu_pos3]

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>

Could a kind member please edit the above code so i can put it in the style and get this working. When i search for one of the strings i find it twice perhaps that is why i am having the problem.

Many kind thanks in advance.

VViper
11 Jun 2007, 11:23
Hi there great mod, is there any way that on the top of the page after they search, to have another search, as they have to go back if they want to search again.

bigcurt
14 Jun 2007, 05:01
installed and works perfect on vB 3.6.7

LPH2004
28 Jul 2007, 17:01
I added a custom Google search engine script in the header (http://www.harrypotterchat.org) so that the search results would be placed on cfmgoogle.php. This works great except Google ads do not show. Google is trying to figure out why the ads do not show in the search results page. Any thoughts?

RetroDreams
29 Jul 2007, 20:02
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!
Just set the search to open in a new window. That's what I've done.

RetroDreams
29 Jul 2007, 20:03
Any idea on how to edit it so the Who's Online isn't so ugly?

TomJames
31 Jul 2007, 23:04
Does not seem to work on 3.6.8, any ideas?

SirHappy
03 Aug 2007, 11:49
Hello Throtex, I would use with pleasure this code. May you adapt your instructions to the newest version 3.6.8? Thank you

|Jordan|
04 Sep 2007, 17:57
Works in 3.6.8 for me

Kaelon
15 Sep 2007, 22:17
I added a custom Google search engine script in the header (http://www.harrypotterchat.org) so that the search results would be placed on cfmgoogle.php. This works great except Google ads do not show. Google is trying to figure out why the ads do not show in the search results page. Any thoughts?
Not sure if anyone else figured this one out, but I haven't been able to see the ads myself, either.

induslady
01 Nov 2007, 15:59
Works in 3.6.8 for me

Hey Jordan,

Have you got blog also installed in your forum running 3.6.8?

Does the Google custom serch integate well in the search menu showing Forum search and Blog search as well.

Why I am asking is, I have an issue integrating with Blog search also listed.

Please refer - http://www.vbulletin.org/forum/showpost.php?p=1369279&postcount=5

Can you help me how to take care of the style background issues, looking at the screenshots I had provided in the above link?

Many Thanks.

mmmender
05 Nov 2007, 02:24
I fixed this in 3.67 by ignoring the first edit required in the navbar, it's already set correctly in 3.6.7 the second edit should be done as follows:
Find the following:

</table>
</div>
<!-- / header quick search form -->

and replace with:

<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 -->


Does not seem to work on 3.6.8, any ideas?

I used the above suggestion and now it works fine for me in 3.6.8

nyunyu
12 Nov 2007, 05:22
i have problem with sql database while importing xml.

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'CFM Google Search Results - Who\'s Online? (OLP)', 'online_location_process', 'if ($filename == \'cfmgoogle.php\')\r\n{\r\n$userinfo[\'activity\'] = \'Google Search Results\';\r\n}', 'cfm_google_search_results');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, November 12th 2007 @ 02:20:40 PM
Script : http://nyunyu.info/animeproject/admincp/plugin.php
Referrer : http://nyunyu.info/animeproject/admincp/plugin.php?do=productadd
IP Address : xxx.xxx.xxx.xxx
Username : nyunyu
Classname : vb_database

hipgirl
30 Nov 2007, 18:30
I used the above suggestion and now it works fine for me in 3.6.8

Me too. Thank you all.

Michelle

imported_silkroad
24 May 2008, 14:40
works great! thanks!

archonus
28 May 2008, 16:01
work 100%, thx you

Gipskopf
01 Jul 2008, 22:45
work not in 3.7.2 ?

I´m not find the code of installations Point 9

Can help me ?

ShackMaster
14 Jul 2008, 21:27
It works in 3.7.2 just fine.

The first part of the installation in #9 is already done for you now because 3.7.2 added Tag Searching.

Add the red code below in your Navbar template:

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php?do=process" method="post">

<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
</td>
</tr>
<if condition="$vboptions[threadtagging]">
<tr>
<td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
<tr>
<td class="thead">Search Google</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">$vboptions[cfmgsr_googlesearch]</td>
</tr>

$template_hook[navbar_search_menu]
</table>
</div>
<!-- / header quick search form -->
</if>

HabboForum
08 Feb 2009, 21:50
Any chance of updating this for vBulletin 3.8? We could do with this as we emptied our search index and we're not able to rebuild it without crashing MySQL.

macbooking
08 Jul 2009, 13:57
i'm running vb 3.8.2
i uploaded/imported the files from customadplacement.zip
& added the red code from above!

working ...lucky boy iam

thx @ shackmaster

Jah-Hools
24 Nov 2009, 14:50
OK

I have been running this for several years now...

I have just (must be crazy) paid to renew the ad free version..

And got this message:

To get started with GSS and to get your code, please use the following instructions to begin:

1. Go to http://google.com/sitesearch
2. Click on 'Manage my account'
3. You should see your search engine(s) listed under "Google Site Search - search engines I've created"
4. Go to the control panel to start managing your search engine and to get your code to embed within your website.

Well of course, I already have it running!

So - do I need to generate new code? Or do I just leave it and carry on (it seems to be working) Of course its impossible to get in contact with Google...

Does anyone have any tips for further customizing the look of the results? Or how to tweak settings?

OK Thanks

Panosz
05 Aug 2011, 21:42
I've just installed it on a 3.8.xx version. Works like charm (with a slight bit of editing on the code)