Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 12-28-2005, 08:27 AM
NineToez NineToez is offline
 
Join Date: Nov 2005
Location: Los Angeles, CA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-30-2005, 06:49 AM
NineToez NineToez is offline
 
Join Date: Nov 2005
Location: Los Angeles, CA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thoughts or tips at all?
Reply With Quote
  #3  
Old 12-30-2005, 12:21 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-30-2005, 04:39 PM
NineToez NineToez is offline
 
Join Date: Nov 2005
Location: Los Angeles, CA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 12-31-2005, 07:22 PM
NineToez NineToez is offline
 
Join Date: Nov 2005
Location: Los Angeles, CA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-02-2006, 05:23 PM
NineToez NineToez is offline
 
Join Date: Nov 2005
Location: Los Angeles, CA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg ToezSearch.jpg (60.3 KB, 0 views)
Reply With Quote
  #7  
Old 01-08-2006, 10:10 PM
iamnofear iamnofear is offline
 
Join Date: Jan 2005
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04537 seconds
  • Memory Usage 2,231KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete