that fixed it thanks.

There is one feature i would like to request.

Google's adsense has this setting;
" To replace public service ads, enter a URL for alternate ads or select a color code here. "

I have been using the Google Color Code option and matching the ad color to my background, to make them disappear on the page. i was going to use their ALT URL feature instead, but since the pages are landing on my front page, Color Code opt produces a cleaner feel for the site.

Why?

this is a new site and Google is sending public service ads to my Front Page -- my most important page and to make it a bit worse the public service ads are not even close to my site topic. making it look a bit trashy. i really don't mind the public service ads that much -- but on my front page?

Comments

kbahey’s picture

Title: that fixed it thanks » Adsense Alternate URL or Alternate Color

I will work on this a bit.

I cannot test it since I never used alternate colors/urls. I will send you the code to test it before committing it.

kbahey’s picture

I have a fix for this, but did not commit it to the repository yet, since I cannot test it. jwells cannot test it either, since he does not get public services ads anymore.

Can anyone who is interested in this feature contact me to get a test version to verify it before I make it available to everyone?

kbahey’s picture

Status: Active » Fixed

Fixed is now in the repository.

Anonymous’s picture

Anonymous’s picture

Carlos Miranda Levy’s picture

Version: » 4.6.x-1.x-dev
Status: Fixed » Active

The form field for Alternate Color / URL only allows 6 characters, which is no good for any URL.
Fixed it in my site by changing

      $output .= form_textfield(t('Alternate info'), 'adsense_alt_info_' . $group,
      variable_get('adsense_alt_info_' . $group, ''), 6, 6,
      t('Enter either 6 letter alternate color code, or alternate URL to use'));

with

      $output .= form_textfield(t('Alternate info'), 'adsense_alt_info_' . $group,
      variable_get('adsense_alt_info_' . $group, ''), 100, 100,
      t('Enter either 6 letter alternate color code, or alternate URL to use'));
kbahey’s picture

Thanks for that.

Fixed in HEAD and 4.6

kbahey’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)