Hi all, looking for what might be a rather large favour in the end. I'm not even going to pretend I know PHP, because I haven't got a clue. Basically, I'm looking to recreate the method used for creating tables in ZetaBoards or as close as possible.
For those who haven't come across it, this:
Would effectively give the same result as this:
And adding a 1 after "Stuff" (as in the following code) would make the first row of things headers, like so:
Would anyone be able to knock up the code that could translate the ZB-style code in to the necessary HTML equivalent? I've asked around on the phpBB forums but haven't had much in the way of replies (people just tell me how to make a like-for-like BBCode which isn't what I'm after - I can do that no problem). The reason behind this is that we're migrating the forum from ZetaBoards to phpBB on a server of our own to have more control over various things, but HTML tables seem to cause a lot of confusion for a lot of people, so I'd like to make things as easy for them as ZetaBoards allows whilst still allowing us to make all the changes that ZetaBoards' software doesn't.
I realise that this is a massive ask, but I'm getting a little desperate here. I don't really have the kind of time to be really looking in to PHP and trying to figure this out myself at this moment (I tried a few times before and couldn't get my head around what was going on). It's a lot of work, so I don't expect people to have the kind of time to do this, but I really would appreciate the assistance.
The person (or people) who come up with something are welcome to demand a pint (or six) for their efforts
Thanks in advance,
Joel.
For those who haven't come across it, this:
Code:
[table=3,Stuff]R1C1[c]R1C2[c]R1C3[c]R2C1[C]R2C2[C]R2C3[/table]
Would effectively give the same result as this:
Code:
<table>
<thead>
<th colspan="3">Stuff</th>
</thead>
<tr><td>R1C1</td><td>R1C2</td><td>R1C3</td></tr>
<tr><td>R2C1</td><td>R2C2</td><td>R2C3</td></tr>
</table>
And adding a 1 after "Stuff" (as in the following code) would make the first row of things headers, like so:
Code:
[table=3,Stuff,1]H1[c]H2[c]H3[c]R1C1[C]R1C2[C]R1C3[/table]
Code:
<table>
<thead>
<th colspan="3">Stuff</th>
</thead>
<tr><td>H1</td><td>H2</td><td>H3</td></tr>
<tr><th>R1C1</th><th>R1C2</th><th>R1C3</th></tr>
</table>
Would anyone be able to knock up the code that could translate the ZB-style code in to the necessary HTML equivalent? I've asked around on the phpBB forums but haven't had much in the way of replies (people just tell me how to make a like-for-like BBCode which isn't what I'm after - I can do that no problem). The reason behind this is that we're migrating the forum from ZetaBoards to phpBB on a server of our own to have more control over various things, but HTML tables seem to cause a lot of confusion for a lot of people, so I'd like to make things as easy for them as ZetaBoards allows whilst still allowing us to make all the changes that ZetaBoards' software doesn't.
I realise that this is a massive ask, but I'm getting a little desperate here. I don't really have the kind of time to be really looking in to PHP and trying to figure this out myself at this moment (I tried a few times before and couldn't get my head around what was going on). It's a lot of work, so I don't expect people to have the kind of time to do this, but I really would appreciate the assistance.
The person (or people) who come up with something are welcome to demand a pint (or six) for their efforts

Thanks in advance,
Joel.