vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Google search for 4.2.3 (https://vborg.vbsupport.ru/showthread.php?t=315119)

dknelson 10-29-2014 12:35 PM

Google search for 4.2.3
 
I have a template mod on my VBulletin 3.8.7 site and it is very popular. Due to PHP updates and etc, I am finally updating to 4.2.3.

Here is the code that I found somewhere hear years ago that is in my 3.8.7 Navbar. Does anybody have something similar for VBulletin 4?

Code:

<!-- Start Search Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<tr>
                        <td class="thead">Google Search</td>
                </tr>
<tr><td class="vbmenu_option" title="nohilite">
<input type="hidden" name="domains" value="www.example.org"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Google Search"></input>

<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.example.org"></input>
<font size="-1" color="#000000">www.example.org
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-1134398399274804"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="6437042346"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#006699;GL:1;DIV:#6C82B5;VLC:32527A;AH:center;BGC:E6E6E6;LBGC:003366;ALC:0066CC;LC:0066CC;T:000000;GFNT:66B5FF;GIMP:66B5FF;LH:50;LW:51;L:http://www.mkpitstop.com/images/directory.gif;S:http://www.mkpitstop.co.uk;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr>
</form>
<!-- END Search Google -->


mokujin 10-29-2014 12:43 PM

Try this: https://vborg.vbsupport.ru/showpost....5&postcount=30

dknelson 10-29-2014 12:53 PM

Thanks. Will look at it tonight. I assume it allows you to Google Search only the site as the other one did?

dknelson 11-04-2014 07:38 PM

OK, I installed this and got my ID from Google. I don't fully understand how it works though. There no Google box. Do I need to create that?

Never mind. I understand. Just didn't read it very well. going to try it now.

Mark.B 11-04-2014 08:07 PM

The original code you posted should pretty much work on vB4, it'll probably just need a few styling tweaks.

dknelson 11-04-2014 08:14 PM

I'll look at it again. This one works but I don't like the way it opens a new window and then the forum again if you select something.

I tried mine quickly and it returned no results. Haven't given up though.


All times are GMT. The time now is 01:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01185 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete