vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adding Google AdSense for Search to search.php (https://vborg.vbsupport.ru/showthread.php?t=104832)

iamnofear 01-08-2006 10:00 PM

Adding Google AdSense for Search to search.php
 
Basically, I modding my own search.php file 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 and easy to hack

download : text file attachment
Demo : The image attachment
thanked to hoang0501
Have fun

PS: Don't forget to click install

Daniel 01-08-2006 10:44 PM

Nice, well done.

XtremeOffroad 01-08-2006 11:23 PM

Worked great, thanks for sharing.

Clicks Install

peterska2 01-08-2006 11:34 PM

Erm......... wouldn't this then be using your google adsense code on everyone elses site? I think so, and that's against the TOS.

Citizen 01-09-2006 01:02 AM

Quote:

Originally Posted by peterska2
Erm......... wouldn't this then be using your google adsense code on everyone elses site? I think so, and that's against the TOS.

I think you're supposed to put in your own code while you're editing it :)

NineToez 01-09-2006 02:25 AM

LOL! That screenshot is my forums! Thanks for the help and the hack!

* clicks install *

NineToez 09-15-2006 06:49 AM

FYI, I just upgraded to 3.6.1 (yes, I realize that this was originally posted in 3.5.x) and this hack isn't working with the new upgrade.

BigJimTheLug 12-29-2006 06:22 PM

Is there a way to make all menus in the "advanced search page" to show appear by default collapsed, but to not collapse the Google Search?

If so, can someone enumerate? Thanks.


All times are GMT. The time now is 12:26 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.02287 seconds
  • Memory Usage 1,718KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (8)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