The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Support for TABLE bbcode!
I recentely came across a need to have a html table in my posts in vB3.
Well, I figured ok, I'll just enable HTML code and do a standard html table. Well the html table works great of course, but the problem is for every physical line of code my table is using (about 20 or so), above the table in the viewing of the post, I get that many (20) blank lines. It seems that vB3 is picking up them as normal lines and "br"ing them. Is there already a fix for this, or this there a better way todo a table in a post? Let me know, Greatly Appreciated! |
#2
|
|||
|
|||
You are correct. vB translates all newlines (hard ENTER key) to BR's. The extra line above the table actually come from the BR's within the table (i.e., at the end of a TD or TR line).
You would have to modify the bbcode parser function to change this behaviour. Just out of curiousity, what algorithm do you have in mind to identify "normal lines": no BR if the line ends with what looks like a <tag>? Or would you just not insert any BR's if HTML is enabled? |
#3
|
|||
|
|||
Well, actually I solved the problem (sort of) with a quick fix.
Instead of having like 20 table tag lines, I made my entire table one line, and it gets rid of all of the blank lines, minus the single one from the table line. So its alot better now, but still a quick fix. I would think if you supported HTML and you could "flag" the message as HTML, then no br's ever used would be fine... hmm what do u think? maybe a? [NOBR] html code here [/NOBR] I just installed the "Custom BBCode" hack (add-on), im going to mess with it somemore. I might be able todo this nobr idea with it actually. I'll see and let you know. Thanks |
#4
|
|||
|
|||
If the current behaviour were changed, and it should be, then I would recommend no <BR> if HTML is allowed and the line ends in what looks like a <tag>.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|