Ad sprinkling for Drupal 4.7
PHPTemplate for Drupal 4.7 doesn't use $seqid anymore, as it did in the Drupal 4.6 version when the PHPTemplate engine was just a contrib file. Now $seqid is just $id. That means if you want to sprinkle ads on your index page after the 2nd and 6th nodes, you do something like this at the bottom of your node.tpl.php:
// regular node content up here
<?php if (!$page && ($id == 2 || $id == 6)): ?>
// ad code
<?php endif; ?>» deekayen's blog ·
·
·
Topics: Drupal · PHP
·
·
Topics: Drupal · PHP


Post new comment