The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Table Trouble: White space above table
White Space Above Table I've recently made some bb code tags to create tables. I'll go into the details later (in the next two posts), but for now I have a question. The bb code works for the most part but if you type the tags in as below you get a white space above the table: [table%="100%"]Here's the source code created by the bb code: <div><table width=100%><br />Notice all the line breaks caused by stacking the tags and content. Except for the ones inside the cell text, they don't do anything inside the table but instead are puked up above the table creating the white space. Alternatively if you type in the code as follows you don't get the line breaks and the table comes out as planned: [table%="100%"][tr][td%="15%"]AAAAAASo this is my question: How do I get rid of all the line breaks so I don't get the white space? |
#2
|
||||
|
||||
There is actually another thread about this exact issue. I don't remember what the solution was, but you may want to do a search for it.
|
#3
|
|||
|
|||
BB Code For Tables Here's how I made the bb code in the BB Code Manager: [table%] = <div><table width={option}>{param}</table></div>Be sure to set "Use {option}" to yes where appropriate and "Disable BB Code Within This BB Code" to no. These tags work fine (except as noted in my previous post) so long as you use them properly. But as one of my forum members was quick to demonstrate, you can make a mess of thread layout if you don't close all the tags. I solved the problem with a template modification, which I'll describe in my next post. --------------- Added [DATE]1259818896[/DATE] at [TIME]1259818896[/TIME] --------------- Template Modification To solve problems caused by improper use of my table tags I created a cordon sanitaire to prevent the html from the bb code from messing up the thread layout. All it is is a table around the message area. Any unclosed table tags within a table cell are not executed. To create the cordon sanitaire go to the postbit template and scroll down about 40% to find this: Place the following modifications above and below as follows:<!-- message --> Now scroll about 90% down and modify as follows: <!-- / controls -->--------------- Added [DATE]1259819120[/DATE] at [TIME]1259819120[/TIME] --------------- Quote:
--------------- Added [DATE]1259896866[/DATE] at [TIME]1259896866[/TIME] --------------- I think this is the thread you were referring to: https://vborg.vbsupport.ru/showthrea...ighlight=table. It doesn't actually offer a solution but directs to BB Code [table], which isn't quite what I want. Still looking for help! |
#4
|
||||
|
||||
Quote:
I applied to "advertise with us" page and it's give me what I want. I sure more people searching for this problem Solution is using BBCODE table If allow HTML code in vb usergroup and forum manager, when insert a html table, we will have big space on top of table (reason vbulletin inserted more <br> tag on table automatically) and this didn't have a solution for it |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|