Adsense in Job Post excerpts
First of all, Jobroller is fantastic. Well done Appthemes. We are loving your system.
We are trying to place adsense into the front page, and all the main category pages underneath the short job descriptions (excerpts).
We had a programmer insert some code into job_loop.php in an attempt to insert ads after the first post, then again after the third post. The modifiaction is delivering ads, but it seems to bbe completely random. The ads show up in a variety of different places. Sometimes not at all.
I think the code we used was based on the Wordpress recommendations, but obviously it doesn't fit perfectly because the Jobroller theme is a bit different.
We installed this code towards the top of the file:
<!-- Start Adsense Loop Edit -->
<?php
$postnum = 1;
$showads = 1;
?>
<!-- End Adsense Loop Edit -->
then further down, this code:
<!-- Start Adsense ad 468x60 -->
<?php if (($postnum == 1 || $postnum == 3) && $showads == 1 ) { ?> <script type="text/javascript"><!--
google_ad_client = "pub-8138704232109883";
/* Hire My Mum inbetween -Job-Ads */
google_ad_slot = "7273310101";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.
js">
</script><?php } $postnum++; ?>
<!-- End Adsense ad 468x60 -->
Any ideas?