(2011-05-18, 03:48 PM)Yaldaram Wrote: So basically you are looking for an ad to show after 3 or more posts ?
Install this plugin: http://community.mybb.com/thread-31860.html
Then add the following code just After the </table> in postbit template;
<if ({$postcounter} - 1) % {$mybb->settings['postsperpage']} == "2" then> ADS_CODE </if>
Didn't tested but I guess it should work.
The above code puts the add after 3 posts on a page. I want it to put it after the LAST post on the page, but ONLY if there are 3 or more posts. In other words 2 posts, no add. 3 or more, there is an add but only after the very LAST post. So if there were 8 posts on a page the add would be after the 8th post.
Below is my exact code on how I do this in the postbit templet on my Vbulletin forum, if you know how to convert it to MYbb that would be great:
<if condition="$post['islastshown'] AND !$GLOBALS['vbulletin']->GPC['ajax']">
<if condition="$post['postcount'] > 2">
ad code here
</if></if>
I guess what I am asking is there a MYbb if condition statement equal to the post['islastshown'] like in the above vbulletin code.
Thanks for all your help.