On Aug 11, 2005, at 10:45 AM, Earl Miles wrote:
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); } }
Will that only let the ad load when the full story is shown?