vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Add Google adsense search to your navbar dropdown (https://vborg.vbsupport.ru/showthread.php?t=103222)

hydrazug 08-08-2006 06:02 PM

I emailed google asking them as I've heard you're not supposed to touch their code that you copy paste:

"Thanks for taking the time to clarify AdSense program policies with us. I
understand that you have altered the layout of the search boxes on
http://scatteredgenius.com/cmps_index.php and http://evilzug.com/stuff/ in
order to fit the page, however as you mentioned, these modifications are
against our policies. Please change the boxes back to their original form.

While we understand the importance of maintaining the quality of your site
and your site's user experience, modification of the AdSense for search
code is a violation of the AdSense program policies. We appreciate your
cooperation and understanding in this matter."

Gotta be careful!

For what it's worth, I pulled the search boxes I put up because they didn't fit into my layouts; I've not found a way to fit them in again/yet.

GoTTi 08-10-2006 04:31 AM

got this working for 3.6?

wildo69 08-13-2006 06:29 AM

not sure why, but when i use this in vb 3.6 (RC3) when i enter a search phrase and press enter (or click search) is runs the vb search.php and not the google search. it used to work fine in 3.5

any ideas?

GoTTi 08-14-2006 03:00 PM

i cant get it to show in 3.6

mattyk72 08-17-2006 01:04 AM

Quote:

Originally Posted by wildo69
not sure why, but when i use this in vb 3.6 (RC3) when i enter a search phrase and press enter (or click search) is runs the vb search.php and not the google search. it used to work fine in 3.5

any ideas?

I'm having the same problem. Any fixes yet?

ericgtr 08-17-2006 02:45 AM

This was written for 3.5.x judging from the posts in here it's not working in 3.6, I will work on an update and bump this when I have something.

GoTTi 08-21-2006 05:10 PM

hows the 3.6 version coming?

ericgtr 08-21-2006 05:30 PM

I just tested it with 3.6 and it works the same. The only thing is in order to make it fit you will have to either tweak the vB code or the Google code due to the size of the input box. Keep in mind that Google's TOS states that you cannot change their code, what you do is up to you on that one. Maybe I will look at changing the default search size to match up, this would be a better alternative.

GoTTi 08-22-2006 09:43 AM

hmm when i tested it i got nothing that worked.

the search for google came up, but it would only search as if it was part of the forum.

GoTTi 09-02-2006 04:22 PM

got a fix on this yet?

KevNJ 09-04-2006 12:29 AM

*clicks install for vb3.6*

getting the wide google search but i can live with it. hopefully there will be a fix though.

curriertech 09-07-2006 03:39 PM

/me clicks installl & waits for 3.6 version.

Nathan2006 09-12-2006 08:09 AM

Thank you ericgtr

Works and looks great! :)

Install

Fusion2 10-31-2006 12:57 AM

I followed this process and it added the Google Search to my vBulletin Search.

But, when i try to search by it, it goes immediately to my vBulletin Search Forums and gives me an error message of "Please specify some words or valid user names to search on. There were no matches for those that you specified."

What could be the issue?

Guest210212002 10-31-2006 10:53 PM

/me clicks install

Ohh-Dutch 11-06-2006 08:30 PM

To Fix The Width, Or Make It Look Cleaner, Search For This Code Directly Above The Google Code...
Code:

<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
Replace It With This:
Code:

<input type="text" class="bginput" name="query" size="33" />&nbsp;$gobutton<br />
Tell Me If That Makes It Look Cleaner To You... If Not Change The
Code:

size="33"
To Whatever Number Fits... Mine Worked With Me Adding A
Code:

<br>
After The Google Image...

Heres A Screenie....

Ohh-Dutch 11-09-2006 04:15 AM

Is That Working For Anybody?

neverknow1 11-16-2006 04:38 AM

Quote:

I followed this process and it added the Google Search to my vBulletin Search.

But, when i try to search by it, it goes immediately to my vBulletin Search Forums and gives me an error message of "Please specify some words or valid user names to search on. There were no matches for those that you specified."

What could be the issue?
yes.. it is a good one... i have just installed.. thank you for the hack...

:up: :cool:

BUT ... I do face the same problem with Fusion 2... refer to my attachment.

:confused:

Ohh-Dutch 11-16-2006 04:16 PM

Quote:

Originally Posted by neverknow1 (Post 1118395)
yes.. it is a good one... i have just installed.. thank you for the hack...

:up: :cool:

BUT ... I do face the same problem with Fusion 2... refer to my attachment.

:confused:



Try Going Through The Steps Again, it Works Fine For Me....

fabianv 12-10-2006 02:18 AM

Yeah same problem as everyone with the mod searching the site and not google.. pity..

oh well.. *bump* :P

Lee A Burnett 12-10-2006 07:22 PM

Use the 3.6 template mod: https://vborg.vbsupport.ru/showthrea...ghlight=google

It has to do with the <form action> call outside the dropdown table. The 3.6 mod resolves that issue.

BigJimTheLug 01-05-2007 10:27 PM

I used this mod and now my forum's "GO" button on the search menu does not work. How can I fix it? Thanks.

josepheseven 08-18-2007 11:32 AM

very nice and simple.....was looking for this ..... saw some others but they are really messy !

thanks for this ;)

works fine on 3.6.8

Quote:

Originally Posted by Ohh-Dutch (Post 1111984)
To Fix The Width, Or Make It Look Cleaner, Search For This Code Directly Above The Google Code...
Code:

<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
Replace It With This:
Code:

<input type="text" class="bginput" name="query" size="33" />&nbsp;$gobutton<br />
Tell Me If That Makes It Look Cleaner To You... If Not Change The
Code:

size="33"
To Whatever Number Fits... Mine Worked With Me Adding A
Code:

<br>
After The Google Image...

Heres A Screenie....

thanks to u also....this helped me to make it better :)

alishahbazi 01-13-2009 12:01 PM

hi
whats this code for add search in menu for vbulletin 3.8.0 ???


All times are GMT. The time now is 03:33 PM.

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.01439 seconds
  • Memory Usage 1,767KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete