PDA

View Full Version : Google Ads in Postbit on EVERY PAGE


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.

TheLastSuperman
03-23-2011, 11:56 PM
https://vborg.vbsupport.ru/showthread.php?t=249274

Check post #2 for more info it might have the answer your looking for :cool:.

Eagle Eyes
03-24-2011, 12:19 AM
Is there a condition where as if the image or video is present in the the post, dont execute the code? such as ads?