I am trying to follow the advice contained in this post (http://drupal.org/node/69545#comment-130459).
But I can't figure out where my node.tpl.php file is in my theme directory (UNIX).
Anybody know where it is (or the equivalent file for drupal 4.7.x) is?
thanks!
______________
Drupal tip #2: Sprinkling ads throughout your blog
Today's tip is simple, but potentially very useful to someone. One of the things you might notice if you visit some of the popular commercial blogs is that they sprinkle ads throughout their list of blog entries. For example, on your blog page, you might have a row of ads after the 2nd and 6th blog entries or something. Tweaking your ad placement is one sure way to increase your click-throughs. Doing this in Drupal is easy.
In your PHP Template theme, the node.tpl.php file controls the display of your nodes listing (e.g. node/ and blog/ pages). If we wanted to put an ad after the 2nd and 6th blog entries, we can put this code at the top of that file:
if ( !$page && ($id == 2 || $id == 6)) :
[replace this comment with your ad code]
endif;
The first part of the if statement (!$page) checks to make sure we're not looking at a single node page, e.g. node/view/1. The second part ($seqid = = 2 || $seqid = = 6) says to apply this code only to the 2nd and 6th entries on the page. Just change the numbers to wherever you want the ads to appear.