MyBB Community Forums

Full Version: Code To Show Ad Only After First Post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
You'll think that I am requesting for a plugin, but no, I am not looking for a plugin.

The point is that I am testing Adsene Revenue Sharing script and its working fine but the only problem is that the ad shows up after every post.

So, please give me a condition code so that the ad will be shown only after first post.

Also, give me an else code (too) so that if the member haven't put any Adsense ID in his profile then the ad after else function will be shown,

Thanks
Maybe this one: http://mods.mybb.com/view/ads-after-firs...r-mybb-14x

You will need to change compatibility in the
plugin file from 14* to 16*

Or this one is also very good:

http://mods.mybb.com/view/my-advertisements

Also try this i am
Using on my forum :

download from 2nd post

http://www.soportemybb.com/tema_¿Cómo-pu...este-sitio
You didn't got me.. Sad
Using PHP you can paste this at the end of your postbit/postbi_classic templates:
<if $post['pid'] == 1 then>
Adsense code here
</if>

I can't check what code I use as my board is down at the moment.
Thanks. I'll give it a try
you may have to install php in templates and template conditionals plug-in to use above code..
(2011-07-11, 04:44 AM)envira Wrote: [ -> ]Check this tut,may be handy Smile
http://community.mybb.com/thread-66050.html

Thats not working fine..