Page 1 of 1

Question about custom BBCodes.

Posted: Mon Jan 28, 2008 12:51 pm
by Zedicius
I added table, and respectively th, tr and td tags to the custom BB code list. They're hidden and the actual bbcode tags are named uniquely so that ordinary members can't mess up the lay-out by accidentally putting these tags in.

The tags work perfectly, though for some reason there's an unexplainable blank space above my table. The more rows I add, the bigger this space becomes. I checked the page source, the forum and the style/template files and didn't really find anything unusual that could cause it.

Has anyone had this problem before, or even better, know how to fix it?

Re: Question about custom BBCodes.

Posted: Mon Jan 28, 2008 12:54 pm
by karlsemple
Not tested this, but I came across a topic somewhere on this board discussing this and an apparent work around so I copied it thinking it may be of use in the future, it can be found here

Re: Question about custom BBCodes.

Posted: Mon Jan 28, 2008 1:18 pm
by Brf
This one works, and doesnt need the trf and tdf tags:

Code: Select all

[table]{TEXT}[/table]

Code: Select all

<table><!-- {TEXT} --></table>

Code: Select all

[tr]{TEXT}[/tr]

Code: Select all

tr --><tr><!-- {TEXT} --></tr><!-- tr

Code: Select all

[td]{TEXT}[/td]

Code: Select all

td --> <td>{TEXT}</td> <!-- td
It can mess things up though if someone posts tr or td tags without the table wrapper.

Re: Question about custom BBCodes.

Posted: Mon Jan 28, 2008 1:44 pm
by Zedicius
Both are working perfectly. Thank you very much. :)

Re: Question about custom BBCodes.

Posted: Sat Oct 24, 2009 12:37 am
by waxxie
@Brf

thanks for that!
exactly what I needed!!!

5/5 stars for you

Re: Question about custom BBCodes.

Posted: Fri Feb 10, 2012 5:37 pm
by BROnstott
For some reason I can't seem to make this work.

I added three custom BB Codes as shown above:

In the BBCode Usage box I put
[table]{SIMPLETEXT}[/table]

and in the HTML Replacement box I put
<table><!-- {SIMPLETEXT} --></table>

and
[td]{SIMPLETEXT}[/td]
and
td --> <td>{SIMPLETEXT}</td> <!-- td

and
[tr]{SIMPLETEXT}[/tr]

paired with

tr --><tr><!-- {SIMPLETEXT} --></tr><!-- tr

Now when I put this in my post:

[table][tr][td]TEST[/td][/tr][/table]

and preview the results I get this:

Preview:
[table][tr]td --> TEST

Obviously I'm missing something. Can someone point out my error?

Re: Question about custom BBCodes.

Posted: Fri Feb 10, 2012 5:49 pm
by Brf
Why are you using SIMPLETEXT, when the examples plainly show TEXT?

Re: Question about custom BBCodes.

Posted: Fri Feb 10, 2012 6:41 pm
by BROnstott
Because I got a warning message when I used TEXT. Some sort of security warning.

Re: Question about custom BBCodes.

Posted: Fri Feb 10, 2012 6:46 pm
by BROnstott
I changed it to TEXT and ignored the warnings, and it works fine now. Sorry to bother.

Re: Question about custom BBCodes.

Posted: Mon Feb 04, 2013 11:25 pm
by agus6salim
[table]
[tr]
[td]Cinta[/td]
[td]Love[/td]
[/tr]
[tr]
[td]Cinta2[/td]
[td]Love2[/td]
[/tr]
[/table]

Re: Question about custom BBCodes.

Posted: Mon Feb 04, 2013 11:35 pm
by Lumpy Burgertushie
agus6salim wrote:[table]
[tr]
[td]Cinta[/td]
[td]Love[/td]
[/tr]
[tr]
[td]Cinta2[/td]
[td]Love2[/td]
[/tr]
[/table]
you should probably put that all in one continuous line to avoid layout problems.


robert

Re: Question about custom BBCodes.

Posted: Mon Jul 01, 2013 5:07 pm
by swalfd
This works well just what i needed. How can i increase the width of the table? And add blank line between each row? thank you!