vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - MARCO1 Google Custom Search (https://vborg.vbsupport.ru/showthread.php?t=213169)

SorentoUltimate 08-23-2009 05:14 PM

Hello Marco,

nice mod,

how i can do when press go button to open in a different tab or page???

Thanks In Advance
Giorgos

kootta 09-06-2009 11:25 PM

it seems great mod i'll install it and see
thanks

korny 09-19-2009 04:00 AM

Where can you add your google info for adsense search? Is this just a free search that doesn't tie into you adsense account?

mortezax 09-19-2009 05:08 PM

not work for UTF8!!!
Please HELP

ravenfaust 12-10-2009 04:24 PM

not working if you have a custom theme :(

Infopro 01-18-2010 03:00 PM

Quote:

Originally Posted by korny (Post 1887377)
Where can you add your google info for adsense search? Is this just a free search that doesn't tie into you adsense account?

I've just been looking at this as well. If you generate your code for adsense searchbox and then compare it to this template (MARCO1_Google) you should be able to edit for your needs I would think.

I've cleaned/formatted the template and added some class(es) to the menu item to fit in a bit more with existing menu. MARCO1 doesn't explain what the additional URL lines are for in it, so I removed those and added my adsense code instead:
(I did leave my domain in the vboptions setting)

Code:

<!-- Google Search By MARCO1 Code-coder.com -->
<tr>
  <td class="vbmenu_option"  title="nohilite">
          <form action="http://www.google.com/cse" id="cse-search-box" rel="nofollow"  target="_new">
  <div>
    <input type="hidden" name="cx" value="partner-pub-mygoogleadsence#here" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" class="bginput"  name="q" size="20" />
    <input type="submit"  class="button"  name="sa" value="$vbphrase[go]" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script> </td>
</tr>
  <!-- Google Search By MARCO1 Code-coder.com -->

Seems to work just fine so far.

Thanks MARCO1

Infopro 01-18-2010 03:05 PM

Quote:

Originally Posted by ravenfaust (Post 1928438)
not working if you have a custom theme :(

Works fine in a custom theme, but that custom theme still needs the hooks that are in the default theme navmenu. If you've customized this navbar item for the header quick search form, make sure you have put the hook at the bottom of the list as in the default themes navbar template:
$template_hook[navbar_search_menu]

Infopro 01-18-2010 07:58 PM

BTW, I've also changed the plugin code for cache to get it to work.

this does not work:

Code:

                        $globaltemplates = array_merge($globaltemplates, array('MARCO1 Google Custom Search'));
this does:

Code:

if (is_array($globaltemplates)){
$globaltemplates[] = 'MARCO1_Google';
}


lvivport 01-18-2010 09:14 PM

it does not work with russian language

Erica1977 01-18-2010 10:08 PM

Thanks awesome Hack.


All times are GMT. The time now is 04:31 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.01213 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)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