Drupal Adsense Module Basic Hack

We all know that Google adsense implement a new code format, no more color configuration, and channel.

Since Adsense Module is not yet updated I prepared a simple hack so you can still use the module without waiting for the update. All you have to do is open your adsense.module file and look for line 666 (scary). Just remove the unneeded line of code, replace google_ad_channel with google_ad_slot . See sample format below:

Now you are done! On your Admin area, just add your google_ad_slot number under custom channel. You can add upto 10 google_ad_slot same as channel.

The end....

  • No Related Post

Leave a Reply

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>