2012-08-13, 09:28 PM
URL: http://nosforum.com
MyBB Version: 1.6.8
I am trying to add advertisement into my posts and have managed it by adding my ad codes into my template's postbit. (template > postbit > postbit)
Now I am trying to add this code ONLY into the first post.
Since the postad.php and advertisement in posts plugins do not work anymore since I have updated to 1.6.8 from 1.6.4, I want to do it manually. Can anyone help?
MyBB Version: 1.6.8
I am trying to add advertisement into my posts and have managed it by adding my ad codes into my template's postbit. (template > postbit > postbit)
<span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
<div class="post_body" id="pid_{$post['pid']}">
{myadvertisements[zone_4]}
<br><br>
<div style="float: right">{myadvertisements[zone_5]}</div>
<div style="float: left">{myadvertisements[zone_7]}</div>
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
Now I am trying to add this code ONLY into the first post.
{myadvertisements[zone_4]}
<br><br>
<div style="float: right">{myadvertisements[zone_5]}</div>
<div style="float: left">{myadvertisements[zone_7]}</div>
Since the postad.php and advertisement in posts plugins do not work anymore since I have updated to 1.6.8 from 1.6.4, I want to do it manually. Can anyone help?