Friday, October 17, 2008

Inserting Adsense on Drupa 6

From my experience on my other site that uses drupal. As you know, drupal has released it’s latest version (6) some months ago. And it offers many features.

But to tell you the truth, migrating a platform is a painful job. Just like what vista users’ face on their first attempt to use vista after using win xp, it’s also true for Drupal 5 users who migrate to drupal 6.

One of the important aspect is the adsense code insertion in Drupal 6. When i use drupal 5, there are many modules that let me insert adsense code easily. but now, most of it haven’t yet upgraded.

Then i use a block to insert adsense code. but it’s failed since html filtering changes the code automatically. But after browsing from some sources here and here. I finally managed to make adsense codes work for Drupal 6.

The answer is by changing the block’s option from HTML to PHP codes. Since I tried to insert Adsense code as a block within a Drupal 6 site (using html block), but it didn’t work. So, after searching for some answers, finally i found it in a thread on Drupal site.

One way of saving a block without the HTML filter being applied is to choose PHP Filter as input format. Then, my Adsense blocks work just fine.

Inserting Adsense on Drupa 6

From my experience on my other site that uses drupal. As you know, drupal has released it’s latest version (6) some months ago. And it offers many features.

But to tell you the truth, migrating a platform is a painful job. Just like what vista users’ face on their first attempt to use vista after using win xp, it’s also true for Drupal 5 users who migrate to drupal 6.

One of the important aspect is the adsense code insertion in Drupal 6. When i use drupal 5, there are many modules that let me insert adsense code easily. but now, most of it haven’t yet upgraded.

Then i use a block to insert adsense code. but it’s failed since html filtering changes the code automatically. But after browsing from some sources here and here. I finally managed to make adsense codes work for Drupal 6.

The answer is by changing the block’s option from HTML to PHP codes. Since I tried to insert Adsense code as a block within a Drupal 6 site (using html block), but it didn’t work. So, after searching for some answers, finally i found it in a thread on Drupal site.

One way of saving a block without the HTML filter being applied is to choose PHP Filter as input format. Then, my Adsense blocks work just fine.