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)

Pod 11-08-2007 03:08 AM

Installed!

The only thing, I prefer the google box under the blog search one. I changed the Navbar hook to "global_setup_complete" and its execution order to 7 in my board to acomplish it; works like a charm ;)

Zia 11-08-2007 07:07 AM

regarding ad-sense add
i got mail:
Quote:

Google AdSense Verification for www.google.com/coop
From: Google AdSense (adsense-support@google.com)
Sent:
Wed 11/07/07 9:05 PM
To:
******@msn.com
Hello,

You are receiving this email because you recently requested access to use
AdSense through www.google.com/coop. In order to use AdSense features through
www.google.com/coop, you'll need to give the site access to the ad
code and performance information in your AdSense account. To do so, please
follow this link:

https://www.google.com/adsense/a?u=2*****8&d=********

If you believe you've received this email in error, or have any questions,
we suggest you contact the owners of www.google.com/coop.


Sincerely,
The Google AdSense Team
i do approve the access for adsense

kollam003 11-08-2007 10:23 AM

installed great hack and thanks

Calash 11-08-2007 11:25 AM

Quote:

Originally Posted by Zia (Post 1378258)
regarding ad-sense add
i got mail:


i do approve the access for adsense

Yes, this is just allowing one part of Google to work with your AdSence account. Once you approve ads will show up in your search results.

Lea Verou 11-08-2007 12:27 PM

Quote:

Originally Posted by Princeton (Post 1377392)
whatever google can index is available

I was afraid so. :(

henrikhansen 11-08-2007 01:43 PM

Very nice mod, works perfectly here

May I suggest a possibilty to add

1) various versions of custom search engines
2) titles to the search engines.

NFLfbJunkie 11-08-2007 02:04 PM

I figured out my problem, which was actually my Host's technocal problem. Everything is working for me now. Princeton, excellent MOD.

Princeton 11-08-2007 02:47 PM

Quote:

Originally Posted by Junkie (Post 1378441)
I figured out my problem, which was actually my Host's technocal problem. Everything is working for me now. Princeton, excellent MOD.

I really do appreciate the updates - thank you! :up:

Darat 11-08-2007 02:53 PM

Been testing this on my devforum and the auto-template edits aren't working correctly with our custom style, is it possible to disable them and manually make edits?

Princeton 11-08-2007 02:57 PM

your styles are not up to date .. make sure $template_hook['navbar_search_menu'] exists in your search menu html

Calash 11-08-2007 05:25 PM

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

This was my problem as well. I placed the hook where it should be and now the search bar shows up without hard coding.

Thanks :)

NFLfbJunkie 11-08-2007 06:45 PM

I place a Google AdSense advertisement in the footer of my style and centered it and it shows as centered on all pages but the gtsearch template. On the search results page it is to the left. Any ideas why this is so and how to center it on this page?

Princeton 11-08-2007 07:10 PM

you cannot show adsense ads on the Google CSE page .. I believe it's against their TOS.

NFLfbJunkie 11-08-2007 07:17 PM

Is there a way for it to not show on the CSE page and only on the rest of my forum's pages?

youradhere4222 11-08-2007 07:19 PM

So we can't have AdSense and the search engine on the same forum?

MrNase 11-08-2007 07:46 PM

MOTM! ;)

The only thing is that I have problems with are German umlauts. Whenever I use a word with an umlaut, Google doesn't find the word no matter what encoding I select.

toonysnn 11-08-2007 07:50 PM

Simple and great.
/me installs

Princeton 11-08-2007 08:09 PM

Quote:

Originally Posted by Junkie (Post 1378595)
Is there a way for it to not show on the CSE page and only on the rest of my forum's pages?

conditional "THIS_SCRIPT!='gtsearch'"

Quote:

Originally Posted by youradhere4222 (Post 1378597)
So we can't have AdSense and the search engine on the same forum?

the CSE is on it's own page .. just make sure no adsense ads appear on the same page as the results - you make money by associating your CSE with your Adsense account

Princeton 11-08-2007 08:14 PM

Quote:

Originally Posted by MrNase (Post 1378611)
MOTM! ;)

The only thing is that I have problems with are German umlauts. Whenever I use a word with an umlaut, Google doesn't find the word no matter what encoding I select.

did you set your CSE "Search Engine Language" to German??

NFLfbJunkie 11-08-2007 08:30 PM

Princeton, in what template does the conditional "THIS_SCRIPT!='gtsearch'" get put, and where exactly in the template?

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?

MrNase 11-13-2007 08:36 AM

Quote:

Originally Posted by Princeton (Post 1378629)
did you set your CSE "Search Engine Language" to German??

Yes, it's set to 'German':
Attachment 72262

Well, German Umlauts suck anyway. :D I simply told my users not to use them and it's running fine. ;)


My members seem to like it but I need to promote it better:
Attachment 72263

petersweb 11-13-2007 09:32 AM

Great work. Didn't take long to get up and running - well done!

wpwood3 11-14-2007 11:01 PM

Just what I have been looking for to improve search capability on my site without straining my server. :up:

ABDALWAHID 11-16-2007 10:04 PM

Thank you Princeton my adsense money now 2X :D

NFLfbJunkie 11-17-2007 01:41 AM

How can I remove the "Can't find what you are looking for? Try xxx or our Advanced Search" phrase from the gtsearch page?

abg 11-18-2007 12:19 AM

could not get it to work for search in non-latin characters - it would return empty set of results. it does not say 'did not mach any documents', but instead just shows a page with forum header and footer and nothing in between. any ideas as to what can be wrong are greatly appreciated.

jGas 11-18-2007 11:35 AM

is it possible to enable gt search only for guests and vb search only for registered users?
thanks :D

Princeton 11-20-2007 05:16 PM

Quote:

Originally Posted by jGas (Post 1384872)
is it possible to enable gt search only for guests and vb search only for registered users?
thanks :D

yes it's possible .. you will need to edit the "IF" statement in global_start plugin to show to guests only eg. " AND $show['guests']

pgb 11-20-2007 05:21 PM

The google logo in the search drop down box is showing up as a broken image. Any ideas?

It's looking for http://www.google.com/images/powered...poweredby_.gif

Sjakie 11-21-2007 12:51 PM

Installed and thanks for this great mod. One question:
Could you provide me the code that I need to put in my header, in order to make the search option appear? I have a custom style


All times are GMT. The time now is 01:02 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.01330 seconds
  • Memory Usage 1,819KB
  • 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
  • (13)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
  • (40)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