View Full Version : Integration with vBulletin - CFM: Google AdSense for Search Integration
Throtex
09-02-2006, 10:00 PM
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
09-03-2006, 06:45 PM
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
09-03-2006, 06:48 PM
hows this different from the one that is already made just like this ?
Throtex
09-03-2006, 06:53 PM
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
09-03-2006, 06:58 PM
This is different from any of:
https://vborg.vbsupport.ru/showthread.php?t=103222
https://vborg.vbsupport.ru/showthread.php?t=116013
or
https://vborg.vbsupport.ru/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
09-03-2006, 06:59 PM
Thanks, looks interesting.
KevNJ
09-03-2006, 08:10 PM
Just tried it on your site. I like it. Will be installing once I get home, Im currently at work and "working". hehe
Throtex
09-03-2006, 08:15 PM
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
09-03-2006, 11:57 PM
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
09-04-2006, 12:26 AM
*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
09-04-2006, 12:52 AM
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
09-04-2006, 01:15 AM
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>
<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
09-04-2006, 03:37 AM
Hakaslak - None of that coding is in my navbar. It must be the mod you installed for the google search feature itself.
voteforbird
09-04-2006, 04:00 AM
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
09-04-2006, 04:09 AM
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
09-04-2006, 06:15 AM
That IS a good point... kinda counter intuitive...
Phooey
09-04-2006, 12:36 PM
Works great, thanks! :up:
/installed
Throtex
09-04-2006, 01:26 PM
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
09-04-2006, 01:29 PM
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
09-04-2006, 03:40 PM
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
09-04-2006, 04:05 PM
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
09-04-2006, 04:18 PM
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
09-04-2006, 04:18 PM
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
09-04-2006, 04:38 PM
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
09-04-2006, 05:19 PM
Finaly works now....
But I cannot find adjust for results.Every pages 10 result...Is this by design ?
Throtex
09-04-2006, 05:58 PM
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
09-04-2006, 06:08 PM
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
09-04-2006, 06:23 PM
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
09-04-2006, 08:05 PM
Can this product perhaps be modified to have a search bar on the results page…?
Throtex
09-04-2006, 08:19 PM
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
09-04-2006, 08:30 PM
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
09-04-2006, 08:32 PM
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
09-04-2006, 09:24 PM
Is it possible to make a seperate search page and use the addon code there ?
Thanks.
Throtex
09-04-2006, 09:25 PM
I didn't check your sig ... I just know these things! :ninja: j/k
Glad I could help! :D
Throtex
09-04-2006, 09:27 PM
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: https://vborg.vbsupport.ru/showthread.php?t=124749 )
jcodemasters
09-04-2006, 09:28 PM
I will try this mod today. thanks
SaN-DeeP
09-04-2006, 09:32 PM
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: https://vborg.vbsupport.ru/showthread.php?t=124749 )
thanks I was looking to add it on a seperate page :)
bchertov
09-05-2006, 05:05 AM
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
09-06-2006, 09:21 AM
has anyone tried with 3.5 yet?
MarkoXaser
09-06-2006, 03:06 PM
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
09-06-2006, 06:23 PM
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?:
https://vborg.vbsupport.ru/showthread.php?p=1067954
Hope that helps!
MarkoXaser
09-06-2006, 07:27 PM
please write what can i do, i don't speak english very well..... :cross-eyed:
Cheertobi
09-06-2006, 07:32 PM
Make sure, that you do not paste the google code within an form!
In other words, post it after a </form> tag!
Tobi
MarkoXaser
09-07-2006, 02:50 PM
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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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&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>
<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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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
09-07-2006, 03:54 PM
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
09-07-2006, 03:58 PM
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
09-07-2006, 07:33 PM
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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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&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>
<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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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
09-30-2006, 01:48 PM
i don't uderstand where i paste the cose.....:surprised:
Please check the new revision (1.0) for information. It should help you. :)
sandsand
10-11-2006, 06:18 AM
Works great in 3.6.2, thanks. :)
Milez
12-04-2006, 09:22 AM
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
12-04-2006, 04:29 PM
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
01-05-2007, 10:29 PM
I installed this and lost functioning of my forum's "Go" button. How can I restore the functioning of the "Go" button?
Thanks.
t3nt3tion
01-09-2007, 06:47 PM
Nice hack.
pericolosogr
03-29-2007, 03:30 AM
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
03-30-2007, 08:53 AM
nobody that can imagine why this message shows up and nothin works?
pericolosogr
04-02-2007, 02:12 PM
bump (nothin else i can do...sorry...)
dxguru
04-18-2007, 07:16 PM
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
05-13-2007, 07:26 AM
The navbar code does not match in vbulletin 3.6.6
Does anybody know an updated version for the navbar?
clearchannel
05-16-2007, 09:29 PM
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
06-10-2007, 07:32 AM
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> </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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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&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>
<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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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
06-11-2007, 10:23 AM
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
06-14-2007, 04:01 AM
installed and works perfect on vB 3.6.7
LPH2004
07-28-2007, 04:01 PM
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
07-29-2007, 07:02 PM
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
07-29-2007, 07:03 PM
Any idea on how to edit it so the Who's Online isn't so ugly?
TomJames
07-31-2007, 10:04 PM
Does not seem to work on 3.6.8, any ideas?
SirHappy
08-03-2007, 10:49 AM
Hello Throtex, I would use with pleasure this code. May you adapt your instructions to the newest version 3.6.8? Thank you
|Jordan|
09-04-2007, 04:57 PM
Works in 3.6.8 for me
Kaelon
09-15-2007, 09:17 PM
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
11-01-2007, 02:59 PM
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 - https://vborg.vbsupport.ru/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
11-05-2007, 01:24 AM
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
11-12-2007, 04:22 AM
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
11-30-2007, 05:30 PM
I used the above suggestion and now it works fine for me in 3.6.8
Me too. Thank you all.
Michelle
imported_silkroad
05-24-2008, 01:40 PM
works great! thanks!
archonus
05-28-2008, 03:01 PM
work 100%, thx you
Gipskopf
07-01-2008, 09:45 PM
work not in 3.7.2 ?
I´m not find the code of installations Point 9
Can help me ?
ShackMaster
07-14-2008, 08:27 PM
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>
<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
02-08-2009, 08:50 PM
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
07-08-2009, 12:57 PM
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
11-24-2009, 01:50 PM
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
08-05-2011, 08:42 PM
I've just installed it on a 3.8.xx version. Works like charm (with a slight bit of editing on the code)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.