[drupal-support] phptemplate help needed

Earl Miles merlin at logrus.com
Thu Aug 11 14:45:20 UTC 2005


Peter Apockotos wrote:
> I am currently working on my own phptemplate and I have a question.
> 
> I am trying to ad google ads to content but I only want them to  appear 
> when someone clicks on read more.
> 
> Any advice?  I am using the adsense module.
> 

With the phptemplate module, I think this modification might do what you want;

> if (module_exist("adsense"))
> {
>  print adsense_display("120x600", 2, 4);
> }

(Also, adjusted to fit the Drupal codying style)

if (module_exist("adsense")) {
   if ($page) {
     print adsense_display("120x600", 2, 4);
   }
}




More information about the drupal-support mailing list