3.1.x Extensions Database 3.1 / 3.2 ⇒ [RC] Tables bbCode
-
Puchahawa
- Users

- Posts: 193
- Joined: 20 Jun 2015, 17:58
Re: Tables bbCodes
TWeagle: I'm not having a problem with it and I have abbc3. Wonder if it's a version issue or something. My board is running 3.1.7, abbc3 is 3.1.2.
-
Fast_Eddie
- Users

- Posts: 279
- Joined: 15 Aug 2015, 20:25
Re: Tables bbCodes
Not a issue for me as I do not use ABC. Just trying to help a guy out :)
@ Sniper_E
Is there a way you could work in a way to center a table on the page? I found this http://stackoverflow.com/questions/3011 ... lign-table
but it makes no sense to me.
@ Sniper_E
Is there a way you could work in a way to center a table on the page? I found this http://stackoverflow.com/questions/3011 ... lign-table
but it makes no sense to me.
-
Sniper_E
- VIP

- Posts: 1160
- Joined: 14 Oct 2014, 19:01
Re: Tables bbCodes
Ext/sniper/tables/styles/all/theme/tables.css
Code: Select all
/* Tables bbCode Extension
------------------------------------ */
table.tablebg {
border: 1px solid #84929C;
margin-left: auto;
margin-right: auto;
}
table.tablebg th {
color: #FFA34F !important;
font-size: 1.1em;
font-weight: bold;
text-align: left;
background-color: #006699;
background-image: url('./images/cellpic3.gif');
white-space: nowrap;
padding: 5px;
border: 1px solid #84929C;
margin: -1px 0 0 -1px;
}
table.tablebg td {
padding: 4px 6px;
border: 1px solid #84929C;
margin: -1px 0 0 -1px;
}
.cat {
font-size: 1.2em !important;
padding: 4px 2px;
background-color: #C7D0D7;
background-image: url('./images/cellpic1.gif');
text-indent: 3px;
border: 1px solid #84929C;
margin: -1px 0 0 -1px;
}
.row1 {
background-color: #ECECEC;
padding: 4px;
}
.row2 {
background-color: #DCE1E5;
padding: 4px;
}
.row3 {
background-color: #C0C8D0;
padding: 4px;
}-
Fast_Eddie
- Users

- Posts: 279
- Joined: 15 Aug 2015, 20:25
Re: Tables bbCodes
Thanks for the update Sniper! It's a lot closer to center now, what part of that code deals with centering? I think I read in the above link this part
Is supposed to center the table? Is their a way to tweak it closer to center? Sorry, if it's a hassle don't sweat it. 
EDIT: I went ahead and ''posted'' a test message instead of ''preview' and it looks like it's pretty well centered in the posting body.'
Code: Select all
margin-left: auto;
margin-right: auto;EDIT: I went ahead and ''posted'' a test message instead of ''preview' and it looks like it's pretty well centered in the posting body.'
-
Sniper_E
- VIP

- Posts: 1160
- Joined: 14 Oct 2014, 19:01
Re: Tables bbCodes
Move the table a little more to the right to center it with the page.
Use this class...
Use this class...
Code: Select all
table.tablebg {
border: 1px solid #84929C;
margin-left: auto;
margin-right: 0;
}-
proavia
- Users

- Posts: 65
- Joined: 30 Aug 2015, 22:50
Re: Tables bbCodes
Thank you Sniper - this works great!
Is there a way to have the ability to have a custom background color for the entire table? How about custom background color by cell?
Thanks in advance for any assistance with background colors.....
Is there a way to have the ability to have a custom background color for the entire table? How about custom background color by cell?
Thanks in advance for any assistance with background colors.....
-
Fast_Eddie
- Users

- Posts: 279
- Joined: 15 Aug 2015, 20:25
Re: Tables bbCodes
The tables ext handles bbcodes ok and I just tried the background bbcode in a cell. It worked but the background was for the forum and NOT the cell.
Background bbcode:
BBcode
HTML Replacement:
Help Line:
I'm sure there is a way it can be done but this is all i can offer. Hope it helps a little anyway :)
Background bbcode:
BBcode
Code: Select all
[background]{URL}[/background]Code: Select all
<body background="{URL}">Code: Select all
Background Picture: [background]Enter picture URL here[/background]-
proavia
- Users

- Posts: 65
- Joined: 30 Aug 2015, 22:50
Re: Tables bbCodes
Thanks!
That would work for images or just a few background colors (that I make images of). What I am hoping for is a way to place a custom color in a table on the fly. I am able to do this in 3.0 but not 3.1.
[ Post made via iPhone ]
That would work for images or just a few background colors (that I make images of). What I am hoping for is a way to place a custom color in a table on the fly. I am able to do this in 3.0 but not 3.1.
[ Post made via iPhone ]

-
Sniper_E
- VIP

- Posts: 1160
- Joined: 14 Oct 2014, 19:01
Re: Tables bbCodes
The way to make each cell the color you choose on the fly would be to remove the class in the bbcode and replace it with a style="background: {COLOR}"
So instead of using "row1" or "row2" in your line you would use "red" or "#AA0000"
[ Post made via Samsung Galaxy S5 Active ]
So instead of using "row1" or "row2" in your line you would use "red" or "#AA0000"
[ Post made via Samsung Galaxy S5 Active ]

-
proavia
- Users

- Posts: 65
- Joined: 30 Aug 2015, 22:50
Re: Tables bbCodes
Thanks Sniper!
I'll give that a go.
[ Post made via iPhone ]
I'll give that a go.
[ Post made via iPhone ]

-
Fast_Eddie
- Users

- Posts: 279
- Joined: 15 Aug 2015, 20:25
Re: Tables bbCodes
Could this be a feature update ?The way to make each cell the color you choose on the fly would be to remove the class in the bbcode and replace it with a style="background: {COLOR}"
So instead of using "row1" or "row2" in your line you would use "red" or "#AA0000"
-
ninouee
- Users

- Posts: 32
- Joined: 01 May 2016, 09:48
Re: Tables bbCodes
Hello
Thank you for this extension is what I was looking for a long time !
However I have a problem ...
I installed prior Advanced BBCode Box and attempt to create bbcode table.
I installed your extension in the ext / sniper / files .
I launched the activation and nothing happens .
No button displays.
I do not understand my mistake. Do you have an idea?
thank you
Thank you for this extension is what I was looking for a long time !
However I have a problem ...
I installed prior Advanced BBCode Box and attempt to create bbcode table.
I installed your extension in the ext / sniper / files .
I launched the activation and nothing happens .
No button displays.
I do not understand my mistake. Do you have an idea?
thank you
-
Fast_Eddie
- Users

- Posts: 279
- Joined: 15 Aug 2015, 20:25
Re: Tables bbCodes
I'm pretty sure that when you install that extension it deletes all custom bbcode. Maybe try and disable table extension then delete data. and re-install.I installed prior Advanced BBCode Box and attempt to create bbcode table.
-
Puchahawa
- Users

- Posts: 193
- Joined: 20 Jun 2015, 17:58
Re: Tables bbCodes
Hey Sniper, any further development on this idea?sniper e wrote:Yes tamarin after looking at the WYSIWYG HTML editor I thought I would see if I could make the drop down selection menu similar to that. Maybe make it bring up the Preview after you make your selection.
I think that had a selection of 10 rows and 10 columns. Do you think this extension need that many selections also?
