[BBCode] Tablemaker v.1.0.0Overworked standalone version by
cisco007, posted here
http://www.phpbbandbbcodes.com/viewtopi ... 3563#p3563Title: Tablemaker
Description: Let's you very easily add a table bbcode to your posts!
Author: cisco007Base Author / Base Code / Credit: 4seven (developed this in 2008/9 as AddOn for BBCB3)
Request: http://www.phpbbandbbcodes.com/viewtopi ... 3397#p3397Well first let's do the file edits!
open posting_buttons.html file
findCode:
d: '{LA_BBCODE_D_HELP}'
replace withCode:
d: '{LA_BBCODE_D_HELP}',
table: '{LA_BBCODE_TABLE_HELP}'
findCode:
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select>
before addCode:
<input type="button" class="button2" name="tablemaker" id="tablemaker" value="Table" onclick="var smallwindow = window.open('tablemaker/tablemaker.php', '_blank', 'width=500,height=430, left=0,top=0, resizable=no,status=no,menubar=no, location=no,scrollbars=no,toolbar=no')" title="{LA_BBCODE_TABLE_HELP}" onmouseover="helpline('table')" />
openlanguage/en/posting.php
findCode:
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]',
after addCode:
'BBCODE_TABLE_HELP' => 'Table',
BBCodesQuote:
[table]bbcode usage:
Code:
[table border={NUMBER1} cellpadding={NUMBER2} cellspacing={NUMBER3} width={NUMBER4}% height={NUMBER5}px]{TEXT}[/table]
HTML replacement:
Code:
<table border="{NUMBER1}" cellpadding="{NUMBER2}" cellspacing="{NUMBER3}" width="{NUMBER4}%" style="height:{NUMBER5}px">{TEXT}</table>
Quote:
[td]bbcode usage:
Code:
[td align={IDENTIFIER1} valign={IDENTIFIER2} bordercolor=
HTML replacement:
Code:
<td align="{IDENTIFIER1}" valign="{IDENTIFIER2}" style="border-color:#{SIMPLETEXT1}; background-color:#{SIMPLETEXT2}">{TEXT}</td>
Quote:
[tr]bbcode usage:
Code:
[tr]{TEXT}[/tr]
HTML replacement:
Code:
<tr>{TEXT}</tr>
Notes:None of these BBCodes should be checked to show on posting page, and no helpline!
Extract the following archive and upload to root of forum!
Download:Attachment:
tablemaker bbcode.zip [6.28 KiB]
Downloaded 1752 times
Demo:Attachment:
9633c814f8384bf49f0aed6.png [ 9.2 KiB | Viewed 15313 times ]