Jump to content

BBCode table - WYSIWYG


Stephane

Recommended Posts

It would be really interesting to see appear BBCode IPB table in native...

Now that we have a section article, it would be interesting to see the table appear in the WYSIWYG editor...

Just like in Joomla...

Not only include the tag [table] [td] and [tr]...

thx in advance...

Stef

Link to comment
Share on other sites

Love this request. On another (free) forum software, they used a very simple BBCode to define tables. Basically, it looked like this:

[table=[color="#008000"]x[/color],Table Title,[color="#FF0000"]y[/color]]Cell[c]Cell[c]Cell...[/table].[/QUOTE]


The x variable, in green, sets how many cells per row the table has. If you have too many cells to fill up one row, it automatically drops the cells into the next row. The Table Title speaks for itself, and can be left blank to exclude that row of the table (it's styled like the category header by default, but can be individually styled, if the skinner so chooses). The y variable, in red, can be set to either 1, or skipped entirely. With a 1, it includes a category name row, styled like the row on the forum index that includes 'Forum', 'Stats', and 'Last Post Info'. After that, if the the category name row has been enabled, the first row of cells will be styled like it. If not, you'll go straight into regular table cells, which are separated by the [c] tag. After that, you can make the table as large as you want. Just include the [/table] tag when you want it to close.



Sure, it's not very customizable, but it's easy to set up and it gets the job done. I'm not exactly sure how much work it would take to include a table BBCode such as this, but I, and probably plenty of other people as well, think this would be a very worthwhile idea to at least consider.

Link to comment
Share on other sites

That's pretty clever, although as you said not very customizable. The biggest problem with doing table, tr, and td outright is if someone used the tags incorrectly it would break the page structure. But that seems a bit easier and harder to screw up. Perhaps you could do something like this:

[table]

one[col]two[col]three[row]

one[col]two[col]three[row]

one[col]two[col]three

[/table]

Link to comment
Share on other sites

I made a suggestion to add something like this to ip.content [url=" way to add and manage tabular data

In short it would be a set of rows and columns text files where you would enter data. Because you're giving the users sections to add data, they don't have to worry about closing tags. It could then parse it into the appropriate html data to show on pages and forums.
%7Boption%7D

Link to comment
Share on other sites

  • 2 years later...

There's a mod that does this: . I agree it should be incorporated into Content at least. Content also needs to ability to align images and such on the left or right so you can wrap around text, but that's something for another thread.

Link to comment
Share on other sites

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...