![]() |
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? |
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 |
sorry about that, I've got a lot of browser windows open on this forum, must've accidently posted in the wrong one.
|
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:
|
Thanks, I'll give that a go.
|
Yeah, that worked brilliantly. Thanks
|
1 Attachment(s)
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']"> What would the problem be? |
*bump*
|
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> |
No one here to help?
|
Code:
</if> |
Hey thanks alot Natch :) ... that solved 1/2 of the problem :)
How do I get rid of the dark green bits around the table and replace it with the normal bg and kill the border around the table? |
Actually I just want the dark green bits gone mainly
The other problem 1) Move the area below the banner by 1 (like it is above the banner) |
Code:
</if> |
Thanks... Added a banner. :)
|
Could I bump this for a solution to my problem. Its still showing up as here.
https://vborg.vbsupport.ru/showpost....07&postcount=7 Also on the PM display it is showing up which is good, but it is affected by that problem, and also both the left and right hand sides are padded. Any ideas? |
Anyone know what the code would be for 2.2.x ?
|
I can't seem to get this to work in 3.0.3. I edit the postbit template, add this to the bottom, insert adsense code, and nothing. Is it because of something changed in 3.0.3, or something I'm not doing right?
Code:
<if condition="$post['postid'] == $thread['firstpostid']"> |
Heh, shouldn't work when I'm so tired, it's working now.
|
it is against the rules to show entire templates in your post
and do as post 18 stated |
Sorry Gestapo.... lol
Obviously I tried what post 18 said... If it worked I wouldn't have posted.... There I took away half my template..... |
Quote:
and did it show nothing? after you added the code |
forget it.... thanks anyways but I can figure it out... I just didn't sleep much... seems easy and I am just being lazy...
There... done... I just had to think a little...lol |
BRAVO firs topic i looked at and i needed it thanks :)
|
All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|