PDA

View Full Version : Show a banner after first post?


gobears20
07-18-2015, 01:29 AM
Hi I was wondering if there is any where I could look to add this after the first post? Is this under the postbit template? Also is there some places I could go look to get information about this?

Elixar
07-18-2015, 03:38 AM
You should be able to do it within the Ad section in the Admin CP?

gobears20
07-18-2015, 10:18 AM
Yeah, I found a way to do this by adding this code to the postbit.
But I am wanting to add the sponsored link and table part to the around the information to make it blend in wwith my site.

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '4')">
<div class="body">
<div style="width: 100%; text-align: center">
<a href="ink to ad"><img src="http://your-ad-image-link.com" width="728"

HEIGHT=90></a>
</div>
</div>
</vb:if>

gobears20
07-18-2015, 10:28 AM
Mine looks like this but I would like to add the table part around it and add sponsored links like in the print screen in my first post. Anybody have any ideas? :)

gobears20
07-19-2015, 11:48 PM
I ended up getting this working. Not sure if this will help anybody but this link really helps with the conditions: http://www.vbulletin.com/forum/forum/vbulletin-3-8/vbulletin-3-8-questions-problems-and-troubleshooting/vbulletin-quick-tips-and-customizations/203766-how-to-show-a-banner-after-the-first-post-in-a-thread?t=198875

What I ended up doing was creating this to show an ad after every first post on every page, in certain forums, for specific user groups.

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 AND in_array

($GLOBALS[forumid], array(6,7,18)) and is_member_of($bbuserinfo,6)">
<div class="postbit">
<h3 class="posthead">&nbsp; &nbsp;TSET2</h3>
<div class="postbody">--TEST--</div>
</div>
<br />
</vb:if>


Here is what it looks like...