MyBB Community Forums

Full Version: Adsense In First Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know if you can edit MyBB (or if a plugin already exists) so that Adsense shows in your first post?

Here's an example of what I am talking about:

http://forums.digitalpoint.com/showthread.php?t=2220158

And if you refresh the page you can see that the advertisement in that first post will bounce around and switch between which lines it shows on - that isn't needed but would be pretty cool.

Thanks!
I had seen that plugin before, but does it actually add Adsense into the first post itself?
Alternate way manual editing:-
Add this at the end of postbit template.
<br />
<if $postcounter == 1 then>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"><tr><td class="thead"><strong>Adds</strong></td></tr>
<tr><td class="trow2" >

//YOUR GOOGLE AD SENSE SCRIPT HERE

</td></tr></table>
</if> 

but to make it work, you need to install template condition plugin.
" ... but does it actually add Adsense into the first post itself? "
^ not into the first post - it can show advertisement after every first post
AND the method suggested by sunjava (above post) also works fine
Does anyone know of a way to add it into the first post itself?

I tried adding it like this and it somewhat worked in the postbit template:

<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
//MY ADSENSE CODE
</div>

And that did add it to the bottom of the post itself - but it added it at the bottom of every post on the page, not just the first one.
Use the below plugin, works fine, it inserts in first post exactly as you want:

http://community.mybb.com/thread-70018.html

Also, you can use: http://mods.mybb.com/view/postad-lite