One of the reasons CSE does not work is that two question marks are in the created link for my site.

Try the search box on : http://bt747.free.fr/content/?q=contact (not available on any other page because it does not work).

Example of created URL (part of it):
index.php?q=/adsense/cse?cx=partner-pub-XXXX:XXXX=FORID:10&ie=UTF-8&as_q=fdfdqs&sa=Search

If I replase the second question mark with &, adsense cse will be part of the keywords.

Comments

kbahey’s picture

Title: CSE does not work » CSE does not work when clean URLs are not enabled
Status: Active » Postponed (maintainer needs more info)

The module assumes that clean urls are enabled.

Can you enable it on your site and test again?

le_top’s picture

Thanks for looking into this ;-)

I can not enable it on my site - htaccess does not allow it (= the provider) and other methods have proven not to be effective.

I supposed that your module supposes that Clean URLs are available, but IMHO it should work regardless.

DonWMason’s picture

Any help would be appreciated on this issue for those of us running IIS. We cannot use Clean URLs.

robbes’s picture

I made a fix for this:
Edit modules/adsense/cse/adsense_cse.module

replace: define('ADSENSE_CSE_RESULTS_PATH', 'adsense/cse');
With: define('ADSENSE_CSE_RESULTS_PATH', url('adsense/cse'));

Search for:
Add underneath:

You can see it at work at my drupal: www.excelhet.nl

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Fixed

Just committed some code that fixes this.

robbes’s picture

Hmm, looks like i left something out:
Search for:
Add underneath:

jcnventura’s picture

You're still leaving something out...

You have to insert the code between <code></ code> tags, or else it will be filtered out by Drupal.org's input filters.

Anyway, I have already committed some code which I tested, so I would ask you to try the dev that will get built in 3-4 hours from now.

João

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

ElSanto’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I could help I tried everything but we still do not work for me, on this subject(#4) say you must change the module define('ADSENSE_CSE_RESULTS_PATH', url('adsense/cse')); , but still did not work for me, could you tell me step by step, as set up in adsense

still continues to include adsense cse will be part of the keywords

http://www.mywebsite.com/?q=adsense%2Fcse&cx=partner-pub..............

jcnventura’s picture

The suggestion in #4 wasn't the only thing used in the patch that fixed this (http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/adsense/cse...).

I would recommend that you update your site to the latest dev version and see if it starts working..

João

le_top’s picture

Version: 6.x-1.0-beta3 » 6.x-1.0

HI
I just installed the 6.x-1.0 release and the problem is still there.

The search box is added to http://bt747.free.fr/content/?q=contact again.

ElSanto’s picture

Status: Postponed (maintainer needs more info) » Active

I installed the 6.x-1.0 release and have the same problem, still continues to include adsense cse will be part of the keywords

jcnventura’s picture

Status: Active » Fixed

Hi,

There's no way around the fact that Google will include the path to the search results page when clean URLs are disabled.

The only solution is to use a path which can't be mistaken for a keyword. I have committed some code to CVS which uses the '.' path instead of 'adsense/cse'. It's simple enough that it can't be mistaken for a keyword and shouldn't affect search results, and it will make the AdSense for search start working in your case.

Of course the real solution would be one of the following:
1. That you use clean URLs (which I am sure you would, if you could), or
2. That Drupal changes the internal PHP query to the index.php file from 'q' to something else other than 'as_q', of course (the words snowball and hell come to mind).

João

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.