I was checking out the box_grey template in order to learn about developing my own custom theme . Right away I came across this question.
In the BODY tag... this is inserted... print theme("onload_attribute"); .... can anyone tell me what this does ?
This must have been asked somewhere, but after searching for about 20 minutes I can't find anything. How can I put an ad after the first node on my homepage? I know there's a loop, but I can't figure out how to set a variable outside node.tpl.php so I can increment the loop.
This is what I'd like to do: if ($postnum == $showads) {
ad here.
} $postnum++;
It's not working because setting $postnum and $showads in page.tpl.php doesn't allow node.tpl.php to see them.