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)
-   -   Add-On Releases - GTSearch: Google? Custom Search Engine (https://vborg.vbsupport.ru/showthread.php?t=162072)

testebr 11-09-2007 04:18 AM

Where I can see an live example?

Darat 11-09-2007 09:22 AM

Quote:

Originally Posted by Princeton (Post 1378473)
your styles are not up to date .. make sure $template_hook['navbar_search_menu'] exists in your search menu html

I'm confused - I've just checked my templates and this doesn't appear in any template in the default style which is completely unmodified and I'm running a fully patched 3.6.8 version of vBulletin?

(ETA)

Just found it - no idea why but a cut and paste from the post didn't find it ("$template_hook[navbar_search_menu]") - Just checked and it is in my styles.

Calash 11-09-2007 11:14 AM

Quote:

Originally Posted by Junkie (Post 1378638)
Princeton, in what template does the conditional "THIS_SCRIPT!='gtsearch'" get put, and where exactly in the template?


I just did this last night. What you will have to do is wrap your adsence code like this

Code:

<if condition="THIS_SCRIPT!='gtsearch'">
<center>
<script type="text/javascript"><!--
google_ad_client = "*********";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_ad_channel = "";
google_color_border = "cdcddc";
google_color_bg = "cdcddc";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>


This will make it display on all pages except the search result page (gtsearch). If you are using an ad management plugin you will have to find out how they insert the info into the template and edit at that point to include the <if> statement.

NFLfbJunkie 11-09-2007 12:03 PM

Thanks Calash. That fixed it for me.

PoetJA-1975 11-09-2007 03:43 PM

Quote:

Originally Posted by yoyoyoyo (Post 1377656)
I think it is a good hack, and it is well-written, and I appreciate Princeton sharing it. I don't understand why you are so critical of it.

Apologies = I didn't mean to sound so critical of the hack AND yes - I certainly appreciate it when coders, designers, etc... shares their lovely works with the vB Community ;)

Jacquii.

NFLfbJunkie 11-09-2007 04:44 PM

When the search results come up, the "Can't find what you are looking for? Try football or our Advanced Search." phrase shows above the search results. Why does 'Advanced Search' show when that takes the user to the forum search area and doesn't allow for additional web page searching?

djr 11-10-2007 01:11 AM

Excellent hack Princeton. Flawless install and was up and running in 'bout 5 minutes. Thanks so much for sharing this.

jGas 11-10-2007 09:33 AM

that's great!! installed and nominated for motm.. adsense for search never worked on my site..let's see if it works with this wonderful hack! ;)

jGas 11-10-2007 11:12 AM

i have disabled the search for guests..is it possibile to enable GTSearch for them? when i'm logged out there isn't the "search" link so guests can't see gtsearch!

skariko 11-10-2007 04:13 PM

I follow the instruction but it doesn't shows up on my navbar.

Can I add it manually?


All times are GMT. The time now is 03:53 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.02274 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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