The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Space between posts in showthread
Hey all,
Done a search on this, but can't find anything that really matches what I need. I've added some code into my postbit template, which adds Adsense - but I can't get the spacing right, whether I use a <br /> or a I just can't get it to the same size as it is between posts (see attachment). The new code is within a <table> then <td> and <tr> - what can I used to add the same gap as by default - I've even used the same <table ... > code from the top of the postbit template in case that held something I was missing .... this is driving me nuts! TIA Jason |
#2
|
||||
|
||||
It should be <table><tr><td>Content</td></tr></table>. The screenshot is rather dark. Can you please post your code that you'll use for Adsense?
|
#3
|
||||
|
||||
Here's what it looks like with a lighter style ... basically there is no gap between the end of the post and the Adsense block (it's all inside a table) - it's the gap between the bottom of the Adsense block and the next post I want to recreate ... just so it's uniform.
Thanks, Jason |
#4
|
|||
|
|||
Vbulletin by default puts a space between each "post".
Your adsense just needs a space above it to make it uniform. |
#5
|
||||
|
||||
Thanks - but what sort of space do I need, a <br /> is too large and so is a - I have no idea what else I could use to make the space similar, failing that I will use a br tag.
|
#6
|
||||
|
||||
Use something like:
In template: Code:
<div style="height:3px"></div> Change the "3px" to whatever value you want. |
#7
|
||||
|
||||
Thanks - I had totally forgotten about the div tag
Jason --------------- Added [DATE]1193930108[/DATE] at [TIME]1193930108[/TIME] --------------- After a quick test ... the div tag just puts it over the top of the next post - and doesn't create a gap between the post above and the Adsense table... |
#8
|
||||
|
||||
Please post your postbit code (or code that surrounds the Adsense code).
|
#9
|
||||
|
||||
Here's all the code from the postbit template (included adsense code)
PHP Code:
|
#10
|
||||
|
||||
Try adding:
Code:
<div style="height:10px"></div> After: Code:
<if condition="(($post[postcount]==1) or ($post[islastshown] AND !$GLOBALS['vbulletin']->GPC['ajax']))"> I tested it using your Adsense code and it created a space between the first post and adsense Table. See if that is what you're looking for. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|