To the all powerful and amazing AdSense module team and any of its wise followers.

I Love the AdSense module! It makes showing ads on my site very simple, thank you so much for making such a user friendly module with lots of examples and detailed instructions throughout the user interface. Your module rocks!

I have been using the blocks feature for a few months and have recently just added the CSE Search option and had a question about the results page.

When someone does a search using the CSE Search option on my site the URL that results is mysite/adsense/cse?cx=partner-pub-123456789101112%... I was wondering how I can change the “adsense” part of the URL to something else… I don’t want the word “ad” or “adsense” shown anywhere on my site. Is there a way to change the word “adsense” to something like “custom-search” instead? So the URL would display as mysite/custom-search/cse?cx=partner-pub-123456789101112% instead? If so how would I do so?

Thanks in advance for any assistance; I really do appreciate all the help I can get when working with Drupal 7.

AdSense 7.x-1.1, Drupal 7.22

Comments

jcnventura’s picture

Currently that path is hard-coded in the adsense_cse.module file (search for 'ADSENSE_CSE_RESULTS_PATH'). If you replace it with custom-search, and clear cache, it should start working.

There's no way to modify that from the module's configuration setting, but it might be a good idea to allow that..

oo7_golden_1’s picture

Category: support » feature
Priority: Normal » Minor
Status: Active » Closed (fixed)

Thank you for taking the time to leave a response Jcnventura, I thought that it would be a nice feature to have on the front end allowing others to change the URL in the configuration settings as well. Oh well, code diving here I come.