Quote:
Originally Posted by UK Jimbo
Took less time than I thought - give this a try:
Code:
// only for non-threaded display
if($threadedmode == 0) {
// only need to do the calculation once
if( $counter == 2 && empty($GLOBALS['adsense_position'] && $totalposts >= 3 ) ) {
$_min = $postcount;
$_max = min($totalposts,$_min+$perpage-1) - 1;
$GLOBALS['adsense_position'] = rand($_min,$_max);
}
}
|
I've installed and it's working very well. Will the code above display the ads after the first post and before the last? Would you mind showing me what the whole code for the post bit would look like, and is it possible to show the ads to certain usergroups?
Cheers.