I have been hard at work trying to think of BBCodes that will help organise and improve the forums. I have just coded 2 more for the forums. The Table BBCodes, and the MP3 player. The first that I will show you is the MP3 Player. To use it use the following code:
[mp3player='1']www.dec-chronicles.co.uk/music/Badinerie.mp3[/mp3player]To get:
(That is me playing the flute
When you place the location to your mp3 file, DO NOT add the "http://" or it will corrupt the code as the automatic URL BBCode will change it so it won't work.
Now for the second of the new BBCodes, the Table Group. This group consists of 5 new codes. table (main code), th (header) thw (header with width, requires an option), tr (creates a new row of cells) and td (creates a new cell, width is optional if you use an option). Remember that the widths are in percent, not pixels. This means that the tables can scale to size on any screen. Here is an example of the code in action:
[table=Table title][th]Column Title 1[/th][th]Column Title 2[/th][th]Column Title 3[/th][tr][td]Row 1, Cell 1[/td][td]Row 1, Cell 2[/td][td]Row 1, Cell 3[/td][/tr][tr][td]Row 2, Cell 1[/td][td]Row 2, Cell 2[/td][td]Row 2, Cell 3[/td][/tr][tr][td]Row 3, Cell 1[/td][td]Row 3, Cell 2[/td][td]Row 3, Cell 3[/td][/tr][/table]
Which produces:
| Column Title 1 | Column Title 2 | Column Title 3 |
|---|---|---|
| Row 1, Cell 1 | Row 1, Cell 2 | Row 1, Cell 3 |
| Row 2, Cell 1 | Row 2, Cell 2 | Row 2, Cell 3 |
| Row 3, Cell 1 | Row 3, Cell 2 | Row 3, Cell 3 |
If you have problems making tables with this code, let me now and I will help you with them.
Enjoy,
~Isaac~
P.S. The BBCodes are not Parsing on the website, I will try and fix this issue soon. I apologise for the inconvenience.



This topic is locked













