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 06-17-2011 01:51 PM

1 Attachment(s)
Works fine on 4.1.4

BUT is there a way, how and where to change/remove the "google custom search gif" in the search field. Users THINK that its ONLY a regular google search.... I would like my own text like "Search the forum"

"<input type="text" class="textbox" name="q" value="" style="border: 1px solid rgb(126, 157, 185); padding: 2px; background: url(&quot;[url]http ://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif&quot; ) no-repeat scroll left center rgb(255, 255, 255);">"

ARSamo 06-21-2011 03:14 PM

Error:

404. That’s an error.
The requested URL /cse?cx=partner-pub-xxxxxxxxxxxxxxxxxxx
was not found on this server. That’s all we know.

what can i do now....?

ARSamo 06-21-2011 03:48 PM

another error:

400. That’s an error.
Your client has issued a malformed or illegal request. That’s all we know.

rajubd 06-21-2011 04:17 PM

did you activate AdSense for search from www.google.com/adsense ?

synseal 06-22-2011 11:06 AM

Quote:

Originally Posted by rajubd (Post 2210942)
did you activate AdSense for search from www.google.com/adsense ?

How do you do this, this is not mentioned in the modification, if you mean do I have adsense set up then yes I do, but I wasn't aware that you had to activate AdSense for search?.

TIA.

rajubd 06-22-2011 06:48 PM

in AdSense main dashboard you will find AdSense for content
AdSense for search
AdSense for feed etc

go to AdSense for search complete all step then do this modification

synseal 06-23-2011 08:05 PM

1 Attachment(s)
Done all that now, thanks for your help but this unfortunatley does not work with 4.1.4.

All I get is this (pic).

the closest I get is if I replace the pub ID with the actual snippit from google but then I have 2 search boxes.

I am pretty good when it comes to installing template mods so I dont know why this isn't working for me?.

synseal 07-05-2011 01:29 PM

1 Attachment(s)
Got it working, I was putting the wrong pub id in.

I was using the one in the top right hand corner when signed into adsense instead of the one in the code given :o

Installed.

Crotan 07-06-2011 07:49 PM

While looking at your site as a demo (http://www.mobilephonetalk.com), I did a search but results on pages past the first tended to have buggy results.

I'm using Google Chrome, and there were gaps and white spaces between results but then I highlighted the text and it appeared. kinda wonky?

radiofranky 07-06-2011 10:45 PM

the search result should be blend in with forum style, not as a google page.

cheers


All times are GMT. The time now is 05:54 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.03709 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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