If you're going to do this the BBCode table tag way: one thing I'd suggest is adding the relevant CSS/HTML classes from the board templates,
so that they look like part of the native forum UI no matter what theme your users are using.
I did try to have a look at it but I ran into some issues:
- Handling things like 'colspan' literally requires creating two separate tags in the bbcode array, rather than being able to have
'subclass tags' if you will, which feels incredibly counter-productive (and against the established standard of XMB) - unless I'm
missing something incredibly stupid
- It'd be easy to break the board layout without special handling for tables
- The 'BBCode Helper' in the FAQ is statically generated, therefore it'd need to be manually updated for
every single language
(which in OP's case, it may pose a real issue)
Ideally, the HTML output would be something like this, though things may change for 1.12 - substituting dynamic variables for the raw output displayed
below. This is just an idea of what the table looks like.
| Code: |
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#bb81bb">
<tbody><tr>
<td>
<table width="100%" border="0" cellpadding="5px" cellspacing="1px">
<tbody><tr bgcolor="#FFFFFF">
<td colspan="3" class="category"><div align="left"><font color="#3e223e"><strong>DERP</strong></font></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF" class="tablerow">big blarg</td>
<td bgcolor="#f9f4f9" class="tablerow">blarg</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" bgcolor="#FFFFFF" class="tablerow">very big blarg</td>
</tr></tbody></table>
|
(I'm probably just in yet another state of personal fecklessness when it comes to doing literally anything with XMB, but I do think the BBCode
parser could do with some revamping to be faster/easier to maintain, especially with the upcoming systems being planned.)