[MyCode] Table
#1
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!



Reply
#2
Same as the Module code here

http://community.mybb.com/thread-49691.h...ght=Module
Proud Owner of The HD Forums since Aug 2009
[Image: dp93py.png]
Reply
#3
sotty, i don' t say that there was already a topic the same as mine!
Reply
#4
Although good job though =D
Thanks,
Matt
[Image: signaturelike.png]
Reply
#5
davide ti hanno fregato! Big Grin LOL

Davide good job! Big Grin
Reply
#6
Very nice code!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)