Not Solved adsense after last post
#10
Not Solved
(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.


Reply


Messages In This Thread
adsense after last post - by tr549 - 2011-05-18, 02:49 PM
RE: adsense after last post - by exdiogene - 2011-05-18, 03:25 PM
RE: adsense after last post - by tr549 - 2011-05-18, 03:31 PM
RE: adsense after last post - by exdiogene - 2011-05-18, 04:30 PM
RE: adsense after last post - by Yaldaram - 2011-05-18, 03:34 PM
RE: adsense after last post - by tr549 - 2011-05-18, 03:41 PM
RE: adsense after last post - by Yaldaram - 2011-05-18, 03:48 PM
RE: adsense after last post - by tr549 - 2011-05-18, 07:03 PM
RE: adsense after last post - by tr549 - 2011-05-18, 03:59 PM
RE: adsense after last post - by FBI - 2011-05-18, 04:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)