This example uses PHPAds.....
In showthread look for:
Code:
eval("\$postbits .= \"".gettemplate("postbit")."\";");
If you only want one ad after the first post put:
Code:
if ($counter==1) {
require ("/pathto/phpAds/config.inc.php3");
require ("/pathto/phpAds/view.inc.php3");
require ("/pathto/phpAds/acl.inc.php3");
$postbits .= "<table width=\"{tablewidth}\"><tr><td align=\"center\">".get_view("")."</td></tr></table>";
}
If you want more than one ad say one every 5 posts use this:
Code:
if (($counter%5)==0) {
require ("/pathto/phpAds/config.inc.php3");
require ("/pathto/phpAds/view.inc.php3");
require ("/pathto/phpAds/acl.inc.php3");
$postbits .= "<table width=\"{tablewidth}\"><tr><td align=\"center\">".get_view("")."</td></tr></table>";
}