On 06 Feb 2005, at 11:21 PM, Paul wrote:
Hi, I have a drupal website, www.chintha.com and i am displaying two nodes per page. I have my google adsense code in the node.tpl.php template and a google ad is displayed at the bottom of every node. Now instead of displaying an ad for both the nodes in a page, i want to display an image at the bottom of the first node. So the page will have in sequence: "first node+links, an image, second node+links, google ad" How can i achieve this?
Follow the bottom example here : http://drupal.org/node/16383
In your node.tpl.php , have a section that goes :
<?php if ($seqid == 1) : ?> <img src="image.jpg" /> <?php endif; ?>
-- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com