vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adding Google AdSense for Search to search.php (https://vborg.vbsupport.ru/showthread.php?t=103888)

NineToez 12-28-2005 08:27 AM

Adding Google AdSense for Search to search.php
 
Basically, I tried modding my own search.php file with no success in attempting to add a category specifically for Google AdSense for Search when somebody goes to advanced search. Ideally I'd like to add the category right above 'Search Forums' and just have Google's search box there all on its own. I'm pretty sure that this is a simple mod or code, but I just gave up on trying it myself since I was just getting errors.

NineToez 12-30-2005 06:49 AM

Thoughts or tips at all?

Zachery 12-30-2005 12:21 PM

Quote:

Originally Posted by NineToez
Thoughts or tips at all?

Well, for starters you don't modifiy files to get your custom code into a template :)

Second search.php has no real content and may be agasint the Google TOS for Adsense.

However, you can modify the SEARCH templates to get your desired effect.

NineToez 12-30-2005 04:39 PM

Quote:

Originally Posted by Zachery
However, you can modify the SEARCH templates to get your desired effect.

Very nice!! Just might be what I'm looking for. ;) Will advise how it came out later.

Update : success. Thanks agian Zachery for pointing me in the right direction.

NineToez 12-31-2005 07:22 PM

Having trouble getting it to look right as a "thead" on the very top of the template... it comes out wide in a fixed column width. Can any one help me insert the right code?

BTW, the link to the page is : http://forums.ninetoez.net/search.php

NineToez 01-02-2006 05:23 PM

1 Attachment(s)
Guys, can someone just help me then instead code this correctly so it looks "OEM"? I've removed it from my forums now entirely until I can fix this, however the attached image is what I'm trying to get it to look like, but the width on the Google box throws off the rest of the table. I just need someone's hand in coding the Google AdSense for search box into the template so it looks like it belonged there to begin with, and I've messed with it for days now and can't get it right, but know some of you coders can do this without blinking. Help!

I'm guessing it can't be done anyway since I tried just inserting the code so the search box sits on top of everything else, however without a table, and all it will search anyway is within the forums instead of Google. I made sure four times that I had the same code from AdSense to paste in and all it does is search within the forum instead of the internet. I have it added on the navbar and wanted it here as well too, but gave up. Thanks to anyone who read up on this.

iamnofear 01-08-2006 10:10 PM

here you are
https://vborg.vbsupport.ru/showthrea...450#post868450


All times are GMT. The time now is 12:05 AM.

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.01014 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete