MyBB Community Forums

Full Version: [MyCode] Table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, today I created a MyCode for the creation of tables such as those used in the forum topic etc. It can be very useful!

Go to:

adress-board/admin/index.php?module=config-mycode

And click "Add new MyCode" and insert these fields:

Title

Table

Short description

Create a table expandable as those used in the forum with title and text.

Regular Expression

\[table=(.*?)\](.*?)\[/table\]

Replacement

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" style="padding: 4px;"><strong>$1</strong></td>
</tr>
<tr>
<td class="trow1" style="padding: 5px;" align="left">
$2
</td>
</tr>
</table>

Enabled?

Yes

Parse Order

0

Click "Save MyCode". Warn: Do not test this MyCode in the panel amministration because there are not the same as those of the css forum, you will need to test it go to a topic and write:

[table=qui il titolo desiderato]Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. Testo da voi desiderato. [/table]

Result:

[Image: n1tgk3.png]

MyCode by Clear, do not copy in other Forum, website or blog (ext.) without my permission!



sotty, i don' t say that there was already a topic the same as mine!
Although good job though =D
davide ti hanno fregato! Big Grin LOL

Davide good job! Big Grin
Very nice code!