Closed (works as designed)
Project:
Google AdSense integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2008 at 22:47 UTC
Updated:
17 Sep 2008 at 17:23 UTC
Currently adsense for search seems to only work from a block and not a page.
If the search module is enabled, it is possible to use that search page instead of the block.
What I would like is to have an option to use the search page be overridden by this module so that it can be used to create the search query.
Comments
Comment #1
jcnventuraI'm having some trouble understanding the problem..
I know for a fact that 'Adsense for search' works in pages and not only in blocks.
When you write about a 'search module' is this the Drupal core search module?
Which search page should be overriden by this module?? Can you better describe what you want?
João
Comment #2
naheemsays commentedI may be totally off base, but this is how I understand it:
1. The core search module provides hooks for search, an implementation, a search page and search block.
2. This module provides search blocks (and apparently pages - I could not find this. how?)
What I want is that the ?q=search page be used to provide the adsense for search, not the core search, (and potentially any hooks to use internal search t also use adsense for search - no idea how involved that would be)
I think I can have something similar to what i want by disabling core search, adding a ?q=search page with a block in the content area to mimic the core search page (buit without the additional options - not needed by me), though i have not tested this.
Comment #3
jcnventuraI could explain here how to add the search box to pages, but I think the best way is to advise you to download tomorrow's dev build and follow the instructions in the 'Help and Instructions' found in the 'Settings' tab.
As to replacing the core search module, that's totally against the design.. Both of the core search module and this module!
It would be possible to add the AdSense for Search to the core search page, but the resulting form would be totally against Google's TOS.
I think the solution in your last paragraph may be your best choice.
João
Comment #4
Sam308 commentedSee the following page I wrote:
"How to Set up Google AdSense for Search without using a custom module"
http://drupal.org/node/274441
Sam