Not Solved How to add Table in MyBB forum post
#3
Not Solved
You can also make it with Mycode if you don't want to use a plugin.

Configuration > Mycode > Add new mycode. You need to make 4

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

<table border="0" cellspacing="1" cellpadding="3" class="tborder" style="width:$1%;">$2</table>

Table Header
\[th\](.*?)\[/th\]

<th class="tcat" align="middle"><strong>$1</strong></th>

Table Row
\[tr\](.*?)\[/tr\]

<tr>$1</tr>

Table Data
\[td\](.*?)\[/td\]

<td class="trow1" valign="top" align="center">$1</td>



To use:

This gives the table
[table=NAME] [/table]

This gives a row.
[tr] [/tr]

This gives a header column
[th] [/th]

This gives content
[td] [/td]

Change NAME to suit.



Example:

[table=test]
[tr][th]Vegetable[/th][th]Meat[/th][/tr]
[tr][td]Onion[/td][td]Beef[/td][/tr]
[/table]

[Image: PqOTZId.png]

Just add more sections as needed.

Have fun.

Idea taken from other threads on this forum.
Reply


Messages In This Thread
How to add Table in MyBB forum post - by deoguru - 2018-05-01, 11:04 AM
RE: How to add Table in MyBB forum post - by .m. - 2018-05-01, 11:33 AM
RE: How to add Table in MyBB forum post - by sarisisop - 2018-05-01, 01:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)