Overworked standalone version by cisco007, posted here http://www.phpbbandbbcodes.com/viewtopi ... 3563#p3563
Title: Tablemaker
Description: Let's you very easily add a table bbcode to your posts!
Author: cisco007
Base Author / Base Code / Credit: 4seven (developed this in 2008/9 as AddOn for BBCB3)
Request: http://www.phpbbandbbcodes.com/viewtopi ... 3397#p3397
Well first let's do the file edits!
open
posting_buttons.html file
find
- Code: Select all
d: '{LA_BBCODE_D_HELP}'
replace with
- Code: Select all
d: '{LA_BBCODE_D_HELP}',
table: '{LA_BBCODE_TABLE_HELP}'
find
- Code: Select all
<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 add
- Code: Select all
<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')" />
open
language/en/posting.php
find
- Code: Select all
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]',
after add
- Code: Select all
'BBCODE_TABLE_HELP' => 'Table',
BBCodes
[table]
bbcode usage:
- Code: Select all
[table border={NUMBER1} cellpadding={NUMBER2} cellspacing={NUMBER3} width={NUMBER4}% height={NUMBER5}px]{TEXT}[/table]
HTML replacement:
- Code: Select all
<table border="{NUMBER1}" cellpadding="{NUMBER2}" cellspacing="{NUMBER3}" width="{NUMBER4}%" style="height:{NUMBER5}px">{TEXT}</table>
[td]
bbcode usage:
- Code: Select all
[td align={IDENTIFIER1} valign={IDENTIFIER2} bordercolor=#{SIMPLETEXT1} bgcolor=#{SIMPLETEXT2}]{TEXT}[/td]
HTML replacement:
- Code: Select all
<td align="{IDENTIFIER1}" valign="{IDENTIFIER2}" style="border-color:#{SIMPLETEXT1}; background-color:#{SIMPLETEXT2}">{TEXT}</td>
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:
Demo: