News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

table color - border?

Started by Zerosurf, December 03, 2004, 03:12:47 AM

Previous topic - Next topic

Zerosurf

Hallo!
when I add bbc-tables to the posting, there is no tableborder visible!
How can I make the table visible, like border=1?

regards, Zerosurf
Testtable:
test1a
test1btest2b
test1ctest2ctest3c

should look something like this:

                               
|Testtable:               |
|test1a                    |
|test1b|test2b          |
|test1c|test2c|test3c|

[Unknown]

You mean...

                         
|Testtable:|      |      |
|test1a    |      |      |
|test1b    |test2b|      |
|test1c    |test2c|test3c|


I'm afraid that the table bbc code does not currently support parameters of any kind.

-[Unknown]

Zerosurf

that´s right!

so there´s no way to show tables?

zerosurf

Trekkie101

Would it be hard to do?
Is it already a feature request, if not try submitting it as one  :)

codenaught

Someone requested this, or something similar to it, I think, about a month ago. You could try bumping that topic at http://www.simplemachines.org/community/index.php?topic=19524.msg157894#msg157894
Dev Consultant
Former SMF Doc Coordinator

Zerosurf

I just read that topic but it doesn´t really help! :(

thx anyways, Zerosurf

Oldiesmann

I can show you how to change the way the table tag is parsed so it will show a border or colors, but it would be a bit more difficult to get it to accept paramaters...
Michael Eshom
Christian Metal Fans

Zerosurf


Oldiesmann

Well, it turns out it's not as easy as I thought... I know how to add borders to tables and stuff, but getting a grid-like border is a lot more difficult...
Michael Eshom
Christian Metal Fans

Harro

Any news on this one?
Cuz it would be realy nice if that would be possible...

[Unknown]


rudoka

#11
Quote from: [Unknown] on June 02, 2005, 04:14:41 PM
<table style="background-color: blue;" border="0" cellpadding="2">
<tr><td style="background-color: white;">!!!</td><td style="background-color: white;">!!!</td></tr>
<tr><td style="background-color: white;">!!!</td><td style="background-color: white;">!!!</td></tr>
</table>

-[Unknown]

Clever trick.
Let me guess. It's a 1.1 feature? Or maybe an easter egg?
Because the [ html ] BBCode is not documented anywhere. At least not in the help file that comes with the ~1.0.3.
Ok, I got it. It's in 1.1 only.
That's not fair  :P

Rudolf

Edit: the html did not show up previously (obviously it's being considered as a BBCode), so i used the spaces

Harro

And it's not with bbcode, but with html.

rudoka

#13
Well, quoting [Unknown]'s reply there is a [ html ] BBcode. (without the spaces between the brackets, of course)
But I don't know what's the deal. I try to use it and it doesn't works for me.
???

rudoka

#14
Ack, I know now. It must be a mod or something, a custom BBCode.
But then, my question is. Why I can't reproduce the same thing on the same forum?
I mean I take what [unknown] wrote and post it, and only gives the html code as text, it's not being parsed. As in the quote before.

It's a bug or what? Or this feature answers only to [Unknown]'s commands?
???  :P

Rudolf

Edit: OK, never mind. I know already. The html code can be used only by admins or with people with the right permissions. NOT regular users. If I understood correct. But I guess this is not really an answer to the initial question.

[Unknown]

Administrators only.

-[Unknown]

Harro

And 1.1 only :p
I'll wait till that 1.1 is released to public then ;)

rudoka


tz8

i know i'm evil, and this is for 1.1RC2, but you can change Sources/Subs.php

from
Quote
                        array(
                                'tag' => 'table',
                                'before' => '<table style="font: inherit; color: inherit;">',
                                'after' => '</table>',
                                'trim' => 'inside',
                                'require_children' => array('tr'),
                                'block_level' => true,

to
Quote
                        array(
                                'tag' => 'table',
                                'before' => '<table border="1" style="font: inherit; color: inherit;">',
                                'after' => '</table>',
                                'trim' => 'inside',
                                'require_children' => array('tr'),
                                'block_level' => true,

Drathal

You could do this in 1.1 Css File to show Borders:


.post table {
    border:1px solid #000000;
    background-color:#c4ad91;
}
.post td {
    background-color: #e0caae;
}


Advertisement: