Add a plugin to the postbit_display_complete hook with the following code:
Add the following to the end of the postbit template, changing
X to the number of posts before an
ad appears
and changing
Y to 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9 depending on what you have set in
GAB
:
Code:
<if condition="$post[postcount] % X == 0">
<div style="padding-top:5px">
$GAB_ads[Y]
</div>
</if>
If you want the ad to be random, not the same ad every single time, do the following instead.
Add a plugin to the postbit_display_complete hook with the following code:
Code:
global $GAB_ads;
$GAB_random_key = 0;
if (is_array($GAB_ads))
{
$GAB_random_key = array_rand($GAB_ads);
}
Add the following to the end of the postbit template, changing
X to the number of posts before an
ad appears:
Code:
<if condition="$post[postcount] % X == 0">
<div style="padding-top:5px">
$GAB_ads[$GAB_random_key]
</div>
</if>
Note that the latter method assumes you have set at least two $GAB_ads[X] variables in scripts.