vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - CFM: Google AdSense for Search Integration (https://vborg.vbsupport.ru/showthread.php?t=125721)

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:

Code:

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

Code:

      <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

Quote:

Originally Posted by bchertov
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

Quote:

Originally Posted by voteforbird
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. >_<


All times are GMT. The time now is 03:22 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.01131 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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