Ok, here is how to make it work in a 3.0 board:
Open: styles/prosilver/posting_buttons.html
Find This may be a partial find and not the whole line
Add before Add these lines on a new blank line before the preceding line(s) to find Code: Select all
<select name="addbbcode21" onchange="bbfontstyle('[install]' + this.form.addbbcode21.options[this.form.addbbcode21.selectedIndex].value + ' [code]', '
[/install]');this.form.addbbcode21.selectedIndex = 0;" title="{L_MODX_CMD}">
<option value="0" selected="selected" style="display: none">{L_MODX_CMD}</option>
<option value="{L_BBCODE21_FIND}">{L_MODX_FIND}</option>
<option value="{L_BBCODE21_AFTER}">{L_MODX_ADD_AFTER}</option>
<option value="{L_BBCODE21_BEFORE}">{L_MODX_ADD_BEFORE}</option>
<option value="{L_BBCODE21_REPLACE}">{L_MODX_REPLACE_WITH}</option>
<option value="{L_BBCODE21_DELETE}">{L_MODX_DELETE}</option>
<option value="{L_BBCODE21_INFIND}">{L_MODX_IN_LINE_FIND}</option>
<option value="{L_BBCODE21_INAFTER}">{L_MODX_IN_LINE_ADD_AFTER}</option>
<option value="{L_BBCODE21_INBEFORE}">{L_MODX_IN_LINE_ADD_BEFORE}</option>
<option value="{L_BBCODE21_INREPLACE}">{L_MODX_IN_LINE_REPLACE_WITH}</option>
</select>[/code]
Open: language/en/common.php
Find
Add before Add these lines on a new blank line before the preceding line(s) to find
Code: Select all
$lang = array_merge($lang, array(
'MODX_FIND' => 'Find',
'MODX_ADD_AFTER' => 'Add after',
'MODX_ADD_BEFORE' => 'Add before',
'MODX_REPLACE_WITH' => 'Replace with',
'MODX_DELETE' => 'Delete',
'MODX_IN_LINE_FIND' => 'In line find',
'MODX_IN_LINE_ADD_AFTER' => 'In line add after',
'MODX_IN_LINE_ADD_BEFORE' => 'In line add before',
'MODX_IN_LINE_REPLACE_WITH' => 'In line replace with',
'MODX_CMD' => 'MODx command',
'BBCODE21_FIND' => '[b]Find[/b] [i][size=85]This may be a partial find and not the whole line[/size][/i]',
'BBCODE21_AFTER' => '[b][color=#008000]Add after[/color][/b] [i][size=85]Add these lines on a new blank line after the preceding line(s) to find[/size][/i]',
'BBCODE21_BEFORE' => '[b][color=#BF0080]Add before[/color][/b] [i][size=85]Add these lines on a new blank line before the preceding line(s) to find[/size][/i]',
'BBCODE21_REPLACE' => '[b][color=#BF0000]Replace with[/b][/color] [i][size=85]Replace the preceding lines with the following[/size][/i]',
'BBCODE21_DELETE' => '[b][color=#FF0000]Delete[/b][/color] [i][size=85]Remove the preceding lines[/size][/i]',
'BBCODE21_INFIND' => '[b][color=#BF0080]In line find[/b][/color] [i][size=85]This is a partial match of a line for in-line operations[/size][/i]',
'BBCODE21_INAFTER' => '[b][color=#BF0080]In line add after[/b][/color]',
'BBCODE21_INBEFORE' => '[b][color=#BF0080]In line add before[/b][/color]',
'BBCODE21_INREPLACE' => '[b][color=#BF0080]In line replace with[/b][/color]',
));
Create new bbcode:
BBCODE:
HTML replacement:
Code: Select all
<div style="background: #FFFFFF;
padding: 1px;
border: solid 1px #999999;
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
margin-bottom: 1px;">
<div style=" background: #D6E6F6;
padding: 6px 10px;
border: solid 1px #C6DAEE;
border-radius: 7px;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;">{TEXT}</div></div>
no need to check the show on posting page for the bbcode.
when you use the MODX commands, your cursor will be in between the code tags and you just insert the info you need. Then you will need to move the cursor out of that install bbcode to a new line and click the next MODX command you want. etc. etc
works like a champ.
as always, YMMV
robert