MyBB Community Forums

Full Version: Table MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Regular Expression:
\[tablecenter\](.*?)\[/tablecenter\]

Replacement:

<table border="1" style="margin-left: auto; margin-right: auto; text-align: left;" summary="Table MyCode"><tbody>
<tr> <td>$1</td> </tr>
</tbody></table>



Make another custom mycode with that
lol... that's a way to go Big Grin Thanks!
No problem
Hm, all I can see is a single box (one cell). This can be done with a bordered div too.
It's not a real table (for example to show a comparison of two products etc).

Maybe you could adapt the wiki code (it's simple to use [if you know how]) and create a plugin: http://en.wikipedia.org/wiki/Help:Wikitable
What I did is a simple single cell table, the very basic HTML one
thanks...Nice job
How can i add a table with colums and rows?
I've tried to do it creating different mycode for <td> and <tr> but seems that i missing something.
Edit:founded, is a problem with the "regular expressione" of td; anyone know the right format for single element?
for example, if i don't want to use [colum]text[column] can i use just "|"?
Well if you want to do them as separates mycodes:
table rows:
Regular expression:
\[tr\](.*?)\[/tr\]

Replacement:
<tr>$1</tr>
Table columns:
Regular Expression:
\[td\](.*?)(\.*?)\[/td\]
Replacement
<td>$1</td>
It will also accept other mycode in your table cells.

Unfortunetaly it isn't working on my mybb forum. Is there anything else I need to set?
I would also like to include tables with columns and rows in my forum. Where do I add this custom mycode?
Pages: 1 2