Eagle Eyes
03-23-2011, 11:38 PM
<vb:if condition="in_array($post['postcount'], array(1,5,10,16,20,25,31,35,40,46,50,55,61,65,70,7 6,80,85,91,95,100,106))">
Right now i am using this condition to display ads, but it is not effective if i have more pages.
I have 15 posts per page in a thread, and i want to apply the adsense code on every page of the thread on posts 1, 5, and 10
I know that i can display the ad in 1st post of every page using this condition
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
But i still haven't found an efficient method to display on posts 5 and 10 of every page.
Right now i am using this condition to display ads, but it is not effective if i have more pages.
I have 15 posts per page in a thread, and i want to apply the adsense code on every page of the thread on posts 1, 5, and 10
I know that i can display the ad in 1st post of every page using this condition
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
But i still haven't found an efficient method to display on posts 5 and 10 of every page.