The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ad after first post
I have looked about for the last 30 mins, but I didn't manage to find a thread like this, that allows you on vb3, to have some ad space after the first post in the thread.
I am pretty sure this is possible, with conditionals, but how would you do it? |
#2
|
||||
|
||||
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you
Thanks, - Dean |
#3
|
|||
|
|||
sorry about that, I've got a lot of browser windows open on this forum, must've accidently posted in the wrong one.
|
#4
|
|||
|
|||
Put this at the END of your postbit (or postbit_legacy) template. The ad will only be displayed after the first post in each thread.
HTML Code:
<if condition="$post['postid'] == $thread['firstpostid']"> Your Ad Code Goes Here </if> |
#5
|
|||
|
|||
Thanks, I'll give that a go.
|
#6
|
|||
|
|||
Yeah, that worked brilliantly. Thanks
|
#7
|
|||
|
|||
Ok, it did work rather well....but I need a bit more help.
It is reasonably OK, but, when it shows on private messages, it displays like this (ridhproblems.gif) The 2 problems with this, are that it goes to the side a bit (the sponsors box, which is the bit after the first post), and also there is no break. Included, is a pic of how I want it to look (ridhright.gif). It displays like this on normal topics, although, topics with only 1 post, still have the line gap problem. E.g. of how it is displayed right... http://www.rouseindahouse.com/showth...9&page=1&pp=20 The code for this is basically the following Code:
<if condition="$post['postid'] == $thread['firstpostid']"> <!-- text advertising --> <div id="posts"> <div align="center"> <div class="page" style="width:100%; text-align:left"> <div style="padding:0px 25px 0px 25px"> <div style="padding:0px 0px 6px 0px"> <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center"> <tr> <td class="thead" style="font-weight:normal" ><strong>Sponsors</strong></td> </tr> <tr> <td class="alt1" align="center"> Google ads script here (not pasted) </td> </tr> </table> </div> </div> </div> </div> </div> </if> What would the problem be? |
#8
|
|||
|
|||
*bump*
|
#9
|
|||
|
|||
I'm having a few problems as you can see at: http://www.forum.juicyduff.com/showthread.php?t=32
What I want is the bg around the banner to be the same as the bg of the banner (AED1D7) and the bits outside the border ... please help! Here is the post bit code: Code:
</if> <!-- / post #$post[postid] --> <if condition="$post['postid'] == $thread['firstpostid']"> <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="710" align="center"> <tr> <td class="thead" style="font-weight:normal" ><strong>Sponsors</strong></td> </tr> <tr> <td class="alt1" align="center"> (adsense code here) </td> </tr> </table> </if> |
#10
|
|||
|
|||
No one here to help?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|