vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Use Google Custom Search In Navbar - Step By Step (https://vborg.vbsupport.ru/showthread.php?t=263440)

bosken 08-03-2011 10:13 PM

Works great in 4.1.5 PL1

Check my site!

bosken 08-03-2011 10:15 PM

Tried your page, only blank page after search, had that same error the other day... damn...what was that again....

bosken 08-03-2011 10:20 PM

Yes, after upgrading from 4.1.4 to 5 it stopped working coz of templates upgrades or something, also got blank page.

Had to create a new template (as say in instruction above) MAke sure you have this template:

https://vborg.vbsupport.ru/external/2011/08/78.jpg

Large GOOGLE, if not, make a new one. then paste the code from above into that template. Thart sorted out my error...

DNN 08-03-2011 10:58 PM

Quote:

Originally Posted by bosken (Post 2228974)
Tried your page, only blank page after search, had that same error the other day... damn...what was that again....

running 4.1.3.


what do you think is the issue with the page being blank ? followed all the directions to a "T", and [no haps] on it working

DNN 08-03-2011 10:59 PM

Quote:

Originally Posted by bosken (Post 2228977)
Yes, after upgrading from 4.1.4 to 5 it stopped working coz of templates upgrades or something, also got blank page.

Had to create a new template (as say in instruction above) MAke sure you have this template:

https://vborg.vbsupport.ru/external/2011/08/78.jpg

Large GOOGLE, if not, make a new one. then paste the code from above into that template. Thart sorted out my error...

did you upload the google.php file to your root "as is" after downloading it, or, is there anything that needs to be changed in that file, in order for things to work?

DNN 08-03-2011 11:02 PM

Quote:

Originally Posted by DNN (Post 2228991)
did you upload the google.php file to your root "as is" after downloading it, or, is there anything that needs to be changed in that file, in order for things to work?

Thank you for the kind help. Did as you said. LARGE GOOGLE, and it worked! =)


Thanks again and come by Drewry News Network, create a free account, and stay connected, so we can stay networking =)

Much appreciated!

DNN 08-03-2011 11:03 PM

You can also ignore the previous post about "if you edited anything in the Google.php file" =)

trackpads 09-15-2011 12:21 AM

Great Mod!

One question, I want to completely disable the search engine on my forum but when I do the google box disappears. Is there way to code it so its there if we disable the search?

Thanks!!!

-Jason

BlueCheri 09-16-2011 04:28 PM

Does it work for 4.1.2?

rajubd 09-22-2011 10:06 AM

Quote:

Originally Posted by BlueCheri (Post 2246853)
Does it work for 4.1.2?

Yes it does

appsfinder 09-29-2011 04:17 AM

Hi how can i add this to the advanced search

all the best

ngocol 10-09-2011 12:59 PM

instaled thanks

ahobilam 10-25-2011 03:59 PM

I tried this
in VB 4.1.7
No luck?!

Gn_Snake 10-28-2011 07:31 PM

Does it work for 4.1.7?

K!nG 11-26-2011 03:33 AM

Just installed on 4.1.8 & working just fine :) Thanks

datoneer 12-01-2011 12:58 PM

I cannot find this (vb version 4.1.5)

3. Then Open Navigation / Breadcrumb Templates Click Collapse button click navbar Template find <div id="globalsearch" class="globalsearch"> and <ul class="navbar_advanced_search"> remove all code between this with

GTX2 12-04-2011 08:00 AM

any chance of not showing ads in navbar when search is done?
Just like i have conditionals for register and login script page, how can i add this one here?

Code:

<vb:if condition="THIS_SCRIPT != 'register'">
<vb:if condition="THIS_SCRIPT != 'login'">
<vb:if condition="THIS_SCRIPT != 'google'">

This last one not working...

zeus_r6 12-07-2011 08:40 PM

I'm seeing little to no search results where I got plenty using the vb search...ideas?

zeus_r6 12-07-2011 08:50 PM

It's almost like it's not searching my site

ecitizen 12-26-2011 01:07 PM

but dont work with persiton langueg

rajubd 12-26-2011 01:15 PM

Quote:

Originally Posted by zeus_r6 (Post 2275684)
I'm seeing little to no search results where I got plenty using the vb search...ideas?

That means google not indexing your site properly

alghzil 12-29-2011 02:40 PM

is this way legal?

mnms 01-04-2012 12:18 AM

Installed on VB 4.1.6 in UTF-8.
it is working very well. thanks a lot for this mod ;)

Bellinis 02-02-2012 12:43 PM

It's not working for me: Version 4.1.10

The page loads nicely, but no search results. Our site is well indexed in Google, so that should be no problem. Site: www.skodaforum.nl > select the VB4 default style to test it.

Please advise

Spika 02-10-2012 04:55 AM

Quote:

Originally Posted by Bellinis (Post 2295343)
It's not working for me: Version 4.1.10

The page loads nicely, but no search results. Our site is well indexed in Google, so that should be no problem. Site: www.skodaforum.nl > select the VB4 default style to test it.

Please advise

Same problem. Only show results If I choose in Adsense "search the web" and not my forum.
Version 4.1.10

Thanks

ejup2009 02-17-2012 10:38 PM

Don`t working in Vbulletin 4.1.9

raja811 02-25-2012 09:59 PM

thank you

tafreeh 02-27-2012 11:07 PM

good one. thanks a lot.

Question: How can i change color and look of a result page ?
Thanks

hurricane_sh 03-11-2012 07:03 AM

Doesn't seem to work with 4.1.11, got blank page when click search, but works well with 4.1.10.

rajubd 03-11-2012 10:29 PM

I have stopped using them because adsense didn't sent my pin code...

ctrenks 04-23-2012 08:34 PM

I set this up, my header was all mangled but it did send results, the only issue I have otehr than cosmetic is that its also showing google adds on the right side. In my industry (casinos) I am not permitted to try and use adsense to make or promote casinos. I simply want the site search.

Is this possible?

Thanks,

farazfaraz 04-28-2012 06:49 AM

Quote:

3. Then Open Navigation / Breadcrumb Templates Click Collapse button click navbar Template find <div id="globalsearch" class="globalsearch"> and <ul class="navbar_advanced_search"> remove all code between this with
i can't find in my Templates!!

why???

hqarrse 05-10-2012 06:21 PM

Good mod, working well in 4.1.12 although I can't see any reason why it wouldn't work in any of the versions mentioned as not working above.

I did change line 8 of google.php to a normal script name rather than 'test',so:

Code:

define('THIS_SCRIPT', 'google');
and this allows use of sensibly named template conditionals such as:

Code:

<vb:if condition="THIS_SCRIPT != 'google'">
The only other change needed, other than some layout tweaks, was to add the second header include to the template:

Code:

{vb:raw headinclude_bottom}
Also working fine with Everywhere Sidebar using the instructions for adding the sidebar to custom pages.

Thanks for posting this - a real time saver in getting this working and well explained.

Big-Pete 05-13-2012 05:24 PM

Just upgraded a site from vB3 to vB4, and need a good search system, Used to use Marco's google search in vB3 but thats not working with vB4. Anyway, tried doing this but the required template must have been done away with as I can't find it. Where can I make the required edit?


Quote:

3. Then Open Navigation / Breadcrumb Templates Click Collapse button click navbar Template find <div id="globalsearch" class="globalsearch"> and <ul class="navbar_advanced_search"> remove all code between this with

Mellow 05-18-2012 11:16 AM

No, it's there, just search your templates for globalsearch and it should show up.

RoG Aftermath 05-27-2012 05:05 PM

Quote:

Originally Posted by Mellow (Post 2330399)
No, it's there, just search your templates for globalsearch and it should show up.

Nope its not there, i searched for it and all it did was bring up 2 templates both having to deal with google chrome, nothing to do with the Navbar, they definitely did away with it, there is a similiar code in the Navbar template that says search, but when i tried to replace that it does not allow it. 4.2.0

trackpads 05-27-2012 11:11 PM

Google changed the script location, this should fix it if you are getting the generic 'nothing I can do URL".

In Templates: Navbar after this
Code:

<div id="globalsearch" class="globalsearch">
Add the following (first replace the URL and Partner ID from adsense:
Code:

<form action="http://www.yourdomain.com/yourforumurl/google.php" id="cse-search-box">
    <input type="hidden" name="cx" value="partner-pub-xxxxxxxxxxxxxxxx:xxxxxxxxxx" />
    <input type="hidden" name="cof" value="FORID:9" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
            <span class="textboxcontainer"><span><input type="text" value="" name="q" class="textbox" /></span></span>
            <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="sa" onclick="document.getElementById('navbar_search').submit;" />  </span></span>
        </form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>

If you dont see globalsearch it is because you have modified your Navbar template and need to revert it.

Jakobi 05-29-2012 11:20 PM

I had this installed and it works great, but it breaks the "New Posts" and the search. It shows the results but no posts.

https://www.vbulletin.com/forum/show...topped-Working

dougdirac 08-15-2012 02:52 PM

I installed this and it works, but the formatting isn't great.

rajubd 08-17-2012 03:03 PM

Still working on 4.2
For search advertising don't need to follow Google tos


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.01576 seconds
  • Memory Usage 1,818KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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