Show/Hide Button
Change the codes in styles/all/template/event/posting_editor_buttons_before.html to this:
Code: Select all
<div id="table_guide" class="bg2" style="width: 550px;;display: none"><strong>{L_TABLES_GUIDE}{L_COLON}</strong><br />{L_TABLES_GUIDELINES}</div>
Change the top codes in styles/all/template/tablesa_posting_editor_buttons_before.html to this:
Code: Select all
<script>
function toggle_table_guide()
{
var x = document.getElementById('table_guide');
if (x.style.display === 'none')
{
x.style.display = 'block';
document.getElementById('bbtables').title = '{L_TABLES_BBCODE_HIDE_HELP}';
}
else
{
x.style.display = 'none';
document.getElementById('bbtables').title = '{L_TABLES_BBCODE_HELP}';
}
}
</script>
<span class="tables">
<input type="button" class="tablesb-img" name="table_guide" id="bbtables" value="" onclick="toggle_table_guide();" title="{L_TABLES_BBCODE_HELP}" />
Actually update all 3 of the files in that directory with the above codes.
Then update the language/en/tables.php
Code: Select all
'TABLES_BBCODE_HELP' => 'Show Table Guidelines',
'TABLES_BBCODE_HIDE_HELP' => 'Hide Table Guidelines',
'TABLES_TITLE' => 'Tables',
'TABLES_GUIDE' => 'Table Guidelines',
'TABLES_GUIDELINES' => '[table=75 sets the width% of a table. Max width% of a table is 98%.<br />[th=20], [th=30], [th=50] sets the width% of each column. All [th=#%] need to equal 100%.<br />[table=75 tleft] will float the table left of the text. Use null, tleft, tright or tcenter in the table.<br />When using tcenter in the table, use the [center] bbcode around the Table Title for it to line up.<br /><strong>Instructions:</strong><br />Click Preview after inserting your table codes. From your view, change the titles and text to suit your post. Adjust all the [th=width%] to balance out the look of your table and Submit.',
Now you have what I have except for the 10 Columns 10 Rows.
Go for it works well.
